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:"15244",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"]=flashDomId;
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;
SM.AppSwitch.init(SM.environment.userAppName,SM.environment.userAppConfig);
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();
}
if(Consts.google_analytics_uacct){
SM.GA.initAnalytics();
}
SM.SWFAddress.resetToRootPath();
SM.setInitialPage();
var _b9=$(_b6).get(0);
if(typeof _b9==="undefined"){
throw "Root Element Undefined";
}
SM.Util.init(_b9);
SM.Viewport.init(_b9);
SM.Replacements.main("100%",Consts.template==="sm5"?"100%":Consts.cwidth);
SM.Replacements.topbar();
SM.Replacements.moreover();
$(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+="&amp;pageId="+_ba;
}else{
Consts.main.flashvars+="&amp;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();
Consts.main.flashvars=Consts.main.flashvars.replace(/(&|&amp;)?edit=true/,"");
Consts.main.flashvars=Consts.main.flashvars.replace(/(&|&amp;)?view=(A|B|true)+/,"");
Consts.main.flashvars=Consts.main.flashvars.replace(/(&|&amp;)?pageId=\d*/,"");
Consts.main.flashvars=Consts.main.flashvars.replace(/(&|&amp;)?from_wizard=Y/,"");
if(_c2==="view"){
Consts.main.flashvars+="&amp;view=true";
Consts.main.flashvars+="&amp;from_wizard=Y";
}else{
if(_c2==="edit"){
Consts.main.flashvars+="&amp;view="+Consts.toolbar;
Consts.main.flashvars+="&amp;edit=true";
Consts.main.flashvars+="&amp;from_wizard=Y";
}
}
Consts.main.flashvars+="&amp;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 _df,_e0,_e1,_e2,_e3;
flashDomId=id+"_swfo";
_e0={allowScriptAccess:"always",quality:"best",wmode:this.getWmode(),base:_a9()+Consts.respath};
if(_de){
_e0.bgcolor=_de;
}
_e1={style:";"};
_e2=mergeFlashVars(_df);
if(/[et]/i.test(Consts.toolbar)){
_e3="10.0.0";
if(!swfobject.hasFlashPlayerVersion("10.0.0")){
_dd=SM.Viewport.getVPHeight();
}
}else{
_e3="9.0.0";
}
swfobject.embedSWF(swf,flashDomId,_dc,_dd,_e3,Consts.respath+"expressInstall.swf",_e2,_e0,_e1);
},getWmode:function(){
var _e4,_e5;
_e4=navigator.platform;
_e5=document.location.search.match(/wmode=(window|opaque|transparent|gpu|direct)/);
if(_e5){
return _e5[1];
}else{
if(SM.Snippet.supported()&&SM.Snippet.canUseWmodeOpaque()){
return "opaque";
}
}
return "window";
},popup:function(url,_e7,_e8){
var _e9=window.open(url,_e7,eval(_e8));
_e9.focus();
return _e9;
},getUseFlash:function(){
return SM.getCookie(SM.Consts.BYPASS_COOKIE);
},setUseFlash:function(_ea){
SM.setCookie(SM.Consts.BYPASS_COOKIE,"true",_ea);
},removeUseFlash:function(){
var _eb=document.getElementById(SM.Consts.REACTIVATE_LINK_ID);
_eb.innerHTML="Loading...";
SM.setCookie(SM.Consts.BYPASS_COOKIE,"true",0);
location.reload(true);
},fixOutOfMemoryError:function(){
__flash_unloadHandler=function(){
};
__flash_savedUnloadHandler=function(){
};
},getCookie:function(_ec){
var _ed=_ec+"=";
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(_ed)==0){
return c.substring(_ed.length,c.length);
}
}
return null;
},setCookie:function(_f1,_f2,_f3){
if(_f3){
var _f4=new Date();
_f4.setTime(_f4.getTime()+(_f3*60*1000));
var _f5="; expires="+_f4.toGMTString();
}else{
var _f5="";
}
document.cookie=_f1+"="+_f2+_f5+"; path=/";
},delCookie:function(_f6){
SM.setCookie(_f6,"",-1);
},expires:function(_f7){
var _f8,_f9;
_f8=new Date();
if(_f7<1){
_f8.setTime(_f8.getTime()-24*60*60*1000);
}else{
_f8.setTime(_f8.getTime()+(_f7*60*1000));
}
_f9="; expires="+_f8.toGMTString();
return _f9;
},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(_fb){
var _fc,_fd,i,j,_100;
_100=document.getElementById(_fb);
if(!_100){
return;
}
_fc=_100.getElementsByTagName("img");
for(i=0;i<_fc.length;i+=1){
_fc[i].src=Consts.commonimagespath+"sitebutton.gif";
}
_fd=_100.getElementsByTagName("iframe");
for(j=0;j<_fd.length;j+=1){
_fd[j].src="about:blank";
}
},valign:function(){
SM.environment.valign();
},preInitContainer:function(_101){
var e=document.getElementById(_101);
if(e){
e.className=e.className+" cheight";
}
},postInitContainer:function(_103){
var e,cn;
if(SM.postInitDone){
return;
}
SM.postInitDone=false;
window.onhelp=function(){
return false;
};
e=document.getElementById(_103);
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,_108,_109,_10a;
if(typeof preferredAddressAvailable!=="undefined"&&preferredAddressAvailable&&typeof Consts.preferredAddress!=="undefined"&&Consts.preferredAddress!==location.host){
port=(location.port)?":"+location.port:"";
if(/\d+\/site\//.test(location.href)){
_108="http://"+location.host+port+"/site/"+Consts.preferredAddress+location.search+location.hash;
}else{
_108="http://"+Consts.preferredAddress+port+location.pathname+location.search+location.hash;
}
_109=document.createElement("form");
_109.method="post";
_109.action=_108;
_10a=document.createElement("input");
_10a.type="hidden";
_10a.name="mark";
_10a.value=SM.getCookie("markc");
_109.appendChild(_10a);
document.body.appendChild(_109);
_109.submit();
}
});
},getQueryString:function(){
var _10b,i,pair,_10e;
_10b=location.search.replace(/^\?/,"").split(/[&;]/);
_10e={};
for(i=0;i<_10b.length;i+=1){
pair=_10b[i].split("=");
_10e[pair[0]]=pair[1];
}
return _10e;
},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(_10f,_110){
setTimeout(SM.valign,0);
_10f=_10f||"0px";
setTimeout(function(){
SM.addSwf(Consts.main.path,Consts.main.container,_110,_10f,Consts.bgcolor,Consts.main.flashvars);
},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 _111,_112;
_112=document.body;
_111=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("");
},getRootElement:function(){
return _112==document.body?_111():_112;
},getRootContentElement:function(){
return _112;
},getRootScrollElement:function(){
return (SM.Util.getRootElement().tagName=="DIV")?SM.Util.getRootElement():window;
},mergeHash:function(orig,_114){
var _115={};
for(value in orig){
_115[value]=orig[value];
}
for(value in _114){
_115[value]=_114[value];
}
return _115;
},init:function(el){
_112=el||_112;
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.Viewport=(function(){
var _117,_118,_119,_11a,_11b,_11c,_11d;
_11a={};
_117=function(el){
return el.clientWidth?parseInt((el.offsetWidth-el.clientWidth)/2,10):0;
};
_118=function(el){
var _120,_121,_122,_123;
_120=_121=0;
while(el.offsetParent&&el!==SM.Util.getRootElement()){
_123=_117(el);
_120+=el.offsetLeft+_123;
_121+=el.offsetTop+_123;
el=el.offsetParent;
}
return {x:_120,y:_121};
};
_11b=function(){
var _124,_125;
if(SM.Util.getRootElement()){
_124=SM.Util.getRootElement().clientWidth;
_125=SM.Util.getRootElement().clientHeight;
}
return {x:_124,y:_125};
};
_11d=function(){
var _126,_127;
_126=$(SM.Util.getRootScrollElement()).scrollLeft();
_127=$(SM.Util.getRootScrollElement()).scrollTop();
return {x:_126,y:_127};
};
_11c=function(id){
return _118(document.getElementById(id));
};
_119=function(elId){
return {vpDimensions:_11b(),vpScroll:_11d(),swfPageOffset:_11c(elId)};
};
return {getContentHeight:function(){
var el=document.getElementById("content-wrapper");
return el.offsetHeight+_117(el);
},getContentWidth:function(){
var el=document.getElementById("content-wrapper");
return el.offsetWidth+_117(el);
},getVPDimensions:_11b,getVPHeight:function(){
return this.getVPDimensions().y;
},getVPWidth:function(){
return this.getVPDimensions().x;
},getVPScroll:_11d,getSWFPageOffset:_11c,subscribe:function(id,_12d){
var _12e;
for(_12e in _11a){
if(_11a.hasOwnProperty(_12e)&&_11a[_12e]===_12d){
return false;
}
}
_11a[id]=_12d;
this.dispatchInfo(id);
return true;
},unsubscribe:function(id,_130){
if(_11a[id]&&_11a[id]===_130){
delete _11a[id];
return true;
}
return false;
},dispatchInfo:function(id){
var _132,_133;
if(id){
_133={};
_133[id]=_11a[id];
}else{
_133=_11a;
}
for(_132 in _133){
if(_133.hasOwnProperty(_132)){
try{
if(_133[_132]&&typeof document.getElementById(_132)[_133[_132]]==="function"){
document.getElementById(_132)[_133[_132]](_119(_132));
}
}
catch(err){
console.debug("Error: failed to execute, have you implimented and exposed recieveViewport on the ExternalInterface?\nmessage: "+err);
}
}
}
},findPos:function(el){
return _118(el);
},scrollTo:function(x,y){
scrollTo(x,y);
},scrollBy:function(x,y){
scrollBy(x,y);
},getCallbackString:function(oId){
return _11a[oId];
},init:function(_13a){
$(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 _13c;
try{
_13c=SM.SWFAddress.getPageIdFromPath(e.value);
}
catch(err){
_13c=false;
}
if(_13c){
SM.SWFAddress.navigateTo(_13c);
}else{
SM.SWFAddress.navigateTo(Consts.initialPageId);
}
},setPath:function(path,_13e){
try{
if(path=="/"||path==""||_13e==Consts.initialPageId){
SWFAddress.setValue("");
}else{
SWFAddress.setValue(path);
}
}
catch(err){
var _13f=err;
}
},navigateTo:function(_140){
if(SM.SWFAddress.alreadyAtPage(_140)){
return;
}
flashMovie=document.getElementById(SM.environment.usersSiteId());
if(flashMovie&&flashMovie.loadPageJS){
SM.SWFAddress.currentPage(_140);
flashMovie.loadPageJS(_140);
}
},resetToRootPath:function(_141){
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(_145){
if(_145){
SM.pageId=_145;
}
return SM.pageId;
},alreadyAtPage:function(_146){
return _146==SM.pageId;
},getPageIdFromPath:function(path){
var re=new RegExp(/[\w-]+\/(\d+)/);
try{
var _149=re.exec(path);
if(_149&&_149.length>=2){
return _149[1];
}
return null;
}
catch(err){
return null;
}
},isRedirectExcluded:function(){
var l=location;
var _14b=SM.Consts.BASE_TAG_PRESENT;
var _14c=(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/)||_14b||_14c||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 _150=/\/([\w-]+)$/.exec(location.hash);
if(!_150){
return;
}
for(var i=0;i<_150.length;i++){
for(var key in this.routes){
if(key==_150[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(_154){
return _154.protocol+"//"+_154.host+"#"+_154.pathname;
}};
if(typeof SM==="undefined"){
SM={};
}
SM.Snippet=(function(){
var _155,_156,_157,_158;
_157=function(key){
if(key.keyCode!=8){
return;
}
if(key.preventDefault){
key.preventDefault();
key.stopPropagation();
}else{
key.cancelBubble=true;
key.returnValue=false;
}
};
_156=function(){
return (navigator.userAgent.match(/Gecko.*?\/(3.0.1\d|3.5)/));
};
isChrome=function(){
return /Chrome/.test(navigator.userAgent);
};
_155=function(_15a){
if(_15a.contentDocument){
return _15a.contentDocument;
}else{
if(_15a.contentWindow){
return _15a.contentWindow.document;
}else{
if(_15a.document){
return _15a.document;
}
}
}
};
_158=function(_15b){
if(!_15b){
_15b=window.event;
}
var _15c=_15b.currentTarget?_15b.currentTarget:_15b.srcElement;
var _15d=_155(_15c).getElementsByTagName("a");
for(var i=0;i<_15d.length;i+=1){
_15d[i].target="_parent";
}
};
(function(){
if(!_156()||isChrome()){
return;
}
var _15f=["keydown","keypress","keyup"];
for(typeI in _15f){
$(document)[_15f[typeI]](_157);
}
})();
return {ID_PREFIX:"snippet_",SNIPPET_PARENT:"flash_content",CONTENT_WRAPPER:"content-wrapper",IE:false,add:function(id,_161,_162,_163,x,y,_166,_167){
var _168=document.createElement("iframe");
_168.id=this.ID_PREFIX+id;
$(_168).load(function(evt){
_158(evt);
});
_167=_167?_167:"#00ffffff";
if(_161.indexOf("/cgi-bin/snippet.cgi")===0){
_168.src=_161;
}else{
var _16a=(_167.indexOf("#00")!==0)?"#"+_167.substring(3):"transparent";
$(_168).load(function(evt){
var _16c=_155(this).body;
_16c.style.backgroundColor=_16a;
_16c.innerHTML=_161;
_16c.style.margin="0";
_16c.style.padding="0";
});
}
_168.style.width=_162+"px";
_168.style.height=_163+"px";
_168.style.position="absolute";
_168.style.left=x+"px";
_168.style.top=y+"px";
_168.frameBorder=0;
_168.allowTransparency=true;
_168.scrolling=_166?"scrolling":"no";
if(_167.indexOf("#00")===-1){
_168.style.borderStyle="solid";
_168.style.borderWidth="1px";
_168.style.borderColor="#"+_167.substring(3);
}
if(SM.Snippet.supported()){
document.getElementById(this.SNIPPET_PARENT).appendChild(_168);
}else{
_168.style.position="static";
_168.style.marginTop="10px";
document.getElementById(this.CONTENT_WRAPPER).appendChild(_168);
}
if(navigator.userAgent.match(/Gecko.*?\/(3.5)/)&&navigator.userAgent.match(/Macintosh/)){
SM.Util.doAWobble();
}
},del:function(id){
var _16e=document.getElementById(this.ID_PREFIX+id);
if(_16e){
var _16f=_16e.parentNode;
_16f.removeChild(_16e);
}
},delAll:function(){
var _170=this.supported()?this.SNIPPET_PARENT:this.CONTENT_WRAPPER;
var _171=document.getElementById(_170).getElementsByTagName("iframe");
for(var i=_171.length-1;i>=0;i-=1){
if(_171[i].id.indexOf(this.ID_PREFIX)===0){
this.del(_171[i].id.substring(this.ID_PREFIX.length));
}
}
},supported:function(){
if(Consts.wmodeWindow){
return false;
}
var _173=swfobject.getFlashPlayerVersion().major;
if(this.browserSupported()&&_173>=10){
return true;
}
return false;
},browserSupported:function(){
var isIE=com.asual.util.Browser.isIE();
var _175=com.asual.util.Browser.isOpera();
var _176=com.asual.util.Browser.isSafari();
var _177=com.asual.util.Browser.getVersion();
var _178=navigator.platform;
if(_156()||(isIE&&_177>=6)||_176){
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 _17b=SM.Viewport.findPos(el);
scrollTo(_17b.x,_17b.y);
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.AppSwitch=(function(){
var _17c,Apps,_17e,_17f,_180,_181,_182,_183,_184,_185,_186,_187;
_17e=function(_188,_189){
_189.bridgeID=this.appId;
var _18a=document.createElement("div");
_18a.className="full_screen_app_wrap";
_18a.id=this.activeElementId;
_188.appendChild(_18a);
SM.addSwf(this.swf,_188.id,this.width,this.height,this.bgcolor,_189);
};
_17f=function(_18b,_18c){
var _18d=document.createElement("iframe");
_18d.className="full_screen_app_wrap";
_18d.id=this.activeElementId;
_18d.style.height="0";
_18d.style.paddingTop="0";
_18d.style.paddingBottom="0";
_18d.style.borderWidth="0";
_18d.allowtransparency=false;
_18d.style.backgroundColor="#fff";
_18d.frameBorder="0";
_18b.appendChild(_18d);
_18d.setOptions=function(opts){
var url=opts.url;
if(opts.refresh){
if(url!==_18d.src){
var _190=(url.indexOf("?")>-1)?"&":"?";
var _191=opts.url.split("#");
url=_191[0]+_190+(new Date().getTime());
if(_191[1]){
url+="#"+_191[1];
}
}
}
_18d.src=url;
};
_18d.updateSize=function(info){
this.style.height=info.vpDimensions.y+"px";
};
setTimeout(function(){
SM.Viewport.subscribe(_18d.id,"updateSize");
},0);
_18d.src=_18c.url;
};
_180=function(_193){
};
Apps={membership:{appId:"membership",activeElementId:"membership_swfo",type:"swf",swf:Consts.respath+"membership/membership.swf",height:"100%",width:"100%",bgcolor:"#ffffff",render:_17e},tp_website:{appId:"tp_website",activeElementId:"tp_website_swfo",type:"url",render:_17f},blank:{appId:"blank",activeElementId:"blank_swfo",type:"blank",render:_180},toolbar:{activeElementId:"flex_toolbar_swfo"},sidebar:{activeElementId:"flex_sidebar_swfo"}};
_181=function(_194){
_186(_194);
_184(_194);
_187();
};
_182=function(_195,_196){
var el=document.getElementById(_195.activeElementId);
if(el&&typeof el.setOptions==="function"){
el.setOptions(_196);
}
};
_183=function(app,opts){
var _19a,_19b,_19c;
_19a=opts||{};
_19b=Apps[app];
_19c=document.createElement("div");
_19c.id=Apps[app].appId;
_19c.className="switchable full_screen_app";
SM.Util.getRootContentElement().appendChild(_19c);
_19b.render(_19c,_19a);
};
_184=function(_19d){
var _19e=document.getElementById(Apps[_17c].appId);
var _19f=document.getElementById(Apps[_19d].appId);
_19e.style.height=0;
_19e.style.textIndent="-9999px";
_19e.style.top="-9999px";
_19f.style.height="";
_19f.style.textIndent="";
_19f.style.top="";
if($.browser.msie){
var _1a0=parseInt($.browser.version);
if(_1a0==7||_1a0==8){
setTimeout(function(){
$(document.body).addClass("force_redraw").removeClass("force_redraw");
},0);
}
}
_17c=_19d;
};
_186=function(_1a1){
if(_17c===_185&&_1a1==="tp_website"){
var _1a2=Apps[_185].activeElementId;
Apps[_185].resizeCallback=SM.Viewport.getCallbackString(_1a2);
Apps[_185].width=SM.Viewport.getContentWidth();
Apps[_185].height=SM.Viewport.getContentHeight();
SM.Viewport.unsubscribe(_1a2,Apps[_185].resizeCallback);
SM.resizePage(10,10);
}
};
_187=function(){
var _1a3=Apps[_185].activeElementId;
if(_17c===_185&&typeof SM.Viewport.getCallbackString(_1a3)==="undefined"){
SM.resizePage(Apps[_185].height,Apps[_185].width);
SM.Viewport.subscribe(_1a3,Apps[_185].resizeCallback);
}
};
return {setActiveApp:function(app,_1a5){
if(document.getElementById(Apps[app].appId)){
if(_1a5){
_182(Apps[app],_1a5);
}
}else{
_183(app,_1a5);
}
_181(app);
},switchToApp:function(app){
_181(app);
},addApp:function(_1a7){
$().extend(true,Apps,_1a7);
},getApps:function(){
return Apps;
},init:function(_1a8,_1a9){
var _1aa={};
_1aa[_1a8]=_1a9;
_185=_1a8;
this.addApp(_1aa);
_17c=_1a8;
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.Bridge=(function(){
var _1ab=function(_1ac,_1ad,args,_1af){
if(_1ac=="container"){
_1ac="page-wrapper";
}
var _1b0=SM.AppSwitch.getApps()[_1ac].activeElementId;
var el=document.getElementById(_1b0);
if(el&&typeof el[_1ad]==="function"){
var func=el[_1ad];
var _1b3=[];
for(var i=1;i<args.length;i++){
_1b3.push(args[i]);
}
return func.apply(el,_1b3);
}
return _1af;
};
return {getAppProperty:function(_1b5,path){
return _1ab(_1b5,"getPropertyJS",arguments,null);
},callAppProperty:function(_1b7,path){
return _1ab(_1b7,"callPropertyJS",arguments,null);
},addRemoteListener:function(_1b9,path,_1bb){
return _1ab(_1b9,"addRemoteListenerJS",arguments,false);
},handleRemoteEvent:function(_1bc,path,type){
return _1ab(_1bc,"handleRemoteEventJS",arguments,false);
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.Toolbar=(function(){
var base=Consts.respath+"toolbar/";
var _1c0="flex_toolbar_swfo";
var _1c1={base:base,wmode:"transparent",bgcolor:"#E0E0E0"};
var _1c2=null;
var _1c3=function(){
if(!_1c2){
_1c2=document.getElementById(_1c0);
}
return _1c2;
};
var _1c4=false;
var _1c5=false;
var _1c6=false;
return {loadToolbar:function(){
var _1c7={id:_1c0,name:_1c0,align:"left"};
swfobject.embedSWF(base+"Toolbar.swf",_1c0,"100%","100%","10.0.0",false,SM.Util.mergeHash({bridgeID:"toolbar"},Consts.toolbar.flashvars),_1c1,_1c7);
SM.Util.doAWobble();
},onToolbarReady:function(){
_1c4=true;
if(_1c5){
_1c3().onContainerReady(_1c6);
}
},onContainerReady:function(){
_1c5=true;
if(_1c4){
_1c3().onContainerReady(false);
}
},onEditReady:function(){
_1c6=true;
if(_1c4){
_1c3().onEditReady();
}
},setBlockInput:function(_1c8){
_1c3().setBlockInput(_1c8);
},setContext:function(_1c9){
_1c3().setContext(_1c9);
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.Invite=(function(){
return {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 _1cd=encodeURIComponent(location.hostname);
var _1ce=["https://consent.live.com/Delegation.aspx?ru=",RU,"&ps=",ps,"&pl=",pl,"&appctx=",_1cd].join("");
this.liveWindow=SM.popup(_1ce,"live_contacts","\"status=0,toolbar=0,menubar=0,height=600,width=970,directories=0,top=100,left=100\"");
},liveHandler:function(_1cf){
var list,i;
list=[];
for(i=0;i<_1cf.length;i+=1){
if(_1cf[i].hasOwnProperty("email")){
list.push(_1cf[i]);
}
}
document.getElementById(SM.AppSwitch.getApps()["membership"].activeElementId).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(_1d3){
document.getElementById(SM.AppSwitch.getApps()["membership"].activeElementId).onGMailToken(_1d3);
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(_1d6){
var list,i;
list=[];
for(i=0;i<_1d6.length;i+=1){
if(_1d6[i].hasOwnProperty("email")){
list.push(_1d6[i]);
}
}
document.getElementById(SM.AppSwitch.getApps()["membership"].activeElementId).onYahooContacts(list);
if(typeof this.yahooWindow!=="undefined"){
this.yahooWindow.close();
}
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.FBConnect=(function(){
var _1d9=null;
var _1da=function(_1db){
var _1dc=document.getElementById("fb-topbar");
if(_1dc){
_1dc.style.display=_1db;
}
};
var hide=function(app){
_1d9=app||"page-wrapper";
if(!SM.Snippet.supported()){
SM.AppSwitch.setActiveApp("blank");
}
};
var show=function(app){
var _1e1=_1d9;
if(!SM.Snippet.supported()){
SM.AppSwitch.setActiveApp(_1e1,{});
}
return false;
};
return {connect:function(app){
var _1e3=app||Consts.main.appId;
hide(app);
FB.Connect.requireSession(function(){
try{
var _1e4=document.getElementById(SM.AppSwitch.getApps()[_1e3].activeElementId);
if(typeof _1e4!=="undefined"){
_1e4.FB_onConnect();
}
}
catch(e){
}
finally{
show();
}
});
document.getElementById("fb_dialog_cancel_button").onclick=show;
},logout:function(app){
var _1e6=app||Consts.main.appId;
hide(app);
FB.Connect.logout(function(){
try{
var _1e7=document.getElementById(SM.AppSwitch.getApps()[_1e6].activeElementId);
if(typeof _1e7!=="undefined"){
_1e7.FB_onLogout();
}
}
catch(e){
}
finally{
show();
}
});
},extendedPermissions:function(app){
var _1e9=app||Consts.main.appId;
hide(app);
FB.Connect.showPermissionDialog("create_note",function(){
var _1ea=document.getElementById(SM.AppSwitch.getApps()[_1e9].activeElementId);
try{
if(typeof _1ea!=="undefined"){
_1ea.FB_onPermission();
}
}
catch(e){
}
finally{
show();
}
});
},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(){
show();
},init:function(){
var _1eb,_1ec,_1ed;
_1eb=false;
_1ec=document.createElement("div");
_1ec.id="FB_HiddenContainer";
_1ec.style.position="absolute";
_1ec.style.left="-10000px";
_1ec.style.top="-10000px";
_1ec.style.width="0px";
_1ec.style.height="0px";
window.document.body.insertBefore(_1ec,window.document.body.firstChild);
_1ed=document.createElement("script");
_1ed.src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php";
$(_1ed).load(function(){
_1eb=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(_1ed);
fbInterval=setInterval(function(){
if(!_1eb&&typeof FB_RequireFeatures!=="undefined"){
$(_1ed).load();
clearInterval(fbInterval);
}
},50);
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.Twitter=(function(){
var _1ef=location.hostname.replace(/\./g,"_");
return {openTwitterAuth:function(){
this.twitterWindow=SM.popup("/cgi-bin/message.cgi?todo=twitter_start",_1ef,"\"status=0,toolbar=0,menubar=0,height=500,width=800,directories=0,top=20,left=20\"");
},twitterHandler:function(){
document.getElementById(SM.AppSwitch.getApps()["membership"].activeElementId).onTwitterAuth();
if(typeof this.twitterWindow!=="undefined"){
this.twitterWindow.close();
}
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.GA=(function(){
return {initAnalytics:function(){
var _1f0,_1f1,_1f2;
_1f2=false;
_1f0=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");
_1f1=document.createElement("script");
_1f1.src=_1f0+"google-analytics.com/ga.js";
$(_1f1).load(function(){
_1f2=true;
pageTracker=_gat._getTracker(Consts.google_analytics_uacct);
pageTracker._initData();
pageTracker._trackPageview();
});
document.body.appendChild(_1f1);
gaInterval=setInterval(function(){
if(!_1f2&&typeof _gat!="undefined"){
$(_1f1).load();
clearInterval(gaInterval);
}
},50);
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.ViewBase=(function(){
var _1f3,_1f4,_1f5;
_1f3=function(_1f6){
return (_1f6>0)?-1*_1f6:_1f6;
};
_1f4=function(tb){
var _1f8,_1f9,e,s;
_1f8=tb;
if(_1f8>0){
e=document.getElementById("page-wrapper");
s=document.getElementById("skip-links");
_1f9=e.offsetTop;
if(_1f9<Consts.topbarHeight){
s.style.height=Consts.topbarHeight+"px";
s.style.marginTop="0px";
}
}
};
_1f5=function(){
try{
document.getElementById("non-flash").style.display="none";
var _1fc=document.getElementById("flash_content");
_1fc.style.display="block";
_1fc.zIndex=2;
if(Consts.main.halign==="center"){
_1fc.style.left="50%";
_1fc.style.marginLeft="-"+((_1fc.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){
}
};
return {usersSiteId:function(){
return this.userAppConfig.activeElementId;
},resizePage:function(_1fd,_1fe){
var _1ff,_200,_201,_202,_203;
_203=parseInt(_1fe);
_202=parseInt(_1fd);
_1ff=document.getElementById("flash_content");
_200=document.getElementById(this.usersSiteId());
_201=document.getElementById("content-wrapper");
if(_202&&typeof _202==="number"&&_1fd!=_200.clientHeight){
SM.pageHeight=_1fd;
_1ff.style.height=_1fd+"px";
_201.style.height=_1fd+"px";
_200.setAttribute("height",_1fd);
}
if(_203&&typeof _203==="number"&&_203!=_200.clientWidth){
SM.pageWidth=_1fe;
_1ff.style.width=_1fe+"px";
_201.style.width=_1fe+"px";
_200.setAttribute("width",_1fe);
}
var that=this;
setTimeout(function(){
that.valign();
SM.Viewport.dispatchInfo();
},0);
},valign:function(){
var a,top,_207,cen,bot,_20a;
_20a=Consts.valign;
a=SM.Viewport.getVPHeight()-SM.Viewport.getContentHeight();
if(!(_207=document.getElementById("skip-links"))){
return;
}
_207.style.display="block";
top=_1f3(a);
cen=_1f3(a/2);
bot=0;
if(a>0){
_207.style.height=a+"px";
if(Consts.valign==="centre"||Consts.valign==="center"){
_207.style.marginTop=cen+"px";
}else{
if(Consts.valign==="top"){
_207.style.marginTop=top+"px";
}else{
if(Consts.valign==="bottom"){
_207.style.marginTop=bot+"px";
}
}
}
}else{
_207.style.marginTop=top+"px";
_207.style.height=0;
}
setTimeout(function(){
_1f4(Consts.topbar);
},0);
},init:function(_20b,_20c){
this.userAppName=_20b,this.userAppConfig=_20c;
return this;
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.EditBase=(function(){
var _20d,_20e;
return {usersSiteId:function(){
return this.userAppConfig.activeElementId;
},resizePage:function(_20f,_210){
var _211,_212,_213,_214,_215;
_215=parseInt(_210);
_214=parseInt(_20f);
_211=document.getElementById("flash_content");
_212=document.getElementById(this.usersSiteId());
_213=document.getElementById("content-wrapper");
if(_214&&typeof _214==="number"&&_20f!=_212.clientHeight){
SM.pageHeight=_20f;
_211.style.height=_20f+"px";
_213.style.height=_20f+"px";
_212.setAttribute("height",_20f);
}
if(_215&&typeof _215==="number"&&_215!=_212.clientWidth){
SM.pageWidth=_210;
_211.style.width=_210+"px";
_213.style.width=_210+"px";
_212.setAttribute("width",_210);
}
},valign:function(){
return;
},init:function(_216,_217){
this.userAppName=_216;
this.userAppConfig=_217;
$(document).ready(function(){
SM.Toolbar.loadToolbar();
});
return this;
}};
}());

