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:"17000",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("Nous avons rencontr\xe9 un probl\xe8me de cache. Nous vous recommandons de vider le cache de votre navigateur et de rafra\xeechir la page (les touches 'Ctrl+F5' devraient faire l'affaire)");
}
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=\"Quitter l'affichage HTML\" title=\"Revenir \xe0 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("Le Mode SEO n'est pas disponible avec la redirection masqu\xe9e. Veuillez consulter la FAQ dans le menu d'aide.");
}
},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).outerHeight();
},getContentWidth:function(){
var el=document.getElementById("content-wrapper");
return $(el).outerWidth();
},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.\d\d|3.[5-9])/));
};
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.Apps={};
(function(){
var _17c=function(_17d,_17e){
for(var key in _17d){
if(_17d.hasOwnProperty(key)&&$(_17e).index(key)>-1){
this[key]=_17d[key]||this[key];
}
}
};
SM.Apps.BaseApp=function(_180,_181){
if(typeof _181=="undefined"){
_181={};
}
var _182=["activeElementId","height","width"];
this.appId=_180;
this.height="100%";
this.width="100%";
_17c.call(this,_181,_182);
};
SM.Apps.BaseApp.prototype.render=function(){
};
SM.Apps.ModalApp=function(_183,_184){
if(typeof _184=="undefined"){
_184={};
}
var _185=["activeElementId","height","width","bgcolor"];
this.appId=_183;
this.bgcolor="#ffffff";
_17c.call(this,_184,_185);
};
SM.Apps.ModalApp.prototype=new SM.Apps.BaseApp();
SM.Apps.ModalApp.prototype.suspend=function(_186){
};
SM.Apps.ModalApp.prototype.reinstate=function(_187){
};
SM.Apps.ModalSWFApp=function(_188,_189){
if(typeof _189=="undefined"){
_189={};
}
var _18a=["activeElementId","swf","height","width","bgcolor","render","suspend","reinstate"];
this.appId=_188;
this.bgcolor="#ffffff";
_17c.call(this,_189,_18a);
};
SM.Apps.ModalSWFApp.prototype=SM.Apps.ModalApp.prototype;
SM.Apps.ModalWebsiteApp=function(_18b,_18c){
if(typeof _18c=="undefined"){
_18c={};
}
var _18d=["activeElementId","render","suspend","reinstate"];
this.appId=_18b;
_17c.call(this,_18c,_18d);
};
SM.Apps.ModalWebsiteApp.prototype=new SM.Apps.ModalApp();
SM.Apps.ModalBlankApp=function(){
if(typeof options=="undefined"){
options={};
}
this.appId="blank";
this.activeElementId="blank_swfo";
};
SM.Apps.ModalBlankApp.prototype=new SM.Apps.ModalApp();
SM.Apps.PersistentApp=function(_18e,_18f){
if(typeof _18f=="undefined"){
_18f={};
}
this.appId=_18e;
this.activeElementId=_18f["activeElementId"];
};
SM.Apps.PersistentApp.prototype=new SM.Apps.BaseApp();
}());
if(typeof SM==="undefined"){
SM={};
}
SM.AppSwitch=(function(){
var _190,Apps,_192,_193,_194,_195,_196,_197,_198,_199,_19a,_19b;
_195=function(_19c){
Apps[_190].suspend(_19c);
_198(_19c);
Apps[_19c].reinstate();
};
_196=function(_19d,_19e){
var el=document.getElementById(_19d);
if(el&&typeof el.setOptions==="function"){
el.setOptions(_19e);
}
};
_197=function(_1a0,_1a1){
var opts,_1a3,_1a4;
opts=_1a1||{};
_1a3=Apps[_1a0];
_1a4=document.createElement("div");
_1a4.id=Apps[_1a0].appId;
_1a4.className="switchable full_screen_app";
SM.Util.getRootContentElement().appendChild(_1a4);
_1a3.render(_1a4,opts);
};
_198=function(_1a5){
var _1a6=document.getElementById(Apps[_190].appId);
var _1a7=document.getElementById(Apps[_1a5].appId);
_1a6.style.height=0;
_1a6.style.textIndent="-9999px";
_1a6.style.top="-9999px";
_1a7.style.height="";
_1a7.style.textIndent="";
_1a7.style.top="";
if($.browser.msie){
var _1a8=parseInt($.browser.version);
if(_1a8==7||_1a8==8){
setTimeout(function(){
$(document.body).addClass("force_redraw").removeClass("force_redraw");
},0);
}
}
_190=_1a5;
};
return {setActiveApp:function(_1a9,_1aa){
if(document.getElementById(Apps[_1a9].appId)){
if(_1aa){
_196(Apps[_1a9].activeElementId,_1aa);
}
}else{
_197(_1a9,_1aa);
}
_195(_1a9);
},switchToApp:function(_1ab){
_195(_1ab);
},addApp:function(_1ac,_1ad){
Apps=Apps||{};
Apps[(_1ad||_1ac.appId)]=_1ac;
},getApps:function(){
return Apps;
},init:function(_1ae,_1af){
_199=_1ae;
_190=_1ae;
var _1b0=function(_1b1,_1b2){
_1b2.bridgeID=this.appId;
var _1b3=document.createElement("div");
_1b3.className="full_screen_app_wrap";
_1b3.id=this.activeElementId;
_1b1.appendChild(_1b3);
SM.addSwf(this.swf,_1b1.id,this.width,this.height,this.bgcolor,_1b2);
};
var _1b4=function(_1b5,_1b6){
var _1b7=document.createElement("iframe");
_1b7.className="full_screen_app_wrap";
_1b7.id=this.activeElementId;
_1b7.style.height="0";
_1b7.style.paddingTop="0";
_1b7.style.paddingBottom="0";
_1b7.style.borderWidth="0";
_1b7.allowtransparency=false;
_1b7.style.backgroundColor="#fff";
_1b7.frameBorder="0";
_1b5.appendChild(_1b7);
_1b7.setOptions=function(opts){
var url=opts.url;
if(opts.refresh){
if(url!==this.src){
var _1ba=url.indexOf("?")>-1?"&":"?";
var _1bb=opts.url.split("#");
url=_1bb[0]+_1ba+(new Date().getTime());
if(_1bb[1]){
url+="#"+_1bb[1];
}
}
}
this.src=url;
};
_1b7.updateSize=function(info){
this.style.height=info.vpDimensions.y+"px";
};
setTimeout(function(){
SM.Viewport.subscribe(_1b7.id,"updateSize");
},0);
_1b7.src=_1b6.url;
};
_1af.suspend=function(_1bd){
this.resizeCallback=SM.Viewport.getCallbackString(this.activeElementId);
this.width=SM.Viewport.getContentWidth();
this.height=SM.Viewport.getContentHeight();
SM.Viewport.unsubscribe(this.activeElementId,this.resizeCallback);
SM.resizePage(10,10);
};
_1af.reinstate=function(){
if(typeof SM.Viewport.getCallbackString(this.activeElementId)==="undefined"){
SM.resizePage(this.height,this.width);
if(this.resizeCallback){
SM.Viewport.subscribe(this.activeElementId,this.resizeCallback);
}
}
};
this.addApp(new SM.Apps.ModalSWFApp(_1af.appId,_1af),_1ae);
this.addApp(new SM.Apps.ModalSWFApp("membership",{activeElementId:"membership_swfo",swf:Consts.respath+"membership/membership.swf",height:"100%",width:"100%",bgcolor:"#ffffff",render:_1b0}));
this.addApp(new SM.Apps.ModalWebsiteApp("tp_website",{activeElementId:"tp_website_swfo",render:_1b4}));
this.addApp(new SM.Apps.ModalBlankApp());
this.addApp(new SM.Apps.PersistentApp("toolbar",{activeElementId:"flex_toolbar_swfo"}));
this.addApp(new SM.Apps.PersistentApp("sidebar",{activeElementId:"flex_sidebar_swfo"}));
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.Bridge=(function(){
var _1be=function(_1bf,_1c0,args,_1c2){
if(_1bf=="container"){
_1bf="page-wrapper";
}
var _1c3=SM.AppSwitch.getApps()[_1bf].activeElementId;
var el=document.getElementById(_1c3);
if(el&&typeof el[_1c0]==="function"){
var func=el[_1c0];
var _1c6=[];
for(var i=1;i<args.length;i++){
_1c6.push(args[i]);
}
return func.apply(el,_1c6);
}
return _1c2;
};
return {getAppProperty:function(_1c8,path){
return _1be(_1c8,"getPropertyJS",arguments,null);
},callAppProperty:function(_1ca,path){
return _1be(_1ca,"callPropertyJS",arguments,null);
},addRemoteListener:function(_1cc,path,_1ce){
return _1be(_1cc,"addRemoteListenerJS",arguments,false);
},handleRemoteEvent:function(_1cf,path,type){
return _1be(_1cf,"handleRemoteEventJS",arguments,false);
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.Toolbar=(function(){
var base=Consts.respath+"toolbar/";
var _1d3="flex_toolbar_swfo";
var _1d4={base:base,wmode:"transparent",bgcolor:"#E0E0E0"};
var _1d5=null;
var _1d6=function(){
if(!_1d5){
_1d5=document.getElementById(_1d3);
}
return _1d5;
};
var _1d7=false;
var _1d8=false;
var _1d9=false;
return {loadToolbar:function(){
var _1da={id:_1d3,name:_1d3,align:"left"};
swfobject.embedSWF(base+"Toolbar.swf",_1d3,"100%","100%","10.0.0",false,SM.Util.mergeHash({bridgeID:"toolbar"},Consts.toolbar.flashvars),_1d4,_1da);
SM.Util.doAWobble();
},onToolbarReady:function(){
_1d7=true;
if(_1d8){
_1d6().onContainerReady(_1d9);
}
},onContainerReady:function(){
_1d8=true;
if(_1d7){
_1d6().onContainerReady(false);
}
},onEditReady:function(){
_1d9=true;
if(_1d7){
_1d6().onEditReady();
}
},setBlockInput:function(_1db){
_1d6().setBlockInput(_1db);
},setContext:function(_1dc){
_1d6().setContext(_1dc);
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.Invite=(function(){
return {contactsToArray:function(_1dd){
var list,i;
list=[];
for(i=0;i<_1dd.length;i+=1){
if(_1dd[i].hasOwnProperty("email")){
list.push(_1dd[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 _1e3=encodeURIComponent(location.hostname);
var _1e4=["https://consent.live.com/Delegation.aspx?ru=",RU,"&ps=",ps,"&pl=",pl,"&appctx=",_1e3].join("");
this.liveWindow=SM.popup(_1e4,"live_contacts","\"status=0,toolbar=0,menubar=0,height=600,width=970,directories=0,top=100,left=100\"");
},liveHandler:function(_1e5){
var list=this.contactsToArray(_1e5);
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(_1e8){
document.getElementById(SM.AppSwitch.getApps()["membership"].activeElementId).onGMailToken(_1e8);
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(_1eb){
var list=contactsToArray(_1eb);
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 _1ed=null;
var _1ee=function(_1ef){
var _1f0=document.getElementById("fb-topbar");
if(_1f0){
_1f0.style.display=_1ef;
}
};
var hide=function(_1f2){
_1ed=_1f2||"page-wrapper";
if(!SM.Snippet.supported()||!SM.Snippet.canUseWmodeOpaque()){
SM.AppSwitch.setActiveApp("blank");
}
};
var show=function(){
var _1f4=_1ed;
if(!SM.Snippet.supported()||!SM.Snippet.canUseWmodeOpaque()){
SM.AppSwitch.setActiveApp(_1f4,{});
}
return false;
};
return {connect:function(_1f5){
var _1f6=_1f5||Consts.main.appId;
hide(_1f6);
FB.Connect.requireSession(function(){
try{
var _1f7=document.getElementById(SM.AppSwitch.getApps()[_1f6].activeElementId);
if(typeof _1f7!=="undefined"){
_1f7.FB_onConnect();
}
}
catch(e){
}
finally{
show();
}
});
$("#fb_dialog_cancel_button, #fb_popup_blocked_cancel, #fb_popup_blocked_connect").live("click",show);
},logout:function(_1f8){
var _1f9=_1f8||Consts.main.appId;
hide(_1f8);
FB.Connect.logout(function(){
try{
var _1fa=document.getElementById(SM.AppSwitch.getApps()[_1f9].activeElementId);
if(typeof _1fa!=="undefined"){
_1fa.FB_onLogout();
}
}
catch(e){
}
finally{
show();
}
});
},extendedPermissions:function(_1fb){
var _1fc=_1fb||Consts.main.appId;
hide(_1fb);
FB.Connect.showPermissionDialog("create_note",function(){
var _1fd=document.getElementById(SM.AppSwitch.getApps()[_1fc].activeElementId);
try{
if(typeof _1fd!=="undefined"){
_1fd.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 _1fe,_1ff,_200;
_1fe=false;
_1ff=document.createElement("div");
_1ff.id="FB_HiddenContainer";
_1ff.style.position="absolute";
_1ff.style.left="-10000px";
_1ff.style.top="-10000px";
_1ff.style.width="0px";
_1ff.style.height="0px";
window.document.body.insertBefore(_1ff,window.document.body.firstChild);
_200=document.createElement("script");
_200.src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php";
$(_200).load(function(){
_1fe=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(_200);
fbInterval=setInterval(function(){
if(!_1fe&&typeof FB_RequireFeatures!=="undefined"){
$(_200).load();
clearInterval(fbInterval);
}
},50);
}};
})();
if(typeof SM==="undefined"){
SM={};
}
SM.Twitter=(function(){
var _202=location.hostname.replace(/\./g,"_");
return {openTwitterAuth:function(){
this.twitterWindow=SM.popup("/cgi-bin/message.cgi?todo=twitter_start",_202,"\"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 _203,_204,_205;
SM.GA.loaded=false;
_203=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");
_204=document.createElement("script");
_204.src=_203+"google-analytics.com/ga.js";
$(_204).load(function(){
if(!Consts||!Consts.google_analytics_uacct){
throw "Could not find global Consts has with property google_analytics_uacct";
}
SM.GA.loaded=true;
pageTracker=_gat._getTracker(Consts.google_analytics_uacct);
pageTracker._initData();
pageTracker._trackPageview();
});
document.body.appendChild(_204);
gaContext=setTimeout(function(){
if(!SM.GA.loaded&&typeof _gat!="undefined"){
$(_204).load();
clearTimeout(gaContext);
}
},50);
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.ViewBase=(function(){
var _206,_207,_208;
_206=function(_209){
return (_209>0)?-1*_209:_209;
};
_207=function(tb){
var _20b,_20c,e,s;
_20b=tb;
if(_20b>0){
e=document.getElementById("page-wrapper");
s=document.getElementById("skip-links");
_20c=e.offsetTop;
if(_20c<Consts.topbarHeight){
s.style.height=Consts.topbarHeight+"px";
s.style.marginTop="0px";
}
}
};
_208=function(){
try{
document.getElementById("non-flash").style.display="none";
var _20f=document.getElementById("flash_content");
_20f.style.display="block";
_20f.zIndex=2;
if(Consts.main.halign==="center"){
_20f.style.left="50%";
_20f.style.marginLeft="-"+((_20f.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(_210,_211){
var _212,_213,_214,_215,_216;
_216=parseInt(_211);
_215=parseInt(_210);
_212=document.getElementById("flash_content");
_213=document.getElementById(this.usersSiteId());
_214=document.getElementById("content-wrapper");
if(_215&&typeof _215==="number"&&_210!=_213.clientHeight){
SM.pageHeight=_210;
_212.style.height=_210+"px";
_214.style.height=_210+"px";
_213.setAttribute("height",_210);
}
if(_216&&typeof _216==="number"&&_216!=_213.clientWidth){
SM.pageWidth=_211;
_212.style.width=_211+"px";
_214.style.width=_211+"px";
_213.setAttribute("width",_211);
}
var that=this;
setTimeout(function(){
that.valign();
SM.Viewport.dispatchInfo();
},0);
},valign:function(){
var a,top,_21a,cen,bot,_21d;
_21d=Consts.valign;
a=SM.Viewport.getVPHeight()-SM.Viewport.getContentHeight();
if(!(_21a=document.getElementById("skip-links"))){
return;
}
_21a.style.display="block";
top=_206(a);
cen=_206(a/2);
bot=0;
if(a>0){
_21a.style.height=a+"px";
if(Consts.valign==="centre"||Consts.valign==="center"){
_21a.style.marginTop=cen+"px";
}else{
if(Consts.valign==="top"){
_21a.style.marginTop=top+"px";
}else{
if(Consts.valign==="bottom"){
_21a.style.marginTop=bot+"px";
}
}
}
}else{
_21a.style.marginTop=top+"px";
_21a.style.height=0;
}
setTimeout(function(){
_207(Consts.topbar);
},0);
},init:function(_21e,_21f){
this.userAppName=_21e,this.userAppConfig=_21f;
return this;
}};
}());
if(typeof SM==="undefined"){
SM={};
}
SM.EditBase=(function(){
var _220,_221;
var _222=function(_223,_224,_225){
var _226,_227,_228,_229,_22a;
var _22a=parseInt(_224);
var _229=parseInt(_223);
var _226=document.getElementById("flash_content");
var _227=document.getElementById(_225.usersSiteId());
var _228=document.getElementById("content-wrapper");
var _22b=document.getElementById("website");
if(_229&&typeof _229=="number"){
SM.pageHeight=_223;
if(_229<=_22b.clientHeight){
_228.style.height="100%";
}else{
_228.style.height=_223+"px";
}
}
if(_22a&&typeof _22a=="number"){
SM.pageWidth=_224;
if(_22a<=_22b.clientWidth){
_228.style.width="100%";
}else{
_228.style.width=_224+"px";
}
}
};
return {usersSiteId:function(){
return this.userAppConfig.activeElementId;
},minDimensionCSSSupport:function(){
var _22c=document.createElement("div");
document.body.appendChild(_22c);
_22c.style.width="1%";
_22c.style.minWidth="200px";
var _22d=$("newDiv").width();
document.body.removeChild(_22c);
return (_22d==200);
},resizePage:function(_22e,_22f){
if(!this.minDimensionCSSSupport()){
_222(_22e,_22f,this);
}else{
var _230=parseInt(_22f);
var _231=parseInt(_22e);
var _232=document.getElementById(this.usersSiteId());
$(_232).css({minWidth:_230+"px",minHeight:_231+"px"});
}
},valign:function(){
return;
},init:function(_233,_234){
this.userAppName=_233;
this.userAppConfig=_234;
this.sideBarWidth=8;
this.topBarHeight=111;
$(document).ready(function(){
SM.Toolbar.loadToolbar();
});
return this;
},setToolbarState:function(_235,_236){
var _237;
switch(true){
case _235&&!_236:
_237="sideClosed";
this.sideBarWidth=8,this.topBarHeight=111;
break;
case _236&&!_235:
_237="topClosed";
this.sideBarWidth=200,this.topBarHeight=84;
break;
case !_235&&!_236:
_237="bothClosed";
this.sideBarWidth=8,this.topBarHeight=84;
break;
default:
_237="";
this.sideBarWidth=200,this.topBarHeight=111;
break;
}
document.getElementById("website").className=_237;
setTimeout("SM.Viewport.dispatchInfo()",1);
}};
}());

