if(typeof com=="undefined"){
var com={};
}
if(typeof com.asual=="undefined"){
com.asual={};
}
if(typeof com.asual.util=="undefined"){
com.asual.util={};
}
com.asual.util.Browser=new function(){
var _1=false;
var _2=-1;
var _3=navigator.userAgent;
var _4=false;
var _5=false;
var _6=false;
var _7=false;
var _8=false;
if(/MSIE/.test(_3)){
_4=true;
_2=parseFloat(_3.substring(_3.indexOf("MSIE")+4));
_1=_2>=6;
}else{
if(/AppleWebKit/.test(_3)){
_6=true;
_2=parseFloat(_3.substring(_3.indexOf("Safari")+7));
_1=_2>=312;
}else{
if(/Opera/.test(_3)){
_7=true;
_2=parseFloat(navigator.appVersion);
_1=_2>=9.02;
}else{
if(/Camino/.test(_3)){
_5=true;
_2=parseFloat(_3.substring(_3.indexOf("Camino")+7));
_1=_2>=1;
}else{
if(/Firefox/.test(_3)){
_8=true;
_2=parseFloat(_3.substring(_3.indexOf("Firefox")+8));
_1=_2>=1;
}else{
if(/Netscape/.test(_3)){
_8=true;
_2=parseFloat(_3.substring(_3.indexOf("Netscape")+9));
_1=_2>=8;
}else{
if(/Mozilla/.test(_3)&&/rv:/.test(_3)){
_8=true;
_2=parseFloat(_3.substring(_3.indexOf("rv:")+3));
_1=_2>=1.8;
}
}
}
}
}
}
}
this.isSupported=function(){
return _1;
};
this.getVersion=function(){
return _2;
};
this.isIE=function(){
return _4;
};
this.isSafari=function(){
return _6;
};
this.isOpera=function(){
return _7;
};
this.isCamino=function(){
return _5;
};
this.isMozilla=function(){
return _8;
};
};
com.asual.util.Events=new function(){
var _9=[];
var _a=com.asual.util.Browser;
var _b="DOMContentLoaded";
if(_a.isIE()||_a.isSafari()){
(function(){
try{
if(_a.isIE()||!/loaded|complete/.test(document.readyState)){
document.documentElement.doScroll("left");
}
}
catch(e){
return setTimeout(arguments.callee,0);
}
for(var i=0,e;e=_9[i];i++){
if(e.t==_b){
e.l.call(null);
}
}
})();
}
this.addListener=function(_e,_f,_10){
_9.push({o:_e,t:_f,l:_10});
if(_f==_b&&(_a.isIE()||_a.isSafari())){
return;
}
if(_e.addEventListener){
_e.addEventListener(_f,_10,false);
}else{
if(_e.attachEvent){
_e.attachEvent("on"+_f,_10);
}
}
};
this.removeListener=function(obj,_12,_13){
for(var i=0,e;e=_9[i];i++){
if(e.o==obj&&e.t==_12&&e.l==_13){
_9.splice(i,1);
break;
}
}
if(_12==_b&&(_a.isIE()||_a.isSafari())){
return;
}
if(obj.removeEventListener){
obj.removeEventListener(_12,_13,false);
}else{
if(obj.detachEvent){
obj.detachEvent("on"+_12,_13);
}
}
};
var _16=function(){
for(var i=0,evt;evt=_9[i];i++){
if(evt.t!=_b){
com.asual.util.Events.removeListener(evt.o,evt.t,evt.l);
}
}
};
this.addListener(window,"unload",_16);
};
SWFAddressEvent=function(_19){
this.toString=function(){
return "[object SWFAddressEvent]";
};
this.type=_19;
this.target=[SWFAddress][0];
this.value=SWFAddress.getValue();
this.path=SWFAddress.getPath();
this.pathNames=SWFAddress.getPathNames();
this.parameters={};
var _1a=SWFAddress.getParameterNames();
for(var i=0,n;n=_1a[i];i++){
this.parameters[n]=SWFAddress.getParameter(n);
}
this.parameterNames=SWFAddress.getParameterNames();
};
SWFAddressEvent.INIT="init";
SWFAddressEvent.CHANGE="change";
SWFAddress=new function(){
var _1d=com.asual.util.Browser;
var _1e=_1d.isSupported();
try{
var _d=top.document;
var _h=top.history;
var _l=top.location;
}
catch(err){
var _d=window.document;
var _h=window.history;
var _l=window.location;
}
try{
var _22=_d.title;
var _23=_h.length;
var _24=_l.href;
}
catch(err){
return;
}
var _25,_26,_27;
var _28=_d.title;
var _29=_h.length;
var _2a=false;
var _2b={};
var _2c=[];
var _2d=[];
var _2e=[];
_2e["history"]=true;
_2e["html"]=false;
_2e["strict"]=true;
_2e["tracker"]="_trackDefault";
if((!_1e&&_l.href.indexOf("#")!=-1)||(_1d.isSafari()&&_1d.getVersion()<412&&_l.href.indexOf("#")!=-1&&_l.search!="")){
_d.open();
_d.write("<html><head><meta http-equiv=\"refresh\" content=\"0;url="+_l.href.substr(0,_l.href.indexOf("#"))+"\" /></head></html>");
_d.close();
}
var _2f=function(){
var _30=_l.href.indexOf("#");
if(_30!=-1){
return _l.href.substring(_30).replace(/^#/g,"");
}
return "";
};
var _31=_2f();
var _32=function(_33,_34){
if(_2e["strict"]){
if(_34){
if(_33.substr(0,1)!="/"){
_33="/"+_33;
}
}else{
if(_33==""){
_33="/";
}
}
}
return _33;
};
var _35=function(el){
if(el.src&&/big\.js(\?.*)?$/.test(el.src)){
return el;
}
for(var i=0,c;c=el.childNodes[i];i++){
if(s=_35(c)){
return s;
}
}
};
var _39=function(){
if(_1d.isIE()&&_d.title!=_28){
SWFAddress.setTitle(_28);
}
};
var _3a=function(){
if(!_2a){
if(_1d.isIE()){
if(_31!=_2f()){
if(_1d.getVersion()<7){
_l.reload();
}else{
SWFAddress.setValue(_2f());
}
}
}else{
if(_1d.isSafari()&&_1d.getVersion()<523){
if(_29!=_h.length){
_29=_h.length;
if(typeof _2c[_29-1]!="undefined"){
_31=_2c[_29-1];
}
_3b();
}
}else{
if(_31!=_2f()){
_31=_2f();
_3b();
}
}
}
_39();
}
};
var _3c=function(_3d){
if(SWFAddress.hasEventListener(_3d)){
SWFAddress.dispatchEvent(new SWFAddressEvent(_3d));
}
_3d=_3d.substr(0,1).toUpperCase()+_3d.substring(1);
if(typeof SWFAddress["on"+_3d]=="function"){
SWFAddress["on"+_3d]();
}
};
var _3e=function(){
_3c("init");
};
var _3f=function(){
_3c("change");
};
var _40=function(){
for(var i=0,id;id=_2d[i];i++){
var obj=document.getElementById(id);
if(obj){
if(obj.parentNode&&typeof obj.parentNode.so!="undefined"){
obj.parentNode.so.call("setSWFAddressValue",SWFAddress.getValue());
}else{
obj=(obj&&typeof obj.setSWFAddressValue!="undefined")?obj:((obj.getElementsByTagName("object")[0]&&typeof obj.getElementsByTagName("object")[0].setSWFAddressValue!="undefined")?obj.getElementsByTagName("object")[0]:((obj.getElementsByTagName("embed")[0]&&typeof obj.getElementsByTagName("embed")[0].setSWFAddressValue!="undefined")?obj.getElementsByTagName("embed")[0]:null));
if(obj){
obj.setSWFAddressValue(SWFAddress.getValue());
}
}
}
}
};
var _3b=function(){
_40();
_3f();
setTimeout(_44,10);
};
var _45=function(_46){
if(typeof urchinTracker=="function"){
urchinTracker(_46);
}
if(typeof pageTracker!="undefined"&&typeof pageTracker._trackPageview=="function"){
pageTracker._trackPageview(_46);
}
};
var _44=function(){
if(typeof _2e["tracker"]!="undefined"&&eval("typeof "+_2e["tracker"]+" != \"undefined\"")){
var fn=eval(_2e["tracker"]);
if(typeof fn=="function"){
fn((_l.pathname+SWFAddress.getValue()).replace(/\/\//,"/").replace(/^\/$/,""));
}
}
};
var _48=function(){
var doc=_25.contentWindow.document;
doc.open();
doc.write("<script>var swfaddress = \""+_2f()+"\";</script>");
doc.close();
};
var _4a=function(){
if(_2e["html"]){
var src=_25.contentWindow.location.href;
_31=(src.indexOf("?")>-1)?src.substring(src.indexOf("?")+1):"";
}else{
_31=(typeof _25.contentWindow.swfaddress!="undefined")?_25.contentWindow.swfaddress:"";
}
_25.contentWindow.document.title=_d.title;
if(_31!=_2f()){
_3b();
_l.hash=_31;
}
};
var _4c=function(){
var _4d="id=\"swfaddress\" style=\"position:absolute;top:-9999px;\"";
if(_1d.isIE()){
document.body.appendChild(document.createElement("div")).innerHTML="<iframe "+_4d+" src=\""+(_2e["html"]?_27.replace(/\.js(\?.*)?$/,".html")+"?"+_2f():"javascript:false;")+"\"></iframe>";
_25=document.getElementById("swfaddress");
setTimeout(function(){
if(!_2e["html"]&&typeof _25.contentWindow.swfaddress=="undefined"){
_48();
}
com.asual.util.Events.addListener(_25,"load",_4a);
},10);
}else{
if(_1d.isSafari()){
if(_1d.getVersion()<412){
document.body.innerHTML+="<form "+_4d+" method=\"get\"></form>";
_26=document.getElementById("swfaddress");
}
if(typeof _l.swfaddress=="undefined"){
_l.swfaddress={};
}
if(typeof _l.swfaddress[_l.pathname]!="undefined"){
_2c=_l.swfaddress[_l.pathname].split(",");
}
}else{
if(_1d.isOpera()&&_2d.length==0&&typeof navigator.plugins["Shockwave Flash"]=="object"){
document.body.innerHTML+="<embed "+_4d+" src=\""+_27.replace(/\.js(\?.*)?$/,".swf")+"\" type=\"application/x-shockwave-flash\" />";
}
}
}
setTimeout(_3e,1);
setTimeout(_3f,2);
setTimeout(_44,10);
setInterval(_3a,50);
};
this.onInit=null;
this.onChange=null;
this.toString=function(){
return "[class SWFAddress]";
};
this.back=function(){
_h.back();
};
this.forward=function(){
_h.forward();
};
this.go=function(_4e){
_h.go(_4e);
};
this.href=function(url,_50){
_50=typeof _50!="undefined"?_50:"_self";
switch(_50){
case "_self":
self.location.href=url;
break;
case "_top":
_l.href=url;
break;
case "_blank":
window.open(url);
break;
default:
top.frames[_50].location.href=url;
break;
}
};
this.popup=function(url,_52,_53,_54){
var _55=window.open(url,_52,eval(_53));
eval(_54);
};
this.addEventListener=function(_56,_57){
if(typeof _2b[_56]=="undefined"){
_2b[_56]=[];
}
_2b[_56].push(_57);
};
this.removeEventListener=function(_58,_59){
if(typeof _2b[_58]!="undefined"){
for(var i=0,l;l=_2b[_58][i];i++){
if(l==_59){
break;
}
}
_2b[_58].splice(i,1);
}
};
this.dispatchEvent=function(_5c){
try{
if(typeof _2b[_5c.type]!="undefined"&&_2b[_5c.type].length){
_5c.target=this;
for(var i=0,l;l=_2b[_5c.type][i];i++){
l(_5c);
}
return true;
}
return false;
}
catch(err){
return false;
}
};
this.hasEventListener=function(_5f){
return (typeof _2b[_5f]!="undefined"&&_2b[_5f].length>0);
};
this.getBaseURL=function(){
var url=_l.href;
if(url.indexOf("#")!=-1){
url=url.substr(0,url.indexOf("#"));
}
if(url.substr(url.length-1)=="/"){
url=url.substr(0,url.length-1);
}
return url;
};
this.getStrict=function(){
return _2e["strict"];
};
this.setStrict=function(_61){
_2e["strict"]=enabled;
};
this.getHistory=function(){
return _2e["history"];
};
this.setHistory=function(_62){
_2e["history"]=_62;
};
this.getTracker=function(){
return _2e["tracker"];
};
this.setTracker=function(_63){
_2e["tracker"]=_63;
};
this.getIds=function(){
return _2d;
};
this.getId=function(_64){
return _2d[0];
};
this.setId=function(id){
_2d[0]=id;
};
this.addId=function(id){
this.removeId(id);
_2d.push(id);
};
this.removeId=function(id){
for(var i=0,_69;_69=_2d[i];i++){
if(id==_69){
_2d.splice(i,1);
break;
}
}
};
this.getTitle=function(){
return _d.title;
};
this.setTitle=function(_6a){
if(!_1e){
return null;
}
if(typeof _6a=="undefined"){
return;
}
if(_6a=="null"){
_6a="";
}
_28=_d.title=_6a;
if(_25&&_25.contentWindow){
_25.contentWindow.document.title=_6a;
}
};
this.getStatus=function(){
return top.status;
};
this.setStatus=function(_6b){
if(!_1e){
return null;
}
if(typeof _6b=="undefined"){
return;
}
if(!_1d.isSafari()){
if(_6b=="null"){
_6b="";
}
_6b=_32(_6b,true);
if(_6b=="/"){
_6b="";
}
if(!(/http(s)?:\/\//.test(_6b))){
var _6c=_l.href.indexOf("#");
_6b=(_6c==-1?_l.href:_l.href.substr(0,_6c))+"#"+_6b;
}
top.status=_6b;
}
};
this.resetStatus=function(){
top.status="";
};
this.getValue=function(){
if(!_1e){
return null;
}
return _32(_31,false);
};
this.setValue=function(_6d){
if(!_1e){
return null;
}
if(typeof _6d=="undefined"){
return;
}
if(_6d=="null"){
_6d="";
}
_6d=_32(_6d,true);
if(_6d=="/"){
_6d="";
}
if(_31==_6d){
return;
}
_31=_6d;
_2a=true;
_3b();
_2c[_h.length]=_31;
if(_1d.isSafari()){
if(_2e["history"]){
_l.swfaddress[_l.pathname]=_2c.toString();
_29=_h.length+1;
if(_1d.getVersion()<412){
if(_l.search==""){
_26.action="#"+_31;
_26.submit();
}
}else{
var evt=document.createEvent("MouseEvents");
evt.initEvent("click",true,true);
var _6f=document.createElement("a");
_6f.href="#"+_31;
_6f.dispatchEvent(evt);
}
}else{
_l.replace("#"+_31);
}
}else{
if(_31!=_2f()){
if(_2e["history"]){
_l.hash="#"+_31;
}else{
_l.replace("#"+_31);
}
}
}
if(_1d.isIE()&&_2e["history"]){
if(_2e["html"]){
_25.contentWindow.location.assign(_25.contentWindow.location.pathname+"?"+_2f());
}else{
_48();
}
}
_2a=false;
};
this.getPath=function(){
var _70=this.getValue();
if(_70.indexOf("?")!=-1){
return _70.split("?")[0];
}else{
return _70;
}
};
this.getPathNames=function(){
var _71=SWFAddress.getPath();
var _72=_71.split("/");
if(_71.substr(0,1)=="/"){
_72.splice(0,1);
}
if(_71.substr(_71.length-1,1)=="/"){
_72.splice(_72.length-1,1);
}
return _72;
};
this.getQueryString=function(){
var _73=this.getValue();
var _74=_73.indexOf("?");
if(_74!=-1&&_74<_73.length){
return _73.substr(_74+1);
}
return "";
};
this.getParameter=function(_75){
var _76=this.getValue();
var _77=_76.indexOf("?");
if(_77!=-1){
_76=_76.substr(_77+1);
var _78=_76.split("&");
var p,i=_78.length;
while(i--){
p=_78[i].split("=");
if(p[0]==_75){
return p[1];
}
}
}
return "";
};
this.getParameterNames=function(){
var _7b=this.getValue();
var _7c=_7b.indexOf("?");
var _7d=[];
if(_7c!=-1){
_7b=_7b.substr(_7c+1);
if(_7b!=""&&_7b.indexOf("=")!=-1){
var _7e=_7b.split("&");
var i=0;
while(i<_7e.length){
_7d.push(_7e[i].split("=")[0]);
i++;
}
}
}
return _7d;
};
if(!_1e){
return;
}
for(var i=1;i<_29;i++){
_2c.push("");
}
_2c.push(_l.hash.replace(/^#/g,""));
if(_1d.isIE()&&_l.hash!=_2f()){
_l.hash="#"+_2f();
}
try{
_27=String(_35(document).src);
if(_27&&(qi=_27.indexOf("?"))>-1){
var _81,_82=_27.substr(qi+1).split("&");
for(var j=0,p;p=_82[j];j++){
_81=p.split("=");
if(/^(history|html|strict)$/.test(_81[0])){
_2e[_81[0]]=(isNaN(_81[1])?eval(_81[1]):(parseFloat(_81[1])>0));
}
if(/^tracker$/.test(_81[0])){
_2e[_81[0]]=_81[1];
}
}
}
}
catch(e){
}
if(/file:\/\//.test(_l.href)){
_2e["html"]=false;
}
_39();
com.asual.util.Events.addListener(document,"DOMContentLoaded",_4c);
};
if(typeof swfobject!="undefined"){
SWFObject=swfobject;
}
if(typeof FlashObject!="undefined"){
SWFObject=FlashObject;
}
if(typeof SWFObject!="undefined"){
if(SWFObject.prototype&&SWFObject.prototype.write){
com.asual.SWFObjectWrite=SWFObject.prototype.write;
SWFObject.prototype.write=function(){
if(this.getAttribute("version").major<8){
this.addVariable("$swfaddress",SWFAddress.getValue());
((typeof arguments[0]=="string")?document.getElementById(arguments[0]):arguments[0]).so=this;
}
if(success=com.asual.SWFObjectWrite.apply(this,arguments)){
SWFAddress.addId(this.getAttribute("id"));
}
return success;
};
}else{
com.asual.SWFObjectRegisterObject=SWFObject.registerObject;
SWFObject.registerObject=function(){
com.asual.SWFObjectRegisterObject.apply(this,arguments);
SWFAddress.addId(arguments[0]);
};
com.asual.SWFObjectCreateSWF=SWFObject.createSWF;
SWFObject.createSWF=function(){
com.asual.SWFObjectCreateSWF.apply(this,arguments);
SWFAddress.addId(arguments[0].id);
};
com.asual.SWFObjectEmbedSWF=SWFObject.embedSWF;
SWFObject.embedSWF=function(){
com.asual.SWFObjectEmbedSWF.apply(this,arguments);
SWFAddress.addId(arguments[8].id);
};
}
}
if(typeof UFO!="undefined"){
com.asual.UFOCreate=UFO.create;
UFO.create=function(){
com.asual.UFOCreate.apply(this,arguments);
SWFAddress.addId(arguments[0].id);
};
}
if(typeof AC_FL_RunContent!="undefined"){
com.asual.AC_FL_RunContent=AC_FL_RunContent;
AC_FL_RunContent=function(){
com.asual.AC_FL_RunContent.apply(this,arguments);
for(var i=0,a;a=arguments[i];i++){
if(a=="id"){
SWFAddress.addId(arguments[i+1]);
break;
}
}
};
}
sessvars=function(){
var x={};
x.$={prefs:{memLimit:2000,autoFlush:true,crossDomain:false,includeProtos:false,includeFunctions:false},parent:x,clearMem:function(){
for(var i in this.parent){
if(i!="$"){
this.parent[i]=undefined;
}
}
this.flush();
},usedMem:function(){
x={};
return Math.round(this.flush(x)/1024);
},usedMemPercent:function(){
return Math.round(this.usedMem()/this.prefs.memLimit);
},flush:function(x){
var y,o={},j=this.$$;
x=x||top;
for(var i in this.parent){
o[i]=this.parent[i];
}
o.$=this.prefs;
j.includeProtos=this.prefs.includeProtos;
j.includeFunctions=this.prefs.includeFunctions;
y=this.$$.make(o);
if(x!=top){
return y.length;
}
if(y.length/1024>this.prefs.memLimit){
return false;
}
x.name=y;
return true;
},getDomain:function(){
var l=location.href;
l=l.split("///").join("//");
l=l.substring(l.indexOf("://")+3).split("/")[0];
while(l.split(".").length>2){
l=l.substring(l.indexOf(".")+1);
}
return l;
},debug:function(t){
var t=t||this,a=arguments.callee;
if(!document.body){
setTimeout(function(){
a(t);
},200);
return;
}
t.flush();
var d=document.getElementById("sessvarsDebugDiv");
if(!d){
d=document.createElement("div");
document.body.insertBefore(d,document.body.firstChild);
}
d.id="sessvarsDebugDiv";
d.innerHTML="<div style=\"line-height:20px;padding:5px;font-size:11px;font-family:Verdana,Arial,Helvetica;"+"z-index:10000;background:#FFFFCC;border: 1px solid #333;margin-bottom:12px\">"+"<b style=\"font-family:Trebuchet MS;font-size:20px\">sessvars.js - debug info:</b><br/><br/>"+"Memory usage: "+t.usedMem()+" Kb ("+t.usedMemPercent()+"%)&nbsp;&nbsp;&nbsp;"+"<span style=\"cursor:pointer\"><b>[Clear memory]</b></span><br/>"+top.name.split("\n").join("<br/>")+"</div>";
d.getElementsByTagName("span")[0].onclick=function(){
t.clearMem();
location.reload();
};
},init:function(){
var o={},t=this;
try{
o=this.$$.toObject(top.name);
}
catch(e){
o={};
}
this.prefs=o.$||t.prefs;
if(this.prefs.crossDomain||this.prefs.currentDomain==this.getDomain()){
for(var i in o){
this.parent[i]=o[i];
}
}else{
this.prefs.currentDomain=this.getDomain();
}
this.parent.$=t;
t.flush();
var f=function(){
if(t.prefs.autoFlush){
t.flush();
}
};
if(window["addEventListener"]){
addEventListener("unload",f,false);
}else{
if(window["attachEvent"]){
window.attachEvent("onunload",f);
}else{
this.prefs.autoFlush=false;
}
}
}};
x.$.$$={compactOutput:false,includeProtos:false,includeFunctions:false,detectCirculars:true,restoreCirculars:true,make:function(arg,_97){
this.restore=_97;
this.mem=[];
this.pathMem=[];
return this.toJsonStringArray(arg).join("");
},toObject:function(x){
if(!this.cleaner){
try{
this.cleaner=new RegExp("^(\"(\\\\.|[^\"\\\\\\n\\r])*?\"|[,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t])+?$");
}
catch(a){
this.cleaner=/^(true|false|null|\[.*\]|\{.*\}|".*"|\d+|\d+\.\d+)$/;
}
}
if(!this.cleaner.test(x)){
return {};
}
eval("this.myObj="+x);
if(!this.restoreCirculars||!alert){
return this.myObj;
}
if(this.includeFunctions){
var x=this.myObj;
for(var i in x){
if(typeof x[i]=="string"&&!x[i].indexOf("JSONincludedFunc:")){
x[i]=x[i].substring(17);
eval("x[i]="+x[i]);
}
}
}
this.restoreCode=[];
this.make(this.myObj,true);
var r=this.restoreCode.join(";")+";";
eval("r=r.replace(/\\W([0-9]{1,})(\\W)/g,\"[$1]$2\").replace(/\\.\\;/g,\";\")");
eval(r);
return this.myObj;
},toJsonStringArray:function(arg,out){
if(!out){
this.path=[];
}
out=out||[];
var u;
switch(typeof arg){
case "object":
this.lastObj=arg;
if(this.detectCirculars){
var m=this.mem;
var n=this.pathMem;
for(var i=0;i<m.length;i++){
if(arg===m[i]){
out.push("\"JSONcircRef:"+n[i]+"\"");
return out;
}
}
m.push(arg);
n.push(this.path.join("."));
}
if(arg){
if(arg.constructor==Array){
out.push("[");
for(var i=0;i<arg.length;++i){
this.path.push(i);
if(i>0){
out.push(",\n");
}
this.toJsonStringArray(arg[i],out);
this.path.pop();
}
out.push("]");
return out;
}else{
if(typeof arg.toString!="undefined"){
out.push("{");
var _a1=true;
for(var i in arg){
if(!this.includeProtos&&arg[i]===arg.constructor.prototype[i]){
continue;
}
this.path.push(i);
var _a2=out.length;
if(!_a1){
out.push(this.compactOutput?",":",\n");
}
this.toJsonStringArray(i,out);
out.push(":");
this.toJsonStringArray(arg[i],out);
if(out[out.length-1]==u){
out.splice(_a2,out.length-_a2);
}else{
_a1=false;
}
this.path.pop();
}
out.push("}");
return out;
}
}
return out;
}
out.push("null");
return out;
case "unknown":
case "undefined":
case "function":
if(!this.includeFunctions){
out.push(u);
return out;
}
arg="JSONincludedFunc:"+arg;
out.push("\"");
var a=["\n","\\n","\r","\\r","\"","\\\""];
arg+="";
for(var i=0;i<6;i+=2){
arg=arg.split(a[i]).join(a[i+1]);
}
out.push(arg);
out.push("\"");
return out;
case "string":
if(this.restore&&arg.indexOf("JSONcircRef:")==0){
this.restoreCode.push("this.myObj."+this.path.join(".")+"="+arg.split("JSONcircRef:").join("this.myObj."));
}
out.push("\"");
var a=["\n","\\n","\r","\\r","\"","\\\""];
arg+="";
for(var i=0;i<6;i+=2){
arg=arg.split(a[i]).join(a[i+1]);
}
out.push(arg);
out.push("\"");
return out;
default:
out.push(String(arg));
return out;
}
}};
try{
x.$.init();
return x;
}
catch(err){
}
}();
if(typeof console==="undefined"){
console={};
console.log=function(msg){
};
console.debug=function(msg){
};
}
if(self.top!==self){
var u=navigator.userAgent;
if((u.indexOf("Windows NT 5.0")!==-1)&&(u.indexOf("MSIE")!==-1)){
self.top.location.replace(self.location);
}
}
if(window.SymRealOnLoad){
window.onload=window.SymRealOnLoad;
}
SymOnLoad=window.onload;
var SM=(function(){
var _a6,_a7,_a8,_a9;
_a6={BASE_TAG_PRESENT:(document.getElementsByTagName("BASE").length>0),BUILD_NUMBER:"18753",BYPASS_COOKIE:"bypassFlashDetection",CONTAINER_OFFSET:((typeof Consts==="undefined")?"":Consts.main.offset),GET_FLASH_ID:"get-flash",LCID:(function(){
return "xkcd"+(new Date()).getTime();
}()),PAGEID_PATTERN:new RegExp(/[a-zA-Z0-9]+\/(\d+)/),REACTIVATE_LINK_ID:"reactivateFlashLink"};
_a9=function(){
var pos,b,loc;
try{
b=document.getElementsByTagName("BASE");
if(b&&b.length&&(b[0].getAttribute("HREF")||b[0].getAttribute("href"))){
loc=b[0].getAttribute("HREF")||b[0].getAttribute("href");
}else{
loc=window.location.href+"";
}
}
catch(err){
loc=window.location.href+"";
}
pos=loc.indexOf("/",7);
return loc.substring(0,pos!==-1?pos:loc.length);
};
_a7=function(d){
try{
var a=d.attributes,i,l,n;
if(a){
l=a.length;
for(i=0;i<l;i+=1){
n=a[i].name;
if(typeof d[n]==="function"){
d[n]=null;
}
}
}
a=d.childNodes;
if(a){
l=a.length;
for(i=0;i<l;i+=1){
_a7(d.childNodes[i]);
}
}
}
catch(err){
}
};
mergeFlashVars=function(_b2){
var _b3;
var _b4={};
if(typeof _b2==="string"){
_b2=_b2.split(/&amp;|&/);
for(i=0;i<_b2.length;i+=1){
_b3=_b2[i].split("=");
_b4[_b3[0]]=_b3[1];
}
}else{
if(_b2&&typeof _b2==="object"){
_b4=_b2;
}
}
_b4["lcid"]=SM.Consts.LCID;
_b4["domId"]=SM.environment.userAppConfig.activeElementId;
return _b4;
};
return {Consts:_a6,pageId:((typeof Consts==="undefined")?"":Consts.initialPageId),uid:("xkcd"+(new Date()).getTime()),init:function(env,_b6){
var _b7,_b8;
this.environment=env;
if(SM.initialised){
return;
}
if(SM.Consts.BUILD_NUMBER!==Consts.buildNumber&&!SM.Consts.BASE_TAG_PRESENT){
alert("We have detected a caching problem. We recommend you clear your cache and reload the page (pressing ctrl+f5 will usually do the trick)");
}
if(typeof sessvars!=="undefined"){
sessvars.$.prefs.crossDomain=true;
}
SM.safeRedirect();
SM.setSEOModeFromURL();
window.onhelp=function(){
return false;
};
SM.SWFAddress.currentPage(Consts.initialPageId);
try{
SWFAddress.addEventListener(SWFAddressEvent.CHANGE,SM.SWFAddress.changeHandler);
}
catch(e){
_b7=e;
}
if(com.asual.util.Browser.isIE()&&SM.Consts.BASE_TAG_PRESENT){
SM.valign=_a8;
}
if(typeof sessvars!=="undefined"&&sessvars.seoMode){
_b8=sessvars.seoMode;
$(document).ready(SM.insertExitHTMLButtons);
}else{
try{
_b8=(location.search.match(/(noFlash=Y)/).length>1);
}
catch(e2){
_b8=false;
}
}
if(_b8){
$(document).ready(toggleTextContent);
}else{
if(swfobject.hasFlashPlayerVersion("8")){
$(document).ready(function(){
SM.cancelAssetLoading("text-content");
});
}else{
toggleTextContent();
}
}
$(document).ready(function(){
if(Consts.fb_api_key){
SM.FBConnect.init(env);
}
SM.SWFAddress.resetToRootPath();
SM.setInitialPage();
var _b9=$(_b6).get(0);
if(typeof _b9==="undefined"){
throw "Root Element Undefined";
}
SM.Util.init(_b9);
env.onDOMReady(_b9);
$(window).resize(SM.valign);
});
SM.initialised=true;
},setInitialPage:function(){
var _ba;
try{
_ba=SM.SWFAddress.getPageIdFromPath(location.hash);
}
catch(err){
_ba=null;
}
if(_ba){
Consts.main.flashvars_json.pageId=_ba;
}else{
Consts.main.flashvars_json.pageId=Consts.initialPageId;
_ba=Consts.initialPageId;
}
SM.SWFAddress.currentPage(_ba);
},Navigate:function(_bb,_bc,_bd){
var loc,pos,_a9,_c0,_c1;
if(_bc===SM.pageId||!_bc){
return;
}
loc=window.location.href+"";
pos=loc.indexOf("/",7);
_a9=loc.substring(0,pos!==-1?pos:loc.length);
_c0="/"+_bb+"/"+_bc;
_c1=_bb+"/"+_bc;
SM.SWFAddress.setPath(_c1,_bc);
if(!SM.SWFAddress.alreadyAtPage()){
scrollTo(0,0);
}
SM.refreshAds(_a9+_c0);
if(_bd){
SM.resizePage(_bd);
}
},setMode:function(_c2){
var fc,ch;
SM.Snippet.delAll();
delete Consts.main.flashvars_json.edit;
delete Consts.main.flashvars_json.view;
delete Consts.main.flashvars_json.pageId;
delete Consts.main.flashvars_json.from_wizard;
if(_c2==="view"){
Consts.main.flashvars_json.view=true;
Consts.main.flashvars_json.from_wizard="Y";
}else{
if(_c2==="edit"){
Consts.main.flashvars_json.view=Consts.toolbar;
Consts.main.flashvars_json.edit=true;
Consts.main.flashvars_json.from_wizard="Y";
}
}
Consts.main.flashvars_json.pageId=SM.pageId;
fc=document.getElementById("flash_content");
ch=fc.style.height;
_a7(fc);
setTimeout(SM.Replacements.main("100%","100%"),10);
},setTitle:function(_c5){
var _c6,_c7;
try{
_c6=(decodeURIComponent)?decodeURIComponent(_c5):unescape(_c5);
SWFAddress.setTitle(_c6);
}
catch(err){
_c7=err;
}
},resizePage:function(_c8,_c9){
SM.postInitContainer(Consts.container);
this.environment.resizePage(_c8,_c9);
},refreshAds:function(url){
var _cb,_cc,pos,_ce,i;
if(SM.initialised){
_cb=function(src,_d1,_d2){
var _d3;
_d2=typeof (encodeURIComponent)==="function"?encodeURIComponent(_d2):escape(_d2);
_d3=new RegExp("([&;]"+_d1+"=)[^&]*","i");
src=src.replace(_d3,"$1"+_d2);
return src;
};
_cc=function(div,url){
var _d6,_d7,src,_d9;
_d6=div.getElementsByTagName("iframe")[0];
_d7=_d6.cloneNode(true);
src=_d7.src;
src=_cb(src,"url",url);
_d7.src=src;
_d9=_d6.parentNode;
_d9.replaceChild(_d7,_d6);
};
if(document.getElementById&&document.getElementsByTagName){
pos=["header","left","footer","right"];
for(i=0;i<pos.length;i+=1){
_ce=document.getElementById("gads_"+pos[i]);
if(_ce){
_cc(_ce,url);
}
}
}
}
},addSwf:function(swf,id,_dc,_dd,_de,_df){
var _e0,_df,_e1,_e2,_e3,_e4;
_e0=id+"_swfo";
_e1={allowScriptAccess:"always",quality:"best",wmode:this.getWmode(),base:_a9()+Consts.respath};
if(_de){
_e1.bgcolor=_de;
}
_e2={style:";"};
_e3=mergeFlashVars(_df);
_e4="8";
swfobject.embedSWF(swf,_e0,_dc,_dd,_e4,Consts.respath+"expressInstall.swf",_e3,_e1,_e2);
},getWmode:function(){
var _e5,_e6;
_e5=navigator.platform;
_e6=document.location.search.match(/wmode=(window|opaque|transparent|gpu|direct)/);
if(_e6){
return _e6[1];
}else{
if(SM.Snippet.supported()&&SM.Snippet.canUseWmodeOpaque()){
return "opaque";
}
}
return "window";
},popup:function(url,_e8,_e9){
var _ea=window.open(url,_e8,eval(_e9));
_ea.focus();
return _ea;
},getUseFlash:function(){
return SM.getCookie(SM.Consts.BYPASS_COOKIE);
},setUseFlash:function(_eb){
SM.setCookie(SM.Consts.BYPASS_COOKIE,"true",_eb);
},removeUseFlash:function(){
var _ec=document.getElementById(SM.Consts.REACTIVATE_LINK_ID);
_ec.innerHTML="Loading...";
SM.setCookie(SM.Consts.BYPASS_COOKIE,"true",0);
location.reload(true);
},fixOutOfMemoryError:function(){
__flash_unloadHandler=function(){
};
__flash_savedUnloadHandler=function(){
};
},getCookie:function(_ed){
var _ee=_ed+"=";
var ca=document.cookie.split(";");
for(var i=0;i<ca.length;i++){
var c=ca[i];
while(c.charAt(0)==" "){
c=c.substring(1,c.length);
}
if(c.indexOf(_ee)==0){
return c.substring(_ee.length,c.length);
}
}
return null;
},setCookie:function(_f2,_f3,_f4){
if(_f4){
var _f5=new Date();
_f5.setTime(_f5.getTime()+(_f4*60*1000));
var _f6="; expires="+_f5.toGMTString();
}else{
var _f6="";
}
document.cookie=_f2+"="+_f3+_f6+"; path=/";
},delCookie:function(_f7){
SM.setCookie(_f7,"",-1);
},expires:function(_f8){
var _f9,_fa;
_f9=new Date();
if(_f8<1){
_f9.setTime(_f9.getTime()-24*60*60*1000);
}else{
_f9.setTime(_f9.getTime()+(_f8*60*1000));
}
_fa="; expires="+_f9.toGMTString();
return _fa;
},insertExitHTMLButtons:function(){
var div=document.createElement("div");
div.setAttribute("id","exit-html");
div.innerHTML="<a href=\"#exit\" onclick=\"SM.exitSEOMode(); return false;\"><img src=\""+Consts.imagespath+"exithtmlview.png\" alt=\"Exit HTML View\" title=\"Return to SiteMaker\"/></a>"+"<iframe id=\"exit-html-iframe\" src=\"javascript:false;\" frameborder=\"0\" scrolling=\"no\"></iframe>";
document.body.appendChild(div);
},cancelAssetLoading:function(_fc){
var _fd,_fe,i,j,_101;
_101=document.getElementById(_fc);
if(!_101){
return;
}
_fd=_101.getElementsByTagName("img");
for(i=0;i<_fd.length;i+=1){
_fd[i].src=Consts.commonimagespath+"sitebutton.gif";
}
_fe=_101.getElementsByTagName("iframe");
for(j=0;j<_fe.length;j+=1){
_fe[j].src="about:blank";
}
},valign:function(){
SM.environment.valign();
},preInitContainer:function(_102){
var e=document.getElementById(_102);
if(e){
e.className=e.className+" cheight";
}
},postInitContainer:function(_104){
var e,cn;
if(SM.postInitDone){
return;
}
SM.postInitDone=false;
window.onhelp=function(){
return false;
};
e=document.getElementById(_104);
if(e){
cn=e.className;
if(cn.indexOf("cheight")!==-1){
e.className=cn.replace(/cheight/,"");
}
}
SM.postInitDone=true;
},setSEOMode:function(bool){
if(typeof sessvars!=="undefined"){
sessvars.seoMode=bool;
bool?SM.setCookie("view_mode",1,1*60):SM.delCookie("view_mode");
}else{
alert("SEO Mode is not available with masked forwarding. Please refer to the FAQ's in the help menu");
}
},getSEOMode:function(){
return sessvars.seoMode;
},setSEOModeFromURL:function(){
if(location.search.match(/seoPreview=Y/)){
SM.setSEOMode(true);
}
if(location.search.match(/seoPreview=N/)){
SM.setSEOMode(false);
}
},exitSEOMode:function(){
SM.setSEOMode(false);
location.replace(SM.SWFAddress.path2hash(location));
return false;
},safeRedirect:function(){
$(document).ready(function(){
var port,_109,_10a,_10b;
if(typeof preferredAddressAvailable!=="undefined"&&preferredAddressAvailable&&typeof Consts.preferredAddress!=="undefined"&&Consts.preferredAddress!==location.host){
port=(location.port)?":"+location.port:"";
if(/\d+\/site\//.test(location.href)){
_109="http://"+location.host+port+"/site/"+Consts.preferredAddress+location.search+location.hash;
}else{
_109="http://"+Consts.preferredAddress+port+location.pathname+location.search+location.hash;
}
_10a=document.createElement("form");
_10a.method="post";
_10a.action=_109;
_10b=document.createElement("input");
_10b.type="hidden";
_10b.name="mark";
_10b.value=SM.getCookie("markc");
_10a.appendChild(_10b);
document.body.appendChild(_10a);
_10a.submit();
}
});
},getQueryString:function(){
var _10c,i,pair,_10f;
_10c=location.search.replace(/^\?/,"").split(/[&;]/);
_10f={};
for(i=0;i<_10c.length;i+=1){
pair=_10c[i].split("=");
_10f[pair[0]]=pair[1];
}
return _10f;
},getFlashVars:function(){
return mergeFlashVars(Consts.main.flashvars_json);
},loadTopBar:function(){
if(window.parent){
window.parent.loadTopBar();
}
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.Replacements=(function(){
return {topbar:function(){
if(typeof Consts.topbar!=="undefined"&&Consts.topbar.show>0){
SM.addSwf(Consts.topbar.path,Consts.topbar.container,Consts.topbar.width+"px",Consts.topbar.height+"px","#ffffff",Consts.topbar.flashvars+"&amp;elementId="+Consts.topbar.container+"_swfo");
}
},main:function(_110,_111){
setTimeout(SM.valign,0);
_110=_110||"0px";
setTimeout(function(){
SM.addSwf(Consts.main.path,Consts.main.container,_111,_110,Consts.bgcolor,{});
},0);
},moreover:function(){
if(typeof Consts.moreover!=="undefined"&&Consts.moreover.show>0){
SM.addSwf(Consts.moreover.path,Consts.moreover.container,"180px","800px",Consts.bgcolor,Consts.moreover.flashvars);
}
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.Util=(function(){
var _112,_113;
_113=document.body;
_112=function(){
if(document.documentElement&&document.documentElement.clientHeight){
return document.documentElement;
}else{
return document.body;
}
};
return {doAWobble:function(){
$("body").height($(document).height()+1);
window.scrollBy(0,1);
window.scrollBy(0,-1);
$("body").height("");
},refreshIE:function(){
if($.browser.msie){
var _114=parseInt($.browser.version);
if(_114==7||_114==8){
setTimeout(function(){
$(document.body).addClass("force_redraw").removeClass("force_redraw");
},0);
}
}
},getRootElement:function(){
return _113==document.body?_112():_113;
},getRootContentElement:function(){
return _113;
},getRootScrollElement:function(){
return (SM.Util.getRootElement().tagName=="DIV")?SM.Util.getRootElement():window;
},mergeHash:function(orig,_116){
var _117={};
for(value in orig){
_117[value]=orig[value];
}
for(value in _116){
_117[value]=_116[value];
}
return _117;
},init:function(el){
_113=el||_113;
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.Viewport=(function(){
var _119,_11a,_11b,_11c,_11d,_11e,_11f,_120,_121,_122;
_11c={};
_119=function(el){
return el.clientWidth?parseInt((el.offsetWidth-el.clientWidth)/2,10):0;
};
_11a=function(el){
var _125,_126,_127,_128;
_125=_126=0;
while(el.offsetParent&&el!==SM.Util.getRootElement()){
_128=_119(el);
_125+=el.offsetLeft+_128;
_126+=el.offsetTop+_128;
el=el.offsetParent;
}
return {x:_125,y:_126};
};
_11d=function(){
var _129,_12a;
if(SM.Util.getRootElement()){
_129=SM.Util.getRootElement().clientWidth;
_12a=SM.Util.getRootElement().clientHeight;
}
return {x:_129,y:_12a};
};
_11f=function(){
var _12b,_12c;
_12b=$(SM.Util.getRootScrollElement()).scrollLeft();
_12c=$(SM.Util.getRootScrollElement()).scrollTop();
return {x:_12b,y:_12c};
};
_11e=function(id){
return _11a(document.getElementById(id));
};
_120=function(){
return _122;
};
_121=function(_12e){
_122=_12e;
};
_11b=function(elId){
return {vpDimensions:_11d(),vpScroll:_11f(),swfPageOffset:_11e(elId)};
};
return {getContentHeight:function(){
var el=document.getElementById("content-wrapper");
return $(el).outerHeight();
},getContentWidth:function(){
var el=document.getElementById("content-wrapper");
return $(el).outerWidth();
},getVPDimensions:_11d,getVPHeight:function(){
return this.getVPDimensions().y;
},getVPWidth:function(){
return this.getVPDimensions().x;
},getVPScroll:_11f,getSWFPageOffset:_11e,getFlexActive:_120,setFlexActive:_121,subscribe:function(id,_133){
var _134;
for(_134 in _11c){
if(_11c.hasOwnProperty(_134)&&_11c[_134]===_133){
return false;
}
}
_11c[id]=_133;
this.dispatchInfo(id);
return true;
},unsubscribe:function(id,_136){
if(_11c[id]&&_11c[id]===_136){
delete _11c[id];
return true;
}
return false;
},dispatchInfo:function(id){
var _138,_139;
if(id){
_139={};
_139[id]=_11c[id];
}else{
_139=_11c;
}
for(_138 in _139){
if(_139.hasOwnProperty(_138)){
try{
if(_139[_138]&&typeof document.getElementById(_138)[_139[_138]]==="function"){
document.getElementById(_138)[_139[_138]](_11b(_138));
}
}
catch(err){
console.debug("Error: failed to execute, have you implimented and exposed recieveViewport on the ExternalInterface?\nmessage: "+err);
}
}
}
},findPos:function(el){
return _11a(el);
},scrollTo:function(x,y){
scrollTo(x,y);
},scrollBy:function(x,y){
scrollBy(x,y);
},getCallbackString:function(oId){
return _11c[oId];
},init:function(_140){
$(SM.Util.getRootScrollElement()).scroll(function(){
SM.Viewport.dispatchInfo();
});
$(window).resize(function(){
SM.Viewport.dispatchInfo();
});
}};
}());
if(typeof SM=="undefined"){
SM={};
}
SM.SWFAddress={changeHandler:function(e){
SM.SWFAddress.Routing.routeHandler();
var _142;
try{
_142=SM.SWFAddress.getPageIdFromPath(e.value);
}
catch(err){
_142=false;
}
if(_142){
SM.SWFAddress.navigateTo(_142);
}else{
SM.SWFAddress.navigateTo(Consts.initialPageId);
}
},setPath:function(path,_144){
try{
if(path=="/"||path==""||_144==Consts.initialPageId){
SWFAddress.setValue("");
}else{
SWFAddress.setValue(path);
}
}
catch(err){
var _145=err;
}
},navigateTo:function(_146){
if(SM.SWFAddress.alreadyAtPage(_146)){
return;
}
flashMovie=document.getElementById(SM.environment.usersSiteId());
if(flashMovie&&flashMovie.loadPageJS){
SM.SWFAddress.currentPage(_146);
flashMovie.loadPageJS(_146);
}
},resetToRootPath:function(){
var l=location;
if(!SM.SWFAddress.isRedirectExcluded()){
var page=l.pathname.match(/[\w-]+\/\d+/);
var hash=(!l.hash&&page)?"#/"+page:l.hash;
l.replace(l.protocol+"//"+l.host+l.search+hash);
}
},currentPage:function(_14a){
if(_14a){
SM.pageId=_14a;
}
return SM.pageId;
},alreadyAtPage:function(_14b){
return _14b==SM.pageId;
},getPageIdFromPath:function(path){
var re=new RegExp(/[\w-]+\/(\d+)/);
try{
var _14e=re.exec(path);
if(_14e&&_14e.length>=2){
return _14e[1];
}
return null;
}
catch(err){
return null;
}
},isRedirectExcluded:function(){
var l=location;
var _150=SM.Consts.BASE_TAG_PRESENT;
var _151=(location.search.match(/(noRedirect=Y|noFlash=Y)/)!=null)?true:false;
if(!swfobject.hasFlashPlayerVersion("8")||l.pathname==""||l.pathname=="/"||l.pathname.match(/\/login$/)||l.pathname.match(/\/site\/\D/)||_150||_151||SM.getSEOMode()){
return true;
}else{
return false;
}
},setInitialPageId:function(id){
Consts.initialPageId=id;
},Routing:{handlers:{loginHandler:function(){
var l=location;
l.replace(l.protocol+"//"+l.host+"/login"+l.search+l.hash.replace(/\/login/,""));
}},routes:{login:"loginHandler"},routeHandler:function(){
var l=location;
var _155=/\/([\w-]+)$/.exec(location.hash);
if(!_155){
return;
}
for(var i=0;i<_155.length;i++){
for(var key in this.routes){
if(key==_155[i]){
eval("SM.SWFAddress.Routing.handlers."+this.routes[key]+"()");
}
}
}
return;
}},tracker:function(path){
if(typeof pageTracker=="undefined"){
return;
}
try{
if(typeof pageTracker._trackPageview=="function"){
pageTracker._trackPageview(SWFAddress.getPath());
}
}
catch(err){
if(typeof pageTracker._trackPageview=="function"){
pageTracker._trackPageview(path);
}
}
},path2hash:function(_159){
return _159.protocol+"//"+_159.host+"#"+_159.pathname;
}};
if(typeof SM==="undefined"){
SM={};
}
SM.Snippet=(function(){
var _15a,_15b,_15c,_15d;
_15c=function(key){
if(key.keyCode!=8){
return;
}
if(key.preventDefault){
key.preventDefault();
key.stopPropagation();
}else{
key.cancelBubble=true;
key.returnValue=false;
}
};
_15b=function(){
return (navigator.userAgent.match(/Gecko.*?\/(3.0.\d\d|3.[5-9])/));
};
isChrome=function(){
return /Chrome/.test(navigator.userAgent);
};
_15a=function(_15f){
if(_15f.contentDocument){
return _15f.contentDocument;
}else{
if(_15f.contentWindow){
return _15f.contentWindow.document;
}else{
if(_15f.document){
return _15f.document;
}
}
}
};
_15d=function(_160){
if(!_160){
_160=window.event;
}
var _161=_160.currentTarget?_160.currentTarget:_160.srcElement;
var _162=_15a(_161).getElementsByTagName("a");
for(var i=0;i<_162.length;i+=1){
_162[i].target="_parent";
}
};
(function(){
if(!_15b()||isChrome()){
return;
}
var _164=["keydown","keypress","keyup"];
for(typeI in _164){
$(document)[_164[typeI]](_15c);
}
})();
return {ID_PREFIX:"snippet_",SNIPPET_PARENT:"flash_content",CONTENT_WRAPPER:"content-wrapper",IE:false,add:function(id,_166,_167,_168,x,y,_16b,_16c){
var _16d=document.createElement("iframe");
_16d.id=this.ID_PREFIX+id;
$(_16d).load(function(evt){
_15d(evt);
});
_16c=_16c?_16c:"#00ffffff";
if(_166.indexOf("/cgi-bin/snippet.cgi")===0){
_16d.src=_166;
}else{
var _16f=(_16c.indexOf("#00")!==0)?"#"+_16c.substring(3):"transparent";
$(_16d).load(function(evt){
var _171=_15a(this).body;
_171.style.backgroundColor=_16f;
_171.innerHTML=_166;
_171.style.margin="0";
_171.style.padding="0";
});
}
_16d.style.width=_167+"px";
_16d.style.height=_168+"px";
_16d.style.position="absolute";
_16d.style.left=x+"px";
_16d.style.top=y+"px";
_16d.frameBorder=0;
_16d.allowTransparency=true;
_16d.scrolling=_16b?"scrolling":"no";
if(_16c.indexOf("#00")===-1){
_16d.style.borderStyle="solid";
_16d.style.borderWidth="1px";
_16d.style.borderColor="#"+_16c.substring(3);
}
if(SM.Snippet.supported()){
document.getElementById(this.SNIPPET_PARENT).appendChild(_16d);
}else{
_16d.style.position="static";
_16d.style.marginTop="10px";
document.getElementById(this.CONTENT_WRAPPER).appendChild(_16d);
}
if(navigator.userAgent.match(/Gecko.*?\/(3.5)/)&&navigator.userAgent.match(/Macintosh/)){
SM.Util.doAWobble();
}
},del:function(id){
var _173=document.getElementById(this.ID_PREFIX+id);
if(_173){
var _174=_173.parentNode;
_174.removeChild(_173);
}
},delAll:function(){
var _175=this.supported()?this.SNIPPET_PARENT:this.CONTENT_WRAPPER;
var _176=document.getElementById(_175).getElementsByTagName("iframe");
for(var i=_176.length-1;i>=0;i-=1){
if(_176[i].id.indexOf(this.ID_PREFIX)===0){
this.del(_176[i].id.substring(this.ID_PREFIX.length));
}
}
},supported:function(){
if(Consts.wmodeWindow){
return false;
}
var _178=swfobject.getFlashPlayerVersion().major;
if(this.browserSupported()&&_178>=10){
return true;
}
return false;
},browserSupported:function(){
var isIE=com.asual.util.Browser.isIE();
var _17a=com.asual.util.Browser.isOpera();
var _17b=com.asual.util.Browser.isSafari();
var _17c=com.asual.util.Browser.getVersion();
var _17d=navigator.platform;
if(_15b()||(isIE&&_17c>=6)||_17b){
return true;
}
return false;
},previewSupported:function(){
return this.supported()&&this.canUseWmodeOpaque();
},canUseWmodeOpaque:function(){
if(Consts.forceWmode){
return false;
}
if(/Mac/.test(navigator.platform)){
return false;
}
if(com.asual.util.Browser.isIE()){
return true;
}
if(Consts.template==="sm5"){
return false;
}
return true;
},toSnippet:function(id){
var el=document.getElementById(this.ID_PREFIX+id);
var _180=SM.Viewport.findPos(el);
scrollTo(_180.x,_180.y);
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.Bridge=(function(){
var _181=function(_182,_183,args,_185){
if(_182=="container"){
_182="page-wrapper";
}
var el=SM.EditApp.getApp();
if(el&&typeof el[_183]==="function"){
var func=el[_183];
var _188=[];
for(var i=1;i<args.length;i++){
_188.push(args[i]);
}
return func.apply(el,_188);
}
return _185;
};
return {getAppProperty:function(_18a,path){
return _181(_18a,"getPropertyJS",arguments,null);
},callAppProperty:function(_18c,path){
return _181(_18c,"callPropertyJS",arguments,null);
},addRemoteListener:function(_18e,path,_190){
return _181(_18e,"addRemoteListenerJS",arguments,false);
},handleRemoteEvent:function(_191,path,type){
return _181(_191,"handleRemoteEventJS",arguments,false);
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.EditApp=(function(){
var MODE="window";
var base=Consts.respath;
var _196="flex_toolbar_swfo";
var _197=null;
var _198={base:base,wmode:MODE,bgcolor:"#E0E0E0"};
var _199=function(){
if(!_197){
_197=document.getElementById(_196);
}
return _197;
};
var _19a=function(_19b,_19c){
_199().focus();
};
return {load:function(){
var _19d={id:_196,name:_196,align:"left"};
swfobject.embedSWF(base+"EditApplication.swf",_196,"100%","100%","10.0.0",base+"expressInstall.swf",SM.Util.mergeHash({bridgeID:"toolbar"},Consts.toolbar.flashvars),_198,_19d);
SM.Util.doAWobble();
$("#editApp").mousewheel(_19a);
},updatePlayer:function(){
var att={data:base+"expressInstall.swf",width:"100%",height:"100%"};
var par={};
var id=_196;
var _1a1=function(){
window.location.reload();
};
swfobject.showExpressInstall(att,par,id,_1a1);
},onLoadPhase:function(_1a2){
_199().onLoadPhase(_1a2);
},notifyLoadProgress:function(_1a3,_1a4,_1a5){
_199().notifyLoadProgress(_1a3,_1a4,_1a5);
},notifyLoadComplete:function(){
_199().notifyLoadComplete();
},onMouseEvent:function(type,data){
_199().onMouseEvent(type,data);
},setBlockInput:function(_1a8){
_199().setBlockInput(_1a8);
},setContext:function(_1a9){
_199().setContext(_1a9);
},setActive:function(_1aa){
_199().setActive(_1aa);
},onResizePage:function(_1ab,_1ac){
_199().onResizePage(_1ab,_1ac);
},viewportNotify:function(_1ad){
_199().viewportNotify(_1ad);
},viewportDispatchInfo:function(){
_199().viewportDispatchInfo();
},setHTMLBackground:function(_1ae,_1af){
_199().setHTMLBackground(_1ae,_1af);
},getApp:_199,minimise:function(_1b0){
$("#editApp")[0].className=_1b0?"externalApp":"externalAppNoIcons";
},maximise:function(){
$("#editApp")[0].className="";
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.Invite=(function(){
var _1b1=function(){
return SM.EditApp.getApp();
};
return {contactsToArray:function(_1b2){
var list,i;
list=[];
for(i=0;i<_1b2.length;i+=1){
if(_1b2[i].hasOwnProperty("email")){
list.push(_1b2[i]);
}
}
return list;
},openLiveContacts:function(){
var RU=encodeURIComponent("http://auth.sitemakerlive.com/livecontacts");
var ps=encodeURIComponent("Contacts.Invite");
var pl=encodeURIComponent("http://en.sitemakerlive.com/privacy.html");
var _1b8=encodeURIComponent(location.hostname);
var _1b9=["https://consent.live.com/Delegation.aspx?ru=",RU,"&ps=",ps,"&pl=",pl,"&appctx=",_1b8].join("");
this.liveWindow=SM.popup(_1b9,"live_contacts","\"status=0,toolbar=0,menubar=0,height=600,width=970,directories=0,top=100,left=100\"");
},liveHandler:function(_1ba){
var list=this.contactsToArray(_1ba);
_1b1().onLiveContacts(list);
if(typeof this.liveWindow!=="undefined"){
this.liveWindow.close();
}
},openGMailContacts:function(){
var path="http://www.google.com/accounts/AuthSubRequest?"+"scope=https%3A%2F%2Fwww.google.com%2Fm8%2Ffeeds%2F&session=0&secure=0&next=http%3A%2F%2F"+window.location.host+"%2F_app%2F0001%2Fen%2Fresources%2Finvite%2Fgmail-contacts.html";
this.gmailWindow=SM.popup(path,"gmail_contacts","\"status=0,toolbar=0,menubar=0,height=500,width=500,directories=0,top=100,left=100\"");
},gmailHandler:function(_1bd){
_1b1().onGMailToken(_1bd);
if(typeof this.gmailWindow!=="undefined"){
this.gmailWindow.close();
}
},openYahooContacts:function(){
var host,path;
host=window.location.host;
path="/cgi-bin/contacts.cgi?todo=yahoo&host="+encodeURI(host);
this.yahooWindow=SM.popup(path,"yahoo_contacts","\"status=0,toolbar=0,menubar=0,scroll=1,height=500,width=800,directories=0,top=100,left=100\"");
},yahooHandler:function(_1c0){
var list=contactsToArray(_1c0);
_1b1().onYahooContacts(list);
if(typeof this.yahooWindow!=="undefined"){
this.yahooWindow.close();
}
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.FBConnect=(function(){
var _1c2=null;
var env=null;
var _1c4=function(){
return env.getApp();
};
var _1c5=function(_1c6){
var _1c7=document.getElementById("fb-topbar");
if(_1c7){
_1c7.style.display=_1c6;
}
};
return {connect:function(){
env.suspendForOverlay();
var _1c8=function(){
_1c4().FB_onConnect();
env.resumeFromOverlay();
};
FB.Connect.requireSession(_1c8,_1c8);
},logout:function(){
env.suspendForOverlay();
FB.Connect.logout(function(){
try{
_1c4().FB_onLogout();
}
catch(e){
}
finally{
env.resumeFromOverlay();
}
});
},extendedPermissions:function(){
env.suspendForOverlay();
FB.Connect.showPermissionDialog("create_note",function(){
try{
_1c4().FB_onPermission();
}
catch(e){
}
finally{
env.resumeFromOverlay();
}
});
},isConnected:function(){
if(typeof FB==="undefined"){
return false;
}
return (FB.Connect.get_status().result===FB.ConnectState.connected);
},isLinked:function(){
return (SM.getCookie("fb_link")==FB.Connect.get_loggedInUser());
},returnToApp:function(){
env.resumeFromOverlay();
},init:function(_1c9){
env=_1c9;
var _1ca,_1cb,_1cc;
_1ca=false;
_1cb=document.createElement("div");
_1cb.id="FB_HiddenContainer";
_1cb.style.position="absolute";
_1cb.style.left="-10000px";
_1cb.style.top="-10000px";
_1cb.style.width="0px";
_1cb.style.height="0px";
window.document.body.insertBefore(_1cb,window.document.body.firstChild);
_1cc=document.createElement("script");
_1cc.src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php";
$(_1cc).load(function(){
_1ca=true;
if(typeof FB_RequireFeatures!=="undefined"&&typeof FB!=="undefined"){
FB_RequireFeatures(["XFBML"],function(){
FB.Facebook.init(Consts.fb_api_key,"/_fbconnect/xd_receiver.htm",{"ifUserConnected":function(uid){
if(SM.FBConnect.isLinked()){
window.document.getElementById("fb-topbar").style.display="block";
}
}});
});
}
});
window.document.body.appendChild(_1cc);
fbInterval=setInterval(function(){
if(!_1ca&&typeof FB_RequireFeatures!=="undefined"){
$(_1cc).load();
clearInterval(fbInterval);
}
},50);
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.Twitter=(function(){
var _1ce=function(){
return SM.EditApp.getApp();
};
var _1cf=location.hostname.replace(/\./g,"_");
return {openTwitterAuth:function(){
this.twitterWindow=SM.popup("/cgi-bin/message.cgi?todo=twitter_start",_1cf,"\"status=0,toolbar=0,menubar=0,height=500,width=800,directories=0,top=20,left=20\"");
},twitterHandler:function(){
_1ce().onTwitterAuth();
if(typeof this.twitterWindow!=="undefined"){
this.twitterWindow.close();
}
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.ViewBase=(function(){
var _1d0,_1d1,_1d2,_1d3;
_1d0=function(_1d4){
return (_1d4>0)?-1*_1d4:_1d4;
};
_1d1=function(tb){
var _1d6,_1d7,e,s;
_1d6=tb;
if(_1d6>0){
e=document.getElementById("page-wrapper");
s=document.getElementById("skip-links");
_1d7=e.offsetTop;
if(_1d7<Consts.topbarHeight){
s.style.height=Consts.topbarHeight+"px";
s.style.marginTop="0px";
}
}
};
_1d2=function(){
try{
document.getElementById("non-flash").style.display="none";
var _1da=document.getElementById("flash_content");
_1da.style.display="block";
_1da.zIndex=2;
if(Consts.main.halign==="center"){
_1da.style.left="50%";
_1da.style.marginLeft="-"+((_1da.clientWidth+parseInt(Consts.margins.left,10)+parseInt(Consts.margins.right,10))/2+parseInt(Consts.main.border,10))+"px";
}
document.getElementById(SM.environment.usersSiteId()).style.display="block";
document.getElementById("content-wrapper").style.left=(-1*SM.Consts.CONTAINER_OFFSET)+"px";
}
catch(err){
}
};
canOverlay=function(){
return SM.Snippet.supported()&&SM.Snippet.canUseWmodeOpaque();
};
return {init:function(_1db,_1dc){
this.userAppName=_1db;
this.userAppConfig=_1dc;
return this;
},onDOMReady:function(_1dd){
SM.Viewport.init(_1dd);
SM.Replacements.main("100%",Consts.cwidth);
SM.Replacements.topbar();
SM.Replacements.moreover();
},usersSiteId:function(){
return this.userAppConfig.activeElementId;
},resizePage:function(_1de,_1df){
var _1e0,_1e1,_1e2,_1e3;
_1e3=parseInt(_1df,10);
_1e2=parseInt(_1de,10);
_1e0=document.getElementById("flash_content");
_1e1=document.getElementById(this.usersSiteId());
if(_1e2&&typeof _1e2==="number"){
SM.pageHeight=_1de;
_1e0.style.height=_1de+"px";
_1e1.setAttribute("height",_1de);
}
if(_1e3&&typeof _1e3==="number"){
SM.pageWidth=_1df;
_1e0.style.width=_1df+"px";
_1e1.setAttribute("width",_1df);
}
var that=this;
setTimeout(function(){
that.valign();
SM.Viewport.dispatchInfo();
},0);
},valign:function(){
var a,top,_1e7,cen,bot,_1ea;
_1ea=Consts.valign;
a=SM.Viewport.getVPHeight()-SM.Viewport.getContentHeight();
if(!(_1e7=document.getElementById("skip-links"))){
return;
}
_1e7.style.display="block";
top=_1d0(a);
cen=_1d0(a/2);
bot=0;
if(a>0){
_1e7.style.height=a+"px";
if(Consts.valign==="centre"||Consts.valign==="center"){
_1e7.style.marginTop=cen+"px";
}else{
if(Consts.valign==="top"){
_1e7.style.marginTop=top+"px";
}else{
if(Consts.valign==="bottom"){
_1e7.style.marginTop=bot+"px";
}
}
}
}else{
_1e7.style.marginTop=top+"px";
_1e7.style.height=0;
}
setTimeout(function(){
_1d1(Consts.topbar);
},0);
},getApp:function(){
return document.getElementById("flash_content_swfo");
},suspendForOverlay:function(){
if(!canOverlay()){
var e=document.getElementById("page-wrapper");
e.style.height=0;
e.style.textIndent="-9999px";
e.style.top="-9999px";
SM.Util.refreshIE();
}
},resumeFromOverlay:function(){
if(!canOverlay()){
var e=document.getElementById("page-wrapper");
e.style.height="";
e.style.textIndent="";
e.style.top="";
SM.Util.refreshIE();
}
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.EditBase=(function(){
var _1ed,_1ee;
var _1ef=true;
var _1f0=function(_1f1,_1f2,_1f3){
var _1f4=parseInt(_1f2);
var _1f5=parseInt(_1f1);
var _1f6=document.getElementById("flash_content");
var _1f7=document.getElementById(_1f3.usersSiteId());
var _1f8=document.getElementById("content-wrapper");
var _1f9=document.getElementById("website");
if(_1f5&&typeof _1f5=="number"){
SM.pageHeight=_1f1;
if(_1f5<=_1f9.clientHeight){
_1f8.style.height="100%";
}else{
_1f8.style.height=_1f1+"px";
}
}
if(_1f4&&typeof _1f4=="number"){
SM.pageWidth=_1f2;
if(_1f4<=_1f9.clientWidth){
_1f8.style.width="100%";
}else{
_1f8.style.width=_1f2+"px";
}
}
};
var _1fa=function(){
return SM.EditApp;
};
return {init:function(_1fb,_1fc){
this.userAppName=_1fb;
this.userAppConfig=_1fc;
this.sideBarWidth=8;
this.topBarHeight=111;
return this;
},onDOMReady:function(_1fd){
SM.Viewport.init(_1fd);
SM.EditApp.load();
},usersSiteId:function(){
return this.userAppConfig.activeElementId;
},minDimensionCSSSupport:function(){
var _1fe=document.createElement("div");
document.body.appendChild(_1fe);
_1fe.style.width="1%";
_1fe.style.minWidth="200px";
var _1ff=$("newDiv").width();
document.body.removeChild(_1fe);
return (_1ff==200);
},resizePage:function(_200,_201){
if(SM.Viewport.getFlexActive()){
SM.EditApp.onResizePage(_200,_201);
}else{
if(!this.minDimensionCSSSupport()){
_1f0(_200,_201,this);
}else{
var _202=parseInt(_201);
var _203=parseInt(_200);
var _204=document.getElementById(this.usersSiteId());
$(_204).css({minWidth:_202+"px",minHeight:_203+"px"});
}
}
},valign:function(){
return;
},getApp:function(){
return _1fa().getApp();
},suspendForOverlay:function(){
var _205=this.getApp().hasIcons();
_1fa().minimise(_205);
_1fa().setBlockInput(true);
SM.Util.refreshIE();
},resumeFromOverlay:function(){
_1fa().maximise();
_1fa().setBlockInput(false);
SM.Util.refreshIE();
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.ExternalApp=(function(){
var _206=false;
var _207,_208;
var _209=function(url,_20b){
_207=document.createElement("div");
_207.id="externalApp";
_207.className=_20b?"":"noIcons";
_208=document.createElement("iframe");
_208.width="100%";
_208.height="100%";
_208.frameBorder="0";
_208.src=url;
_207.appendChild(_208);
document.body.appendChild(_207);
SM.EditApp.minimise(_20b);
_206=true;
};
return {load:function(url,_20d){
if(_206){
_208.src=url;
}else{
_209(url,_20d);
}
},clear:function(){
if(_206){
_207.removeChild(_208);
document.body.removeChild(_207);
_208=null;
_207=null;
SM.EditApp.maximise();
_206=false;
}
}};
}());
(function($){
var _20f=["DOMMouseScroll","mousewheel"];
$.event.special.mousewheel={setup:function(){
if(this.addEventListener){
for(var i=_20f.length;i;){
this.addEventListener(_20f[--i],handler,false);
}
}else{
this.onmousewheel=handler;
}
},teardown:function(){
if(this.removeEventListener){
for(var i=_20f.length;i;){
this.removeEventListener(_20f[--i],handler,false);
}
}else{
this.onmousewheel=null;
}
}};
$.fn.extend({mousewheel:function(fn){
return fn?this.bind("mousewheel",fn):this.trigger("mousewheel");
},unmousewheel:function(fn){
return this.unbind("mousewheel",fn);
}});
function handler(_214){
var args=[].slice.call(arguments,1),_216=0,_217=true;
_214=$.event.fix(_214||window.event);
_214.type="mousewheel";
if(_214.wheelDelta){
_216=_214.wheelDelta/120;
}
if(_214.detail){
_216=-_214.detail/3;
}
args.unshift(_214,_216);
return $.event.handle.apply(this,args);
}
})(jQuery);

