
function ELM(id,doc)
{if(typeof(doc)=='undefined')doc=document;return doc.getElementById(id);};function DISPLAY(id,option)
{var elm=ELM(id);var bDisplay;switch(option)
{case'1':case true:option='block';bDisplay=true;break;case'0':case false:option='none';bDisplay=false;break;case'block':case'inline':bDisplay=true;break;case'none':bDisplay=false;break;case'switch':if(elm.style.display=='none')
{option='block';bDisplay=true;}
else
{option='none';bDisplay=false;}
break;}
elm.style.display=option;return bDisplay;};function MOVE(id,x,y)
{elm=ELM(id);elm.style.left=x+'px';elm.style.top=y+'px';}
function POPUP(url,name,size,scrollbars)
{var nLeft=((.8*1024-size.width)/2);var nTop=((.8*screen.height-size.height)/2);var wnd=window.open(url,name,'menubar=0,toolbar=0,location=0,status=1,scrollbars='+(typeof('scrollbars')=='undefined'?0:scrollbars)+',resizable=0,width='+size.width+',height='+size.height+',left='+nLeft+',top='+nTop);wnd.focus();}
function FULLSCREEN(url,name,bFullWidth)
{var config=((bFullWidth)||(screen.width<=1024)?'fullscreen=1':'top=0,left=0,width=1070,height='+screen.height);wnd=window.open('',name,config+',menubar=1,toolbar=1,location=1,status=1,scrollbars=1,resizable=1');wnd.focus();}
function MAXCANVAS()
{top.window.moveTo(0,0);}
function SUBDOMINIO_PHOTOS_IDX(alias_photo)
{return(parseInt(alias_photo.charAt(alias_photo.length-1),16)%4)+1;}
var bAjaxPostSemaphore=true;function AjaxPost(url,params,bDebug,bExternalSemaphore)
{if(typeof(params)=='undefined')params='';if(typeof(bDebug)=='undefined')bDebug=false;if(typeof(bExternalSemaphore)=='undefined')bExternalSemaphore=false;if((!bExternalSemaphore)&&(!bAjaxPostSemaphore))return;bAjaxPostSemaphore=false;var xmlhttp=new XMLHttpRequest();xmlhttp.open('POST',url,true);xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(params);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var js=xmlhttp.responseText;if(bDebug)
{document.write(js);}
else
{if(xmlhttp.status==0)
{alert("Error de conexión al servidor. Vuelva a intentarlo.");}
else if(xmlhttp.status==200)
{eval(js);}
else
{alert(xmlhttp.status);}}
bAjaxPostSemaphore=true;}}}
function GetPostParams(id_form)
{var params=[];var grupos=[];var elm_form=ELM(id_form);var i=0;var bSkip;while(i<elm_form.elements.length)
{var elm=elm_form.elements[i];if(elm.id!='')
{var value='';bSkip=false;switch(elm.type)
{case'text':case'hidden':case'textarea':case'select-one':value=elm.value;break;case'checkbox':value=(elm.checked?elm.value:'');break;case'radio':var grupo=eval('elm_form.elements.'+elm.name);if(typeof(grupos[elm.name])!='undefined')
{bSkip=true;break;}
if(typeof(grupo.length)=='undefined')
{value=elm.value;}
else
{for(j=0;j<grupo.length;j++)
{if(grupo[j].checked)
{value=grupo[j].value;break;}}}
grupos[elm.name]=true;break;}
if(!bSkip)
{value=value.replace(/\+/g,"%2B");value=value.replace(/&/g,"%26");params[params.length]=elm.name+'='+value;}}
i++;}
return params.join('&');};function SetCursorPos(elm,pos)
{if((typeof(document.selection)!='undefined')&&(document.selection))
{var text=elm.value;elm.value='';elm.focus();var str=document.selection.createRange();elm.value=text;str.move('character',pos);str.moveEnd('character',0);str.select();}
else if(typeof(elm.selectionStart!='undefined'))
{elm.setSelectionRange(pos,pos);}
elm.focus();}
function SetCursorPosAtEnd(elm)
{SetCursorPos(elm,elm.value.length);}
function TRIM(s)
{return s.replace(/\b/g,'');};function STRIP_PX(s)
{return parseInt(new String(s).split('px')[0]);};function RIGHT(s,n)
{return(s.substring(s.length-Math.min(s.length,n)));};function EsNumero(valor)
{var regexp=/^\d+$/;return(regexp.test(valor));}
function IsSafari()
{var regexp=/Safari/i;return(regexp.test(navigator.userAgent));};function SetEventListener(elm,sEvent,fn)
{if(elm==null)
{alert(sEvent+"\n\n"+fn);return;}
if(IsSafari())elm['on'+sEvent]=fn;else if(elm.addEventListener)elm.addEventListener(sEvent,fn,false);else if(elm.attachEvent)elm.attachEvent('on'+sEvent,fn);};function StopEvent(ev)
{if(window.event)
{window.event.cancelBubble=true;window.event.returnValue=false;}
else
{if(ev.stopPropagation)ev.stopPropagation();if(ev.preventDefault)ev.preventDefault();}};function GetEventElement(ev)
{return(window.event?window.event.srcElement:ev.target);};function GetEventLink(ev)
{var elm=GetEventElement(ev);while(elm.nodeName.toLowerCase()!='a')elm=elm.parentNode;return elm;};function GetScrollX()
{if(typeof(window.pageXOffset)=='number')return window.pageXOffset;else if(document.body&&document.body.scrollLeft)return document.body.scrollLeft;else if(document.documentElement&&document.documentElement.scrollLeft)return document.documentElement.scrollLeft;else return 0;};function GetScrollY()
{if(typeof(window.pageYOffset)=='number')return window.pageYOffset;else if(document.body&&document.body.scrollTop)return document.body.scrollTop;else if(document.documentElement&&document.documentElement.scrollTop)return document.documentElement.scrollTop;else return 0;};function GetMouseX(ev)
{if(ev.pageX)return STRIP_PX(ev.pageX);else if(ev.clientX)return STRIP_PX(ev.clientX);else return 0;};function GetMouseY(ev)
{if(ev.pageY)return STRIP_PX(ev.pageY);else if(ev.clientY)return STRIP_PX(ev.clientY);else return 0;};function GetEventElmXY(ev)
{if(ev.offsetX)return{'x':ev.offsetX+1,'y':ev.offsetY+1};var x=0;var y=0;elm=GetEventElement(ev);if(elm.offsetParent)
{do
{x+=elm.offsetLeft;y+=elm.offsetTop;}
while(elm=elm.offsetParent);}
return{'x':ev.pageX-x-1,'y':ev.pageY-y-1};};function GetPageSize()
{if((window.innerHeight)&&(window.scrollMaxY))
{x=window.innerWidth+window.scrollMaxX;y=window.innerHeight+window.scrollMaxY;}
else if(document.body.scrollHeight>document.body.offsetHeight)
{x=document.body.scrollWidth;y=document.body.scrollHeight;}
else
{x=document.body.offsetWidth+document.body.offsetLeft;y=document.body.offsetHeight+document.body.offsetTop;}
return{'x':x,'y':y};};
document.getElementById('top').innerHTML+='<ul id="compartir" class="compartir_gt_1024"><li><a id="compartir_link" href="mailto:?subject=home - home&body=Hola,%20mirate%20esta%20pagina%20web:%0A%0Ahttp%3A%2F%2Fwww.photoescorts.com%2F%0A%0ASaludos.%0A"><img src="http://gfx-1.photoescorts.com/es/es/gfx/recomendar.gif" alt="Recomendar" />Recomendar</a></li></ul>';
if(document.getElementById('compartir')!=null)document.getElementById('compartir').className=(screen.width<=1024?'compartir_lte_1024':'compartir_gt_1024');image_small=new Array();image_small[0]='http://gfx-1.photoescorts.com/es/es/gfx/donsexshop_small.swf';image_big=new Array();image_big[0]='http://gfx-1.photoescorts.com/es/es/gfx/donsexshop_big.gif';GoTo=new Array();GoTo[0]='http://www.donsexshop.com/sexshop.asp';var anzahl=1;var nr=Math.round((anzahl-1)*Math.random());var Link=GoTo[nr];var Image1=image_small[nr];var Image2=image_big[nr];var esel=new Object();esel.ad_url=escape(Link);esel.small_path='http://gfx-1.photoescorts.com/es/es/gfx/cornersmall.swf';esel.small_image=escape(Image1);esel.small_width='100';esel.small_height='100';esel.small_params='ico='+esel.small_image;esel.big_path='http://gfx-1.photoescorts.com/es/es/gfx/cornerbig.swf';esel.big_image=escape(Image2);esel.big_width='650';esel.big_height='650';esel.big_params='big='+esel.big_image+'&ad_url='+esel.ad_url;function sizeup987()
{document.getElementById('eselcornerBig').style.top='0px';document.getElementById('eselcornerSmall').style.top='-1000px';}
function sizedown987()
{document.getElementById("eselcornerSmall").style.top="0px";document.getElementById("eselcornerBig").style.top="-1000px";}
esel.putObjects=function()
{document.write('<div id="eselcornerSmall" style="position:absolute;width:'+esel.small_width+'px;height:'+esel.small_height+'px;z-index:9999;right:0px;top:0px;">');document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');document.write(' id="eselSmallcornerObject" width="'+esel.small_width+'" height="'+esel.small_height+'">');document.write(' <param name="allowScriptAccess" value="always"/> ');document.write(' <param name="movie" value="'+esel.small_path+'?'+esel.small_params+'"/>');document.write(' <param name="wmode" value="transparent" />');document.write(' <param name="quality" value="high" /> ');document.write(' <param name="FlashVars" value="'+esel.small_params+'"/>');document.write('<embed src="'+esel.small_path+'?'+esel.small_params+'" name="eselcornerSmallObject" wmode="transparent" quality="high" width="'+esel.small_width+'" height="'+esel.small_height+'" flashvars="'+esel.small_params+'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');document.write('</object>');document.write('</div>');document.write('<div id="eselcornerBig" style="position:absolute;width:'+esel.big_width+'px;height:'+esel.big_height+'px;z-index:9999;right:0px;top:0px;">');document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');document.write(' id="eselcornerBigObject" width="'+esel.big_width+'" height="'+esel.big_height+'">');document.write(' <param name="allowScriptAccess" value="always"/> ');document.write(' <param name="movie" value="'+esel.big_path+'?'+esel.big_params+'"/>');document.write(' <param name="wmode" value="transparent"/>');document.write(' <param name="quality" value="high" /> ');document.write(' <param name="FlashVars" value="'+esel.big_params+'"/>');document.write('<embed src="'+esel.big_path+'?'+esel.big_params+'" id="eselcornerBigEmbed" name="eselcornerBigObject" wmode="transparent" quality="high" width="'+esel.big_width+'" height="'+esel.big_height+'" flashvars="'+esel.big_params+'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');document.write('</object>');document.write('</div>');setTimeout('document.getElementById("eselcornerBig").style.top = "-1000px";',1000);}
esel.putObjects();