var headerRequest;var headerNotice;function asyncLinks(title,notice)
{headerNotice=notice;headerRequest=new MicroRequest("GET","/jslink.php",true);headerRequest.registerStateListener(updateHeader,MicroRequest.STATE_COMPLETE);headerRequest.addParameter("title",title);headerRequest.send();}
function updateHeader()
{var html='<div style="font-size: 16px;">';html += '<b><a href="https://flippa.com/143121-wikiporno-adult-directory-site-established-revenue" class="external text" target="_blank" title="Wikiporno is for sale!" rel="nofollow">Wikiporno is for sale!</a></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';var header=eval("("+headerRequest.getResponseText()+")");if(header.actor!=null){if(header.actor.psviplink!=null&&header.actor.psviplink!=''){html+='<b><a href="'+header.actor.psviplink+'" class="external text" target="_blank" title="Webcam 1-on-1 with '+header.actor.name+'" rel="nofollow"/>Webcam 1-on-1 with '+header.actor.name+'</a></b>&nbsp;';}
if((header.actor.psviplink!=null&&header.actor.psviplink!='')&&(header.actor.link!=null&&header.actor.link!='')){html+='&nbsp;&nbsp;&nbsp;&nbsp;';html+='&nbsp;&nbsp;&nbsp;&nbsp;';}
if(header.actor.link!=null&&header.actor.link!=''){html+='<b><a href="'+header.actor.link+'" class="external text" target="_blank" title="Watch '+header.actor.name+' Movies" rel="nofollow"/>Watch '+header.actor.name+' Movies</a></b>&nbsp;';}
if((header.actor.link!=null&&header.actor.link!='')&&(header.actor.gallery!=null&&header.actor.gallery!='')){html+='&nbsp;&nbsp;&nbsp;&nbsp;';html+='&nbsp;&nbsp;&nbsp;&nbsp;';}
if(header.actor.gallery!=null&&header.actor.gallery!=''){html+='<b><a href="'+header.actor.gallery+'" class="external text" target="_blank" title="'+header.actor.name+' Free Galleries" rel="nofollow"/>'+header.actor.name+' Free Galleries</a></b>&nbsp;';}}
if(header.movie!=null){html+='<b><a href="'+header.movie.link+'" class="external text" target="_blank" title="Watch '+header.movie.title+'" rel="nofollow"/>Watch '+header.movie.title+'</a></b>&nbsp;';}
html+='</div>';headerNotice.innerHTML=html;}
MicroRequest.STATE_UNINITIALIZED=0;MicroRequest.STATE_LOADING=1;MicroRequest.STATE_LOADED=2;MicroRequest.STATE_INTERACTIVE=3;MicroRequest.STATE_COMPLETE=4;function MicroRequest(method,url,asynchronous)
{this.method=method;this.url=url;this.asynchronous=asynchronous?true:false;this.parameters=new Array();var request=null;if(window.ActiveXObject)
request=new ActiveXObject("Microsoft.XMLHTTP");else if(window.XMLHttpRequest)
request=new XMLHttpRequest();if(request&&request!=null)
{var listeners=new Array();var readyState=MicroRequest.STATE_UNINITIALIZED;request.onreadystatechange=function()
{if(readyState<request.readyState)
{readyState=request.readyState;var listener=listeners[readyState];if(listener&&listener!=null)
listener.call();}}
this.request=request;this.listeners=listeners;}}
MicroRequest.prototype.getMethod=function()
{return this.method;}
MicroRequest.prototype.getUrl=function()
{return this.url;}
MicroRequest.prototype.isAsynchronous=function()
{return this.asynchronous;}
MicroRequest.prototype.registerStateListener=function(listener,state)
{if(listener&&listener!=null)
{if(isNaN(state))
state=MicroRequest.STATE_COMPLETE;this.listeners[state]=listener;}}
MicroRequest.prototype.removeStateListener=function(state)
{var listener=null;if(state&&!isNaN(state)&&state>=MicroRequest.STATE_UNINITIALIZED&&state<=MicroRequest.STATE_COMPLETE)
{listener=this.listeners[state];this.listeners[state]=null;}
return listener;}
MicroRequest.prototype.addParameter=function(name,value)
{var param;for(var i=0;i<this.parameters.length;i++)
{param=this.parameters[i];if(param[0]==name)
{param[1][param[1].length]=value;return;}}
var pair=new Array(2);pair[0]=name;pair[1]=new Array();pair[1][0]=value;this.parameters[this.parameters.length]=pair;}
MicroRequest.prototype.getParameter=function(name)
{var pair;for(var i=0;i<this.parameters.length;i++)
{pair=this.parameters[i];if(pair[0]==name)
return pair[1][0];}
return null;}
MicroRequest.prototype.removeParameter=function(name,value)
{var param,old=null;for(var i=0;i<this.parameters.length;i++)
{param=this.parameters[i];if(param[0]==name)
{if(!value)
{old=param[1][0];for(var j=i;j<(this.parameters.length-1);j++)
this.parameters[j]=this.parameters[j+1];this.parameters.length-=1;}
else
{var values,val;for(var k=0;k<param[1].length;k++)
{values=param[1];val=values[k];if(val==value)
{old=val;for(var l=k;l<(values.length-1);l++)
values[l]=values[l+1];values.length-=1;}}}}}
return old;}
MicroRequest.prototype.clearParameters=function()
{this.parameters=new Array();}
MicroRequest.prototype.send=function()
{var data=new String();if(this.parameters.length>0)
{var pair,values;for(var i=0;i<this.parameters.length;i++)
{pair=this.parameters[i];values=pair[1];for(var j=0;j<values.length;j++)
{if(j>0||data.length>0)
data+="&";data+=escape(pair[0]);data+="=";data+=escape(values[j]);}}}
if(this.method=="GET")
{if(data.length>0)
this.url+=("?"+data);this.request.open(this.method,this.url,this.asynchronous);if(window.ActiveXObject)
this.request.send();else
this.request.send(null);}
else if(this.method=="POST")
{this.request.open(this.method,this.url,this.asynchronous);this.request.setRequestHeader("Content-type","application/x-www-form-urlencoded");this.request.setRequestHeader("Content-length",data.length);this.request.setRequestHeader("Connection","close");this.request.send(data);}}
MicroRequest.prototype.abort=function(){this.request.abort();}
MicroRequest.prototype.getReadyState=function(){return this.request.readyState;}
MicroRequest.prototype.getStatus=function(){return this.request.status;}
MicroRequest.prototype.getStatusText=function(){return this.request.statusText;}
MicroRequest.prototype.getResponseText=function(){return this.request.responseText;}
MicroRequest.prototype.getResponseXML=function(){return this.request.responseXML;}
MicroRequest.prototype.setRequestHeader=function(name,value){this.request.setRequestHeader(name,value);}
MicroRequest.prototype.getAllResponseHeaders=function(){return this.request.getAllResponseHeaders();}
MicroRequest.prototype.getResponseHeader=function(name){return this.request.getResponseHeader(name);}
MicroRequest.prototype.toString=function(){return"[object MicroRequest]";}
