if(self.scriptParsing) { scriptParsing("page"); }
var rnd=function(){return Math.round(Math.random()*999999)
};
function PoolEntity(b,m){this.win=window;
window.ilcsName="tmp";
this.available=function(){try{return !window.closed&&window.ilcsName&&window.document&&window.document.getElementsByTagName("body").length
}catch(c){return false
}};
if(!this.available()){DBG("ev: WARNING! current document not available")
}var F=this;
var l=function(G,H){if(!G){return false
}var c=false;
try{c=G.getIlcsObj(H)
}catch(I){}try{for(var w=0;
!c&&w<(G.frames||[]).length;
w++){c=l(G.frames[w],H)
}}catch(I){}return c
};
var g,f,A;
var t=this._setEntity=function(c,e){if(e){f[c]=e
}else{delete f[c]
}};
var h=function(c,e){t(c,e);
A(function(i){i._setEntity(c,e)
})
};
var n=this.getEntity=function(c){if(!c){for(var w in f){var H=n(w);
if(H){return H
}}return false
}var G=f[c];
if(!G){return false
}if(G.available&&G.available()){return G
}try{if(G.win){delete G.win.ilcsName
}}catch(H){}try{deleteCookie("ilcs_"+c)
}catch(H){}h(c);
if(F.entityLost){F.entityLost(c)
}return false
};
A=this.forEach=function(w){for(var c in f){var G=n(c);
if(G){w(G)
}}};
var q=this.getVal=function(c){return g[c]
};
var a=this.setVal=function(c,e){A(function(i){i._setVal(c,e)
})
};
this.chVal=function(e,i){var c=i(q(e));
a(e,c);
return c
};
this._setVal=function(c,e){g[c]=clone(e)
};
var s=l(top,b)||l(window.opener,b);
if(s){DBG("ev: pool with top/opener")
}var v=0;
var k=document.cookie.split("; ");
for(var x=0;
x<k.length;
x++){var C=k[x].split("=");
if(C[0].substr(0,5)!="ilcs_"){continue
}var u=parseInt(C[0].substr(5));
if(u>v){v=u
}if(s){continue
}var d=C[1].split(":");
var y=(d[0]&&d[0]!="*")?d[0]:C[0];
DBG("ev: cookie: "+k[x]+" -> "+y);
var o=false;
try{o=window.open("",y,"",false);
DBG("ev: -> "+(o?"found":"blocked"))
}catch(B){DBG("ev: -> except");
o=false
}if(o&&(s=l(o,b))){DBG("ev: pool from cookie "+k[x])
}else{if(!o||!l(o)){deleteCookie(C[0]);
if(o&&typeof(o)=="object"&&window!=o&&o.close){DBG("ev: reclosing");
try{o.close()
}catch(B){}}}}}var p=this.id=1+v;
var z="ilcs_"+p;
if(!s){DBG("ev: new pool");
s={udata:(m||{}),entities:{}}
}g=this.udata=clone(s.udata);
f=this.entities=clone(s.entities,true);
h(p,this);
window.ilcsName=b;
window.ilcsObj=this;
window.getIlcsObj=function(c){return(!c||this.ilcsName==c)?this.ilcsObj:false
};
try{top.name=z
}catch(B){}try{window.name=z
}catch(B){}var E=top.name||window.name||E;
if(E==z){E="*"
}DBG("ev: window.name: "+window.name+"");
this.cookie=function(c){c=E+(c?":"+c:"");
document.cookie=z+"="+c+"; path=/"
};
this.cookie();
var j=function(){};
var D=this.destroy=function(){DBG("ev: destroy");
if(F.onunload){F.onunload()
}F.stateChanged=j;
window.ilcsName=window.ilcsObj=false;
F.available=function(){return false
};
n(p)
};
window.addCallback("onunload",D)
}function getXmlHttp(){if(window.ActiveXObject){try{return new ActiveXObject("Msxml2.XMLHTTP")
}catch(a){}try{return new ActiveXObject("Microsoft.XMLHTTP")
}catch(a){}}if(typeof XMLHttpRequest!="undefined"){return new XMLHttpRequest()
}throw"Unable to obtain XmlHttp object"
}window.errorReload=function(f){if(window.errorReloading){DBG("ev: already reloading");
return
}window.errorReloading=true;
DBG("ev: reloading:",f);
var a=[],d=window.location.href.split("#");
var b=d[0].split("?");
if(b[1]){var g=b[1].split("&");
for(var c=0;
c<g.length;
c++){var e=g[c].split("=")[0];
if(e!="msg"&&e!="rnd"){a.push(g[c])
}}}if(f){a.push("msg="+encodeURIComponent(f))
}a.push("rnd="+rnd());
b=b[0]+"?"+a.join("&");
if(d[1]){b+="#"+d[1]
}window.location.href=b;
window.location.href=b
};
function EventConnection(g){var H=this;
var A=String.fromCharCode(1);
var J=String.fromCharCode(2);
var u=this.sep=String.fromCharCode(3);
var b=String.fromCharCode(4);
var a=String.fromCharCode(5);
this.stateChanged=function(L){DBG("ev: stateChanged: "+L);
var K;
if(L>=1&&(K=fetchProp(H,"modal"))){K.cancel()
}else{if(!L&!H.modal&&window.Modal){H.modal=new Modal({title:"Geen verbinding met de site",aboveWait:true,content:'Op dit moment kan er geen verbinding worden gemaakt met Paiq.<br /><br />Dit kan verschillende oorzaken hebben:<br /><ul><li>Paiq is down</li><li>Je internetverbinding is weggevallen</li><li>Er is een andere -misschien tijdelijke- fout opgetreden (<a href="javascript: refresh();">opnieuw proberen</a>)</li></ul>Dit bericht verdwijnt vanzelf wanneer de verbinding is hersteld ...</div>',finish:function(){var P=parseInt(this.root.style.left),O=parseInt(this.root.style.top),N=this.root.offsetWidth,M=this.root.offsetHeight;
this.degradeBox=document.createElement("div");
this.degradeBox.setAttribute("style","position: absolute; left: "+(P+9)+"px; top: "+(O+9)+"px; width: "+(N-18)+"px; height: "+(M-18)+"px; background: #c8c8c8; border: solid 3px #ffffff; z-index: 14900;");
document.body.appendChild(this.degradeBox);
return this.sup("finish")
},unfinish:function(){document.body.removeChild(this.degradeBox)
}}).schedule()
}}};
var f=[];
var n={};
var E={0:errorReload,1:true};
var y=99;
var x=function(N,K,M,O){DBG("ev: sending for entity "+(M||H.id)+": "+N);
if(f){f.push(arguments);
DBG("ev: delayed: still loading..");
return
}var L=H.chVal("reqSeqNr",function(P){return parseInt(P||0)+1
});
H.chVal("reqArr",function(P){P.push([L,""+(M||H.id)+J+N]);
return P
});
if(O){H.setVal("signing",true)
}if(!K||K<=0){q(true,K<0)
}};
function p(){DBG("ev: cancel");
var L={};
if(arguments.length>0){for(var K=0;
K<arguments.length;
K++){L[K]=this[arguments[K]]
}}else{L=this
}var M=[];
for(var K in L){if(!E[L[K]]){continue
}delete E[L[K]];
M.push(L[K])
}x("C"+M.join(J),1)
}var I=false;
this.send=function(){var O=arguments.length>1?arguments:arguments[0].split(u);
var L="",Q=O[0].split("|");
if(Q.length>1){L=J+Q[0];
Q=Q[1]
}else{Q=Q[0]
}var K={cancel:p};
var S=[];
for(var P=1;
P<O.length;
P++){var N,M=O[P];
if((typeof M!="object"||M===null||(typeof M[0]!="function"&&typeof M[1]!="function"))&&typeof(N=toJson(M))=="string"){S.push("j"+N)
}else{E[y+=1]=M;
S.push("c"+y);
K[P]=y
}}x((I?"I":"M")+"paiq.nl|"+Q+u+S.join(u)+L,0,undefined,I);
I=false;
return K
};
this.signed=function(){I=true;
return this.send.apply(this,arguments)
};
this.resp=function(P){DBG("ev: resp:",P);
var K=parseInt(P.shift());
var L=P.shift();
var O,N=E[K];
if(!N){return
}for(var M=0;
M<P.length&&this.available&&this.available();
M++){var S=P[M].split(b);
if(S[0].charAt(0)==a){S[0]=S[0].substring(1);
if(S[S.length-1]===""){S.pop()
}S=xEval("["+S.join(",")+"]")
}try{O=callback(N,S)===true||O
}catch(Q){DBG("ev: caught response handling exception");
Q.detectMethod="evCb";
if(window.errReport){errReport(Q)
}else{setTimeout(function(){throw Q
},0)
}}}L=parseInt(n[K])+(L=="+"?1:(L=="-"?-1:parseInt(L)));
if(O&&L>=0){x("C"+K,1);
L=0
}if(L<0){delete E[K];
delete n[K]
}else{n[K]=L
}};
var G,m,i,C,B,w,D,v;
var o=false,q;
var c=function(){q()
};
var q=this.triggerMaster=function(K,M){if(o){clearTimeout(o)
}o=setTimeout(c,750);
var L=H.getVal("master");
if(L){L=H.getEntity(L)
}if(!L){DBG("ev: becoming master");
H.setVal("master",H.id);
L=H;
K=true;
G=true
}if(K){L.reconnectSoon(M)
}};
var F=function(){DBG("ev: stopMaster");
if(m){m.onreadystatechange=function(){};
m.abort()
}if(B){clearTimeout(B)
}if(w){clearTimeout(w)
}if(D){clearTimeout(D)
}G=m=B=w=D=0
};
this.entityLost=function(K){DBG("ev: entityLost "+K);
x("D",0,K);
if(K!=this.getVal("master")){return
}if(K==this.id){F()
}var L=this.getEntity();
if(L){L.triggerMaster()
}else{if(H.getVal("reqArr").length){G="unload";
C()
}}};
var l=function(L){var K=v;
v=L;
if(L==K||(L==1&&K>1)){return
}H.forEach(function(M){M.stateChanged(L)
})
};
var t=function(){w=0;
C()
};
var e=function(){l(0);
D=0;
C()
};
var d=function(){};
var s=0;
var k=function(S){DBG("ev: RESPONSE:",S);
if(D){clearTimeout(D);
D=0
}if(w){clearTimeout(w);
w=0
}var Q=(S||"").split(A);
var N=Q.shift().split(J);
var O=parseInt(N[1]);
var K=H.getVal("bid");
if(N[0]!="ilcs"){if(N[0].match(/running-in-maintenance-mode/)){return errorReload("maintenance")
}DBG("ev: invalid identifier (or no bid): "+N[0]);
if(s++){l(0)
}if(B){clearTimeout(B)
}B=setTimeout(C,3000);
return
}else{if(!O||(K&&K!=O)){DBG("ev: resync");
H.destroy();
H.forEach(function(W){if(H!=W){W.destroy();
W.win.errorReload("resync")
}});
H.destroy();
errorReload("resync");
return
}else{l(K?(K==O?1:3):2)
}}s=0;
H.cookie(O);
H.setVal("bid",O);
H.setVal("sec",N[2]);
var U=parseInt(N[3]);
H.chVal("reqArr",function(W){while(W.length&&U>=W[0][0]){W.shift()
}return W
});
if(!H.getVal("reqArr").length){H.setVal("signing",false)
}var T=3;
var V=T;
var M;
for(var P=0;
P<Q.length;
P++){r=Q[P].split(J);
if(!r[1]){continue
}M=r.shift();
var L=H.getEntity(parseInt(r.shift()));
if(L){L.resp(r)
}}DBG("ev: finished response proc");
if(M){H.setVal("lastResp",M)
}if(N[4]=="D"){DBG("ev: disconnect");
H.setVal("reqSeqNr",0);
H.setVal("bid",0);
H.setVal("sec",0);
H.setVal("lastResp",0);
if(H.getVal("reqArr").length){C()
}}else{C()
}};
var z=0;
var h=function(L){if(!m||L!=z||m.readyState!=4){return
}m.onreadystatechange=d;
var K=m.responseText;
m=0;
k(K)
};
C=function(){DBG("ev: reconnect");
if(B){clearTimeout(B);
B=0
}if(!G){DBG("ev: !isMaster");
return
}if(m){if(!i||(w&&i<2)){return DBG("ev: not aborting xhr")
}DBG("ev: aborting xhr");
m.onreadystatechange=function(){};
m.abort()
}i=0;
if(w){clearTimeout(w)
}w=setTimeout(t,500);
if(D){clearTimeout(D)
}D=setTimeout(e,35000);
var K="ilcb"+J+0+J+H.getVal("bid")+J+H.getVal("sec")+J+H.getVal("lastResp")+J+J+32+A;
var O=H.getVal("reqArr");
for(var M=0;
M<O.length;
M++){K+=""+O[M][0]+J+O[M][1]+A
}z+=1;
var S=z;
DBG("ev: REQUEST "+S+":",K);
var P=H.getVal("signing");
var L=g+(P?"Get":"")+"?r="+rnd();
try{m=getXmlHttp();
if(!m){throw 1
}m.open("POST",L,"sync"!=G);
if("sync"!=G){if(m.readyState==0){throw 2
}m.onreadystatechange=function(){h(S)
}
}m.send(K)
}catch(N){var Q=encodeURIComponent;
Q="_noxmlhttp?exception="+Q(N.toString())+"&url="+Q(g)+"&location="+Q(document.location.href);
document.location.href=Q
}};
this.start=function(){var K=f;
f=false;
for(var L=0;
L<K.length;
L++){x.apply(null,K[L])
}};
this.reconnectSoon=function(K){if(!i){i=1
}if(K){i=2;
C()
}else{if(!B){B=setTimeout(C,10)
}}};
var j={reqArr:[],reqSeqNr:0,bid:0,sec:0,lastResp:0};
PoolEntity.call(this,window.location.host+g,j)
}window.credits=0;
(function(){var j={basics:["emptyHtml"],attrs:{"class":"empty"}};
j.init=function(){this.list={}
};
j.ihtml=function(){return new InlineWidget(this.emptyHtml||"").render()
};
j.finish=function(){if(this.queue){for(var q=0;
q<this.queue.length;
q++){this.set.apply(this,this.queue[q])
}}this.queue=undefined
};
var b=function(s,t){var u=s.firstChild.nextSibling;
while(u&&t.order>u._listOrder){u=u.nextSibling
}if(t.element){if(u){s.insertBefore(t.element,u)
}else{s.appendChild(t.element)
}}else{var q=new InlineWidget(t.content).insert(s,u);
t.element=q.root;
delete t.content
}t.element._listOrder=t.order
};
var g=function(){var s=this.root.firstChild.style;
for(var q in this.list){if(this.list[q].length){this.root.delClass("empty");
s.display="none";
return
}}this.root.addClass("empty");
s.display="inline"
};
var f=function(u,t){var q=this.list[u];
if(!q){return
}for(var s=0;
s<q.length;
s++){if(q[s]===t){q.splice(s,1);
if(s){if(t.element){t.element.destruct()
}}else{t.element.remove();
if(q.length){b(this.root,q[0])
}}}}g.call(this)
};
j.set=function(w,x,t,y,z){if(!this.root){if(!this.queue){this.queue=[]
}this.queue.push(arguments);
return
}var A,q=this.list[w]=this.list[w]||[],v=0;
while(v<q.length&&z<q[v].priority){if(!q[v].timeout){return
}v++
}if(x){A={priority:z||0,order:t||0,content:(typeof x=="object")?x.render():x,timeout:!!y}
}if(y&&A){setCallbackTimeout([this,f,w,A],y)
}if(!v&&q[0]){q[0].element.parentNode.removeChild(q[0].element)
}var s=y?0:q.length-v;
for(var u=v;
u<v+s;
u++){if(q[u].element){$(q[u].element).destruct()
}}if(A){q.splice(v,s,A);
if(!v){b(this.root,A)
}}else{q.splice(v,s);
if(!q.length){delete this.list[w]
}}g.call(this)
};
var m=window.DynamicList=makeWidget(j);
var a=window.notifyEventList=new m({attrs:{"class":"notifyList notifyEventList"},emptyHtml:'<div style="font-style: italic; text-align: center;">geen meldingen</div>'});
var n=window.notifyStatusList=new m({attrs:{"class":"notifyList notifyStatusList"}});
window.notifyBlink=function(){};
var o=window.notify=function(s,w,t,x,q,v){var u=((q||0)<100);
if(w){if(typeof w=="object"){w=w.render()
}if(u){if(!v&&v!==false){v=R+(dd.png?"1/i/notify_info.png":"1/i/_eu.png")
}v=v?'<div style="float: left; padding-right: 2px; text-align: center;"><img src="'+v+'" style="display: inline;" /></div>':"";
w='<div style="margin: 0.25em 0 0.25em 0; clear: left;">'+v+"<div>"+w+"</div></div>"
}else{v=v?'<img src="'+v+'" style="margin-top: -4px;"/>':"";
w='<div style="margin: 0.25em 0 0.25em 0; clear: left;">'+w+" "+v+"</div>"
}}(u?a:n).set(s,w,q,t,x);
(u?n:a).set(s,false)
};
var e=window.notificationHandlers=watchExtensions.newWithProto();
var i=function(){var v="?";
var q=this.nextMatchValue;
if(parseInt(q)||q=="0"){var w=Math.round((this.nextMatchTimeStamp+q)-new Date().getTime()/1000);
if(w<1){w=0;
v="zodadelijk!"
}else{var u=Math.floor(w/60/60/24);
var t=Math.floor((w-u*(24*60*60))/60/60);
var s=Math.floor((w-u*(24*60*60)-t*(60*60))/60);
v="binnen ";
if(u>0){v+=u+"d "
}if(t>0){v+=t+"u "
}if(s>0&&!u){v+=s+"m "
}if(!t&&!u){v+=(Math.floor(w%60))+"s "
}}this.setVar("nextMatchSeconds",w)
}else{if(q=="off"){v="uitgeschakeld"
}else{if(q=="noCandidates"){v="geen candidaten"
}else{if(q=="questions"){v=false
}else{if(q=="calculating"){v="onbekend"
}else{if(q=="tooYoung"){v="niet toegestaan"
}}}}}}this.setVar("nextMatchText",v)
};
e.addWatch("nextMatchValue",function(){this.nextMatchTimeStamp=new Date().getTime()/1000;
if(this.nextMatchTimeout){clearTimeout(this.nextMatchTimeout)
}i.call(this)
});
e.addWatch("nextMatchText",function(){o("nextMatch",this.nextMatchText?new Link("matching",[showModal,"NextMatch"],"Klik hier om <i>direct</i> een nieuwe match te laten berekenen!").render()+": "+this.nextMatchText:false,false,20,105)
});
var k=function(){window.credits=this.credits;
if(this.userConfirmed){var q=new Link("credits",[showModal,"BuyCredits"],"Credits zijn in te zetten voor het gebruik van allerlei extra functionaliteit op de site. Klik om credits bij te kopen.").render()+": "+this.credits;
o("credits",q,false,20,120)
}else{o("credits",false)
}};
e.addWatch("credits",k);
e.addWatch("userConfirmed",function(){k.call(this)
});
e.msg=function(q,s,t){o(s||"msg",q,t||5000,90,0)
};
e.addWatch("promos","*",function(q,s){var t=new Link("Wake-up Light",showSweepstake).render()+": "+this.promos[s]+" lot"+((this.promos[s])==1?"":"en")+"";
o("promo_"+s,t,0,190,99,R+"1/i/bulb_small.gif")
});
e.addWatch("contacts","*",function(s,v){var y=this.contacts[v];
var q=false,w=false;
if(y&&y.name){var x=new Link(escapeHtml(y.name),window.toChat?[toChat,v,"focus"]:[x,"chat"]);
if(y.autoDel!=undefined&&y.autoDel!==false){q=x.render()+(y.autoDel?": nog "+y.autoDel+" dag"+((y.autoDel)==1?"":"en")+"":": vervalt vandaag");
w=R+(dd.png?"1/i/notify_remove.png":"1/i/_lq.png")
}else{if(y.msgs){if(this.initialized){var u=parseInt(new Date().getTime()/1000);
if((!y.lastSound||y.lastSound<u-30)&&y.msgs!=y._msgs){playSound("message")
}y.lastSound=u
}q=x.render()+": "+y.msgs+" bericht"+((y.msgs)==1?"":"en")+"";
w=R+(dd.png?"1/i/notify_msg.png":"1/i/_ev.png")
}else{if(y.qa){q=x.render()+": 1 q&a";
w=R+"1/i/question-mark.gif"
}else{if(y.ib){q=x.render()+": 1 antwoord";
w=R+(dd.png?"1/i/notify_ib.png":"1/i/_ew.png")
}}}}}if(y){y._msgs=y.msgs
}o("user_"+v,q,0,5,5,w)
});
e.addWatch("contacts","*","online",function(s,u){var v=this.contacts[u];
if(!v||v.online===undefined||!v.name||!this.initialized){return
}var t=v.photoUrl?'<img src="'+escapeHtmlString(v.photoUrl)+'" style="border: 2px solid white; float: right;" width="50" height="50" alt="" />':"";
var q=v.online?"<strong>"+escapeHtml(v.name)+"</strong> online":"<strong>"+escapeHtml(v.name)+"</strong> offline";
o("user_"+u,t+q+"<br style='clear: both;' />",5000,15,20,v.online?R+(dd.png?"1/i/notify_online.png":"1/i/_ex.png"):R+(dd.png?"1/i/notify_offline.png":"1/i/_ey.png"));
if(v.online){playSound("online")
}});
e.addWatch("contacts",function(){var u=0,q=0,t=0,v=0,x=0;
for(var s in this.contacts){var w=this.contacts[s];
if(!w.name){continue
}u+=w.msgs||0;
q+=(w.online?1:0);
t+=1;
if(w.feedback){v++;
if(!x){x=s
}}}this.setVarList({totalNewMsgs:u,totalContacts:t,onlineContacts:q,feedback:{count:v,id:x}})
});
e.addWatch("feedback",function(){var q=this.feedback;
var s=q.count>0?new Link("te beoordelen",window.toChat?[toChat,q.id,"focus"]:null).render()+": "+q.count:false;
o("feedback",s,0,20,60,R+(dd.png?"1/i/notify_feedback.png":"1/i/_ez.png"))
});
var h=function(){o("userCount",""+this.totalUserCount+" paiqer"+((this.totalUserCount)==1?"":"s")+", "+this.onlineUserCount+" online",false,0,180)
};
e.addWatch("onlineUserCount",h);
e.addWatch("totalUserCount",h);
var d=function(){o("onlineContacts",""+this.totalContacts+" contact"+((this.totalContacts)==1?"":"en")+", "+this.onlineContacts+" online",false,0,170)
};
e.addWatch("totalContacts",d);
e.addWatch("onlineContacts",d);
var c=function(){var q=document.body;
if(this.confettiPos===undefined){q.style.backgroundImage=window.fiveYears?"url("+R+"1/i/confetti_orange.gif)":"url("+R+"1/i/confetti.gif)";
q.style.backgroundRepeat="repeat-x";
this.confettiPos=-7*16
}else{if(window.isHappyHour||window.fiveYears){if(this.confettiPos>=-20){return
}this.confettiPos+=7
}else{if(this.confettiPos<=-110){return
}this.confettiPos-=7
}}q.style.backgroundPosition="0px "+this.confettiPos+"px";
setCallbackTimeout([this,c],50)
};
var p=function(s){DynText.setValue("smsPrice",s?8:16);
DynText.setValue("onelinerPrice",s?5:10);
DynText.setValue("speedDatePrice",s?0:3);
DynText.setValue("battleDatePrice",s?0:5);
var q=window.isHappyHour;
window.isHappyHour=s;
if(q!==window.isHappyHour){c.call(window.templ)
}};
window.isHappyHour=false;
p.call(e,false);
e.paiqSpecial=function(v){p.call(this,v=="happy");
var y=0;
var x=false;
if(v=="happy"){var u=new HelpIcon("Elke maandagavond van <b>21 tot 22 uur</b> is het <em>HaPPy HouR</em> op Paiq!<br /><br />Dit houdt in:<br /><ul><li>dat die ene hele leuke match misschien wel <b>online</b> is</li><li>smsjes versturen voor <b>de helft van de prijs</b>! (dus 8 credits)</li><li>OneLiners versturen voor <b>de helft van de prijs</b>! (dus 5 credits)</li><li><b>credits verdienen</b> door te chatten met je matches (te herkennen aan de "+(new PropBox("green","M").render())+" naast de naam)</li></ul>");
x=new InlineWidget("<div style='font-family: verdana; color: red; font-weight: bold; font-style: normal; font-size: 150%;'>HaPPy HouR!&nbsp;"+u.render()+"</div>")
}else{if(v=="tjetter"){x="<div style='color: gray; margin: 20px 0 0 0;'>Wellicht ook eens leuk? <b>Compléét willekeurig chatten</b> op: <a target='_blank' href='http://www.tjetter.nl' style='color: #3e56e7'>tjetter.nl</a>!</div>"
}else{if(v=="thanks"){var q=arguments[1],t=arguments[2],s=arguments[3];
var u=new HelpIcon({topts:{sticky:true,"static":true},tooltip:new InlineWidget("Onlangs is er iemand actief lid geworden van Paiq via een verwijzing naar onze site door "+s+". We tonen daarom als dank een linkje terug.<br /><br />Ook backlinks naar <i>jouw</i> site? "+(new Link("Kijk hier.",[false,showModal,"BacklinkSettings"]).render())+"")});
var w=new Link(escapeHtml(s),function(){ev.send("Backlink.linkClicked",q);
window.open(t)
});
x='<div style="font-weight: bold; color: #596eea; margin: 20px 0 0 0;">Paiq bedankt '+w.render()+"!"+u.render()+"</div>";
y=20
}else{if(Math.random()>0.5){x="<div style='color: gray; margin: 20px 0 0 0;'>Meer lezen over paiq? Bekijk <a href='http://blog.paiq.nl' style='color: #3e56e7' target='new'>ons blog!</a></div>"
}else{x="<div style='color: gray; margin: 20px 0 0 0;'>Probeer ook de "+(new Link("Hyves gadget",[unsafeModal,{name:"InstallHyvesGadget",deps:R+"2/j/installHyvesGadget.js",now:true},[]]).render())+"!</div>"
}}}}o("special",x,false,y,999)
};
var l=function(){var q="Paiq: intelligente dating-site voor leuke singles";
if(this.totalNewMsgs>0){q=""+this.totalNewMsgs+" NIEUW"+((this.totalNewMsgs)==1?"":"E")+" BERICHT"+((this.totalNewMsgs)==1?"":"EN")+" » "+q
}if(this.modalTitle){q=this.modalTitle+" » "+q
}if(this.subModalTitle){q=this.subModalTitle+" » "+q
}document.title=q
};
e.addWatch("totalNewMsgs",l);
e.addWatch("modalTitle",l);
e.addWatch("subModalTitle",l);
e.addWatch("anchorName",function(){var q="#"+(this.anchorName||"_");
if(document.location.href.slice(-q.length)!=q){document.location.href=q
}});
e.addWatch("iwn",function(){o("iwn",new Link("notifier",[showModal,"NotifierDownload"],"De Instant Web Notifier is een kleine applicatie waarmee je direct op de hoogte wordt gesteld van berichten en contacten die online komen, ook wanneer je niet bent ingelogd op de site.").render()+": "+(this.iwn?"actief!":"<em>niet</em> actief"),false,20,130)
});
e.photoClick=function(q,s){o("photoClick","Foto "+q+" keer positief beoordeeld!",5000,20,95,s)
}
})();
(function(){var a={name:"hiddenflash",url:"/multimedia.swf",flash:true};
if(dd.saf){window.addCallback("onSemiLoad",[loadCall,a,false])
}var b=function(d,c){if(!flashAvailable(6)){return
}if(!isLoaded(a)){loadCall(a,b,arguments);
return
}callFlash(gId("hiddenflash"),d,c)
};
window.playSound=function(d,c){switch(d){case"online":if(!(window.userFlags&16)){return
}d=R+"1/online.mp3";
break;
case"sd":if(!(window.userFlags&32)){return
}d=R+"1/sd.mp3";
break;
case"message":if(!(window.userFlags&64)){return
}d=R+"1/message.mp3";
break
}b(c?"streamAudio":"playAudio",d)
};
window.stopSounds=function(){b("stopAllAudio")
}
})();
function notifyAd(b,a){}function notMatchable(c,b){if(!c){return
}if(c=="autoMatching"){c="Matchen";
b="door de kunstmatige intelligentie gematcht te worden"
}var e=notificationHandlers&&((notificationHandlers.userConfirmed&&!notificationHandlers.userMatchable)||(!notificationHandlers.userConfirmed&&notificationHandlers.age<16));
var a,d=c+": "+(e?"niet mogelijk..":"alleen voor geregistreerde leden..");
if(e){a=new Modal({title:d,content:"Helaas: je moet minimaal <b>16 jaar</b> oud zijn om van Paiq gebruik te mogen maken"})
}else{a=new Modal({title:d,options:["Annuleren",false,"Inschrijven",function(){a.cancel();
showModal("Signup")
}]});
a.content=new InlineWidget("<br /><b>Registreer je nu gratis op "+("Paiq")+" om "+b+".</b><br /><br />Na registratie kun je:<ul><li><p>SpeedDaten & BattleDaten</p></li><li><p>Gematcht worden</p></li><li><p>OneLiners versturen & ontvangen</p></li><li><p>Je foto's laten beoordelen</p></li><li><p>.. en meer!</p></li></ul>Inschrijven kost je slechts enkele minuten!")
}a.show()
}function showMatchingResult(a,c,d){var b=new (getWidgetLoader(R+"14/j/matching.js","MatchingResult"))(c);
new Modal({modalId:a,title:"Nieuwe match!",preferredWidth:560,content:b.render(),onCancel:function(){this.close();
if(d){incrLoading();
ev.send("Match.wakeUp",d,decrLoading)
}}}).schedule()
}function showNeedToMeetRequest(a){incrLoading();
loadCall(R+"10/j/needToMeet.js",function(){new NeedToMeetRequestModal(a).schedule();
decrLoading()
})
}function showMatchingTurnedOff(a,c,d){var b=function(){var e=new MatchingTurnedOff(c,d);
new Modal({modalId:a,title:"Automatisch matchen staat uit",options:"Ja, matching aanzetten|ev.send('MatchServer.toggleAuto',true);|Nee|ev.send('MatchServer.enableRefused');",content:e.render()}).schedule()
};
loadCall(R+"14/j/matching.js",b)
}function showSweepstake(a){loadCall(R+"44/j/sweepstake.js",function(){new SweepstakeModal({modalId:a}).schedule()
})
}function modalDialog(d,c,b,a){new Modal({modalId:d,title:c,content:b,options:a}).schedule()
}function fancyModalDialog(d,c,b,a){modalDialog(d,c,fancyText(b),a)
}(function(){var a={textTop:15,right:25,textRight:5,borderLeft:25,top:181,borderRight:25,bottom:17,color:"#f07e22",textLeft:5,cor:R+(dd.png?"2/i/_r.png":"2/i/_s.png"),inherit:AbstractMenu,left:25,ver:R+(dd.png?"1/i/_t.png":"1/i/_u.png")};
a.menuOptions=[[["Acties"],["match maken",[showModal,"NextMatch"],R+(dd.png?"1/i/menu_match_icon.png":"1/i/_e9.png"),"Wanneer krijg ik weer een nieuwe match? En wat als ik even geen matches meer erbij wil, of juist <i>nu</i> een match wil?",R+(dd.png?"1/i/scr_match.png":"1/i/_ea.png"),"m","nextMatch"],["SpeedDate zoeken",[loadCall,R+"19/j/speedDate.js",function(){window.sd.request(false)
}],R+(dd.png?"1/i/menu_sd_icon.png":"1/i/_eb.png"),function(){return"Vind direct iemand om mee te chatten! Een SpeedDate is een 5 minuten durende chat met iemand die nu online is. Na die tijd krijgen jullie beide de keuze om door te praten voor nog eens 10 minuten, en uiteindelijk ook om Paiq-contacten te worden."
},R+(dd.png?"1/i/scr_speeddate.png":"1/i/_ec.png"),"s","sd"],["BattleDate zoeken",[loadCall,R+"19/j/speedDate.js",function(){window.sd.request(true)
}],false,function(){return"Laat twee mensen vechten om jou! Een soort SpeedDate, maar dan anders: twee kandidaten 'vechten' in een 2-op-1 gesprek al chattend om de gunst van een derde persoon (jij!). Na afloop van de chat kan jij als initiatiefnemer kiezen met wie van de twee je verder wilt chatten. Het gesprek gaat dan over in een SpeedDate."
},R+(dd.png?"1/i/scr_battledate.png":"1/i/_ed.png"),"b","bd"],["foto's beoordelen..",[showModal,"PhotoQuestionDialog"],false,"Kies telkens uit twee foto's de foto die <b>jou</b> het meeste aanspreekt. De kunstmatige intelligentie leert hiervan te matchen aan mensen wiens uiterlijk je aanspreekt. Ook kun je, als je op slag verliefd wordt op één van de fotootjes, een OneLiner (kort berichtje) naar hem/haar sturen.",R+(dd.png?"1/i/scr_photorate.png":"1/i/_ee.png"),"o","photoQuestions"]],[["Profiel"],["foto's",[showModal,"Photos"],R+(dd.png?"1/i/menu_photos_icon.png":"1/i/_ef.png"),"Bekijk je foto's, plaats nieuwe, of verwijder oude.",R+(dd.png?"1/i/scr_photos.png":"1/i/_eg.png"),"f","photos"],["matching-vragen",[showModal,"QuestionGroups"],R+(dd.png?"1/i/menu_questions_icon.png":"1/i/_eh.png"),"Geef Paiq een duidelijker beeld van wie jij bent door meer vragen te beantwoorden (of door je eerdere antwoorden te herzien). Hoe vollediger en eerlijker de antwoorden, hoe beter je gematcht kan worden. Je antwoorden zijn niet zichtbaar voor anderen.",R+(dd.png?"1/i/scr_questions.png":"1/i/_ei.png"),"q","questions"],["do's &amp; don'ts",[showModal,"Tagging"],false,"Hou je enorm van sushi? Ben je een fan van coldplay? Is zeilen volledig jouw ding en kunnen toeristen je gestolen worden? Met do's &amp; don'ts laat je weten wat jij leuk, gaaf en hot vindt, en wat juist niet. Bij het matchen wordt hier rekening mee gehouden, zodat je een grotere kans hebt de enige  te ontmoeten die niets liever doet dan met jou naar een Coldplay-concert gaan om daarna lekker samen sushi te eten. Of met wie je op de Friese meren gezamenlijk kunt mopperen over al die zoetwater-toeristen.",R+(dd.png?"1/i/scr_tagging.png":"1/i/_ej.png"),"d","tagging"],["openingsvraag",[loadCall,R+"12/j/qa.js",[window,"showInitialQa",true]],false,"Klik hier om een openingsvraag te verzinnen. Deze vraag wordt automatisch voorgelegd aan elke nieuwe match, zodat je snel met diegene in een leuk gesprek verzeild kan raken!",false,false,"initialQa"]],[["Account"],["vrienden uitnodigen",[showModal,"InviteFriends"],R+(dd.png?"1/i/menu_invite_icon.png":"1/i/_ek.png"),"Heb je single vrienden? Vertel ze over Paiq! Zo help je de site met groeien, en verdien je ook nog eens credits. Wanneer je een uitnodiging stuurt naar iemand die al lid is, kun je elkaar toevoegen als Paiq-contacten.",R+(dd.png?"1/i/scr_invites.png":"1/i/_el.png"),"u","inviteFriends"],["credits kopen",[showModal,"BuyCredits"],R+(dd.png?"1/i/menu_credits_icon.png":"1/i/_em.png"),"Credits tekort? Vul ze hier aan (betaling via iDeal, creditcard of telefonisch). Je ondersteunt hiermee tevens de ontwikkeling van de site!",R+(dd.png?"1/i/scr_credits.png":"1/i/_en.png"),"c","credits"],["vroegere contacten",[showModal,"FormerContacts"],false,"Hier vind je een overzichtje van verwijderde/geblokkeerde Paiq-contacten. Afhankelijk van de manier waarop iemand uit je lijstje verdwenen is, kan je hem/haar direct weer terugplaatsen, of een rematch-OneLiner sturen.",R+(dd.png?"1/i/scr_previous_contacts.png":"1/i/_eo.png"),"r","formerContacts"],["instellingen",[showModal,"SettingsDialog"],false,"Is je chat-naam niet goed? Geluidjes irritant? Teveel emailtjes? Deze, en vele andere dingen, kun je hier instellen. Ook als je je wilt uitschrijven van Paiq moet je hier zijn.",R+(dd.png?"1/i/scr_settings.png":"1/i/_ep.png"),"t","settings"],["uitloggen",[link,"logout"],false,"Uitgepaiqt? Kies dan deze optie. Als je volgende keer niet opnieuw wilt hoeven inloggen, kan je ook gewoon je browser sluiten, of naar een andere pagina navigeren om <i>offline</i> te gaan.",false,"x","logout"]],[["Info"],["help!?",[showModal,"Help"],R+(dd.png?"1/i/menu_help_icon.png":"1/i/_eq.png"),"Even de weg kwijt? Hier vind je een uitgebreide uitleg over allerlei zaken die met Paiq te maken hebben. Grote kans dat je antwoord vindt op je vraag!",R+(dd.png?"1/i/scr_help.png":"1/i/_er.png"),"h","help"],["datingtips",[showModal,"TipsDialog"],false,"Online dating via Paiq is de ideale manier om contact te leggen met een toekomstige partner. Maar wees wel voorzichtig, je kunt mensen tegenkomen die zich anders voordoen dan ze zijn. We geven een paar tips over hoe je veilig kunt daten.",R+(dd.png?"1/i/scr_tips.png":"1/i/_es.png"),null,"tips"],["blog",[openWindow,"http://blog.paiq.nl"],false,"Neem een kijkje achter de schermen bij Paiq!",R+(dd.png?"1/i/scr_blog.png":"1/i/_83.png"),null,"blog"],["vacatures",[showModal,"Jobs"],false,"Paiq zoekt parttimers, afstudeerders en stagiairs voor diverse opdrachten. Op deze pagina vind je een overzichtje van het aanbod, maar ook andere ideeën zijn meer dan welkom!",R+(dd.png?"1/i/scr_jobs.png":"1/i/_84.png"),null,"jobs"],["contact",[showModal,"Contact"],false,"Klik hier indien je iets te bespreken hebt met de beheerders/makers van deze site.",R+(dd.png?"1/i/scr_help.png":"1/i/_er.png"),null,"contact"]]];
a.attrs={"class":"action-menu"};
a.columnWidth=175;
a.documentCoverOpacity=0.55;
document.addCallback("onkeydown",function(c){c=c||window.event||{};
var b=getKeyCode(c);
if(b==27&&!window.menu.root){if(!window.templ||!window.templ.mainMenuEnabled){return
}window.menu.show();
return cancelEvent(c)
}if(c.altKey&&c.shiftKey&&b!=16&&b!=18){if(window.menu.handleKey(b)){return cancelEvent(c)
}}});
window.menu=new (makeWidget(a))();
window.menu.addColumn=function(b){this.menuOptions.push(b)
}
})();
window.adDim=viewportSize()[0]>=1380?{top:51,right:10,width:468,height:60}:{top:5,right:5,width:468,height:60};
(function(){var a={tag:"span"};
a.init=function(){this.ads=this.specialAds||["sense"]
};
a.ihtml=function(){var g=["help",[showModal,"Help"],"voorwaarden",[showModal,"TosDialog"],"privacy",[showModal,"PrivacyDialog"],"datingtips",[showModal,"TipsDialog"],"blog",[openWindow,"http://blog.paiq.nl"],"vacatures",[showModal,"Jobs"],"contact",[showModal,"Contact"],"uitloggen",[link,"logout"]];
for(var c=[],d=0;
d<g.length;
d+=2){c.push(new Link({content:g[d],style:"font-weight: bold;",onclick:g[d+1]}).render())
}var b="";
if(window.notifyEventList){var h=new TitleFontWidget({content:username,size:"130%",color:"#ef6b00",style:"text-align: center; margin-bottom: 3px;",tag:"div"}).render()+window.notifyEventList.render();
b+=new (makeWidget({textTop:10,right:20,borderLeft:2,textRight:5,top:22,borderRight:2,textBottom:10,color:"#ffffff",bottom:20,textLeft:10,cor:R+(dd.png?"1/i/_1k.png":"1/i/_1l.png"),borderColor:"#f38228",inherit:BoxWidget,left:20}))({content:h,className:"eventList",style:"width: 175px; margin-top: 35px; margin-left: 11px; color: #596eea;"}).render();
b+=new (makeWidget({textTop:16,right:20,borderLeft:0,textRight:5,top:46,borderRight:0,textBottom:0,bottom:0,textLeft:15,cor:R+(dd.png?"1/i/_1m.png":"1/i/_1n.png"),inherit:BoxWidget,left:20}))({content:window.notifyStatusList.render(),className:"statusList",style:"width: 175px; margin-top: 10px; margin-left: 11px; color: #96a3ef;"}).render()
}if(this.adEnabled&&1&&window.adDim){var e=window.adDim;
this.topAdWidget=new (makeWidget({textTop:10,right:15,textRight:10,borderLeft:15,top:15,textBottom:10,borderRight:15,bottom:15,color:"#f5f5f5",textLeft:10,cor:R+(dd.png?"1/i/_1o.png":"1/i/_1p.png"),inherit:BoxWidget,left:15,ver:R+(dd.png?"1/i/_1q.png":"1/i/_1r.png")}))({style:"position: absolute; right: "+e.right+"px; top: "+e.top+"px; z-index: 50;",content:'<div style="position: relative; height: '+e.height+"px; width: "+e.width+"px; font-size: 70%; color: #808080; line-height: "+e.height+'px; text-align: center;">banner</div><iframe marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" style="position: absolute; left: 0; top: 0; height: '+e.height+"px; width: "+e.width+'px; border: none; background: transparent;" scrolling="no" class="@iframeE"></iframe>'})
}else{this.adEnabled=false
}if(this.mainMenuEnabled){var f=this;
this.goButton=new (makeWidget({textTop:0,right:40,textRight:52,content:"Doorgaan",inverseHash:{textTop:0,right:40,textRight:52,content:"Doorgaan",borderLeft:40,top:48,textBottom:0,borderRight:40,highlightHash:{textTop:0,right:40,borderLeft:40,content:"Doorgaan",textRight:52,top:48,borderRight:40,textBottom:0,bottom:0,textLeft:21,cor:R+(dd.png?"1/i/_ly.png":"1/i/_lz.png"),transformContent:boxHelpers.t.basicButton,inherit:Button,ver:R+(dd.png?"1/i/_m0.png":"1/i/_m1.png"),left:40},bottom:0,textLeft:21,transformContent:boxHelpers.t.basicButton,cor:R+(dd.png?"1/i/_lu.png":"1/i/_lv.png"),inherit:Button,left:40,ver:R+(dd.png?"1/i/_lw.png":"1/i/_lx.png")},borderLeft:40,top:48,textBottom:0,borderRight:40,highlightHash:{textTop:0,right:40,borderLeft:40,inverseHash:{textTop:0,right:40,textRight:52,content:"Doorgaan",borderLeft:40,top:48,textBottom:0,borderRight:40,highlightHash:{textTop:0,right:40,borderLeft:40,content:"Doorgaan",textRight:52,top:48,borderRight:40,textBottom:0,bottom:0,textLeft:21,cor:R+(dd.png?"1/i/_ly.png":"1/i/_lz.png"),transformContent:boxHelpers.t.basicButton,inherit:Button,ver:R+(dd.png?"1/i/_m0.png":"1/i/_m1.png"),left:40},bottom:0,textLeft:21,transformContent:boxHelpers.t.basicButton,cor:R+(dd.png?"1/i/_lu.png":"1/i/_lv.png"),inherit:Button,left:40,ver:R+(dd.png?"1/i/_lw.png":"1/i/_lx.png")},content:"Doorgaan",textRight:52,top:48,borderRight:40,textBottom:0,bottom:0,textLeft:21,cor:R+(dd.png?"1/i/_iu.png":"1/i/_iv.png"),transformContent:boxHelpers.t.basicButton,inherit:Button,ver:R+(dd.png?"1/i/_iw.png":"1/i/_ix.png"),left:40},bottom:0,textLeft:21,transformContent:boxHelpers.t.basicButton,cor:R+(dd.png?"1/i/_iq.png":"1/i/_ir.png"),inherit:Button,left:40,ver:R+(dd.png?"1/i/_is.png":"1/i/_it.png")}))({onclick:function(){window.menu.show();
if(f.goButton.root.blur){f.goButton.root.blur()
}},content:"   menu",textSize:"24px",style:"width: 184px; margin-left: 7px; display: table;"})
}else{this.goButton=new (makeWidget({textTop:0,right:40,textRight:52,content:"Doorgaan",borderLeft:40,top:48,textBottom:0,borderRight:40,highlightHash:{textTop:0,right:40,borderLeft:40,content:"Doorgaan",textRight:52,top:48,borderRight:40,textBottom:0,bottom:0,textLeft:21,cor:R+(dd.png?"1/i/_j2.png":"1/i/_j3.png"),transformContent:boxHelpers.t.basicButton,inherit:Button,ver:R+(dd.png?"1/i/_j4.png":"1/i/_j5.png"),left:40},bottom:0,textLeft:21,transformContent:boxHelpers.t.basicButton,cor:R+(dd.png?"1/i/_iy.png":"1/i/_iz.png"),inherit:Button,left:40,ver:R+(dd.png?"1/i/_j0.png":"1/i/_j1.png")}))({onclick:[link,false],content:"   terug",textSize:"24px",style:"width: 184px; margin-left: 7px; display: table;"})
}return' <div style="height: 100%; margin: 0 0 -33px 0; float: right; width: 1px;" class="@footerSpacerE"></div> <span id="hiddenStuff" style="position: absolute; top: 0px; left: 0px"></span> <div style=\'margin-right: 10px; padding: 91px 0 0 0; '+(dd.ie?"display: inline-block;":"")+"'><table style=\"width: 100%; background: #ffffff url("+R+'1/i/top-bg.png) repeat-x scroll 0 0;" cellpadding="0" cellspacing="0"><tr><td style=\'width: 235px; min-width: 235px; padding-top: 76px;\'><div class="@leftColumnE">'+this.goButton.render()+""+b+"</div></td><td>"+(typeof this.content=="object"?this.child("content"):this.content)+"</td></tr></table></div> <a href='/' style='display: block; position: absolute; left: 23px; top: 8px; width: 150px; height: 137px; background: url("+(R+(dd.png?"2/i/paiq-logo.png":"1/i/_et.png"))+");'></a> "+(this.topAdWidget?this.topAdWidget.render():"")+'  <div class="@footerE" style="clear: both; height: 33px; position: relative; width: 100%"><div class="footerList" style="color: #965c00; margin: 0; padding: 8px 0 0 0; width: 100%; height: 25px; background: #feab66 url('+R+'1/i/footerbg.png) repeat-x; text-align: right;">'+(c.join(" | "))+'<span style="margin: 0 10px 0 10px;">&copy; Copyright '+(new TitleFontWidget("Implicit Link","#965c00","115%").render())+"</span></div></div>"
};
a.finish=function(){window.menu.fromButton=this.goButton.root;
fixViewportY(this.leftColumnE,20);
if(dd.webkit){DBG("Webkit workaround: moving footer spacer into body");
document.body.insertBefore(this.footerSpacerE,document.body.firstChild)
}this.changeTopAd()
};
a.changeTopAd=function(){if(!this.topAdWidget||!this.ads.length){return false
}var b;
if(this._lastAdNum===undefined||this.ads.length<2){b=Math.floor(Math.random()*this.ads.length)
}else{b=Math.floor(Math.random()*(this.ads.length-1));
if(b>=this._lastAdNum){b++
}}if(b>=this.ads.length){b=this.ads.length-1
}this._lastAdNum=b;
try{this.topAdWidget.iframeE.setAttribute("src","/_ad_"+this.ads[b]+"?width="+window.adDim.width+"&height="+window.adDim.height+"")
}catch(c){}};
a.isTopAdVisible=function(){return this.topAdWidget&&(dd.ie?document.documentElement.scrollTop:window.pageYOffset)<220
};
window.SiteTemplate=makeWidget(a)
})();
var renderMenuMode=0;
var collapseTO=false;
(function(){var a={};
window.setAutoRunCloser=function(c,b){a[c]=b
};
window.autoRunKilled=function(b){callback(a[b]);
delete a[b]
};
window.killAutoRun=function(c,b){ev.send("AutoRun.kill",c);
if(!b){callback(a[c])
}if(b!=1){delete a[c]
}}
})();
window.oldAlert=window.alert;
window.alert=function(a){new Modal(0,a,"Let op!").show()
};
function viewPhotos(b,a){showModal("Photos",b,a)
}function showHistory(a,b){showPopup("_history?otherUserId="+a+""+(b?"&me="+b:"")+"#end")
}window.userTestFeature=function(c,b){var a=(window.euid||window.uid)+c*12345;
a+=(a<<12);
a^=(a>>22);
a+=(a<<4);
a^=(a>>9);
a+=(a<<10);
a^=(a>>2);
a+=(a<<7);
a^=(a>>12);
return a%(b||2)
};
var toAnchorHref=document.location.href;
window.toAnchor=function(){var b=toAnchorHref.split("#");
b.shift();
if(b[0]){var a=(b[0]=="RemoveAccount"||b[0]=="Settings");
triggerModal(a,b,true);
document.location.hash=b[0]
}};
function SitePage(){DBG("new SitePage");
this.auth=function(d,a,b){a=parseInt(a);
DBG("auth: "+d+" "+a+" "+b);
this.secret=b;
if(d){this.cookie=d;
document.cookie="a="+d+"; path=/; expires=Sun, 21-Apr-2030 00:00:01 GMT; domain="+domain+";";
DBG("setting cookie: a="+d+"; path=/; expires=Sun, 21-Apr-2030 00:00:01 GMT; domain="+domain+";")
}callback(this.onAuth);
if(a){this.onAuth=link
}};
this.stats=function(){};
window.ev=new EventConnection("/ilcs");
pageType=pageType||0;
this.start=function(){DBG("SitePage start: "+page+" "+pageType+" "+uid);
if(pageType&1&&page){incrLoading();
ev.send("init",page,[window.notificationHandlers,window.notificationHandlers.setVarList],uid)
}if(window.urlMsg){notify("urlMsg",escapeHtml(window.urlMsg),15000,0)
}ev.start();
window.fireCallback("onSemiLoad");
decrLoading()
};
this.cookie=getCookie("a");
if(!self.noLogin){ev.send("User.client",this.cookie,navigator.userAgent,this,(pageType==0?32:0),document.referrer,document.location.href)
}}window.addCallback("onload",function(){if(self.SymWinOpen&&document.location.href.indexOf("_firewall")<0){document.location.href="_firewall"
}});
(function(){var b;
var a=function(){b=false;
setTimeout(function(){b=true
},60000)
};
window.adEvent=function(){if(!b){return
}var c="/event/msg/ad_invisible";
if(window.templ.isTopAdVisible()){c="/event/msg/ad_visible";
window.templ.changeTopAd();
a()
}try{if(window.pageTracker){pageTracker._trackPageview(c)
}}catch(d){}};
a()
})();if(self.scriptReady) { scriptReady("page"); }
