var ad_height,popunder,myN=0,mouseX=0,mouseY=0,ad1=false,ad2=false,res=screen.width,perline=9,divSet=false,curId,colorLevels=Array("0","3","6","9","C","F"),colorArray=Array(),nocolor="none",count=0;switch(res){case 800:ad2=ad1=false;break;case 1024:ad1=true;ad2=false;break;case 1280:ad2=ad1=true;break;default:ad1=true;ad2=false;break}google.load("jquery","1.3.2");google.load("swfobject","2.2");
google.setOnLoadCallback(function(){(function(e){e.dimensions={version:"1.2"};e.each(["Height","Width"],function(h,f){e.fn["inner"+f]=function(){if(this[0]){var j=f=="Height"?"Top":"Left",k=f=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+f]:g(this,f.toLowerCase())+g(this,"padding"+j)+g(this,"padding"+k)}};e.fn["outer"+f]=function(j){if(this[0]){var k=f=="Height"?"Top":"Left",l=f=="Height"?"Bottom":"Right";j=e.extend({margin:false},j||{});var m=this.is(":visible")?this[0]["offset"+
f]:g(this,f.toLowerCase())+g(this,"border"+k+"Width")+g(this,"border"+l+"Width")+g(this,"padding"+k)+g(this,"padding"+l);return m+(j.margin?g(this,"margin"+k)+g(this,"margin"+l):0)}}});e.each(["Left","Top"],function(h,f){e.fn["scroll"+f]=function(j){if(this[0])return j!=undefined?this.each(function(){this==window||this==document?window.scrollTo(f=="Left"?j:e(window).scrollLeft(),f=="Top"?j:e(window).scrollTop()):(this["scroll"+f]=j)}):this[0]==window||this[0]==document?self[f=="Left"?"pageXOffset":
"pageYOffset"]||e.boxModel&&document.documentElement["scroll"+f]||document.body["scroll"+f]:this[0]["scroll"+f]}});e.fn.extend({position:function(){var h=this[0],f,j,k;if(h){k=this.offsetParent();f=this.offset();j=k.offset();f.top-=g(h,"marginTop");f.left-=g(h,"marginLeft");j.top+=g(k,"borderTopWidth");j.left+=g(k,"borderLeftWidth");f={top:f.top-j.top,left:f.left-j.left}}return f},offsetParent:function(){for(var h=this[0].offsetParent;h&&!/^body|html$/i.test(h.tagName)&&e.css(h,"position")=="static";)h=
h.offsetParent;return e(h)}});function g(h,f){return parseInt(e.curCSS(h.jquery?h[0]:h,f,true))||0}})(jQuery);$("#gm_big_image").length>0&&fix_img_widths("gm_big_image",600);$().mousemove(function(e){mouseX=e.pageX;mouseY=e.pageY});$("#wm-search-btn").length>0&&$("#wm-search-btn").click(function(){agregarBuscador()});$("#wm-register-form").length>0&&$("#wm-register-form-button").click(function(){$("#form_basic").submit()});$("#wm-register-advanced-form-button")&&$("#wm-register-advanced-form-button").click(function(){validate_form_wm()});
if($("#pic")){var b=$("#pic"),d=b.width();d>640&&b.css("width","640px");b.css("display","block")}$("#gm_mini_buttons_footer a img").mouseover(function(){$(this).addClass($(this).attr("id")+"-on")}).mouseout(function(){$(this).removeClass($(this).attr("id")+"-on")});$(".trim").val(jQuery.trim($(".trim").val()));$(".qck_sub").each(function(){$(this).click(function(){var e=$(this).offset();$("#frm_news_suscribe").css("display","block");$("#frm_news_suscribe").css("top",e.top+"px");$("#frm_news_suscribe").css("left",
$(window).scrollLeft()+(mouseX-100)+"px")})});$(".gm_enc_zebra tr:odd").css("background-color","#E3E3E3");$("#wm-register-form-button").click(function(){$("#form_basic").submit()});$("#wm-register-advanced-form-button").click(function(){validate_form_wm()});$("#wm-search-btn").click(function(){agregarBuscador()});$("#btn-generar").click(function(){generate()});$(".btn_sub_close").click(function(){$("#frm_news_suscribe").css("display","none")});$("#g_ad").height($(document).height());$("#gmenu").height($(document).height());
$(".gm_menu_item_hid").addClass("gm_menu_hidden");$(".gm_menu_plus").click(function(){$(".gm_menu_item_hid").toggleClass("gm_menu_hidden")});$(document).resize(function(){$("#g_ad").height($(document).height());$("#gmenu").height($(document).height())});$(".thumb_02_off").mouseover(function(){$(this).addClass("thumb_02_on")}).mouseout(function(){$(this).removeClass("thumb_02_on")});$(".btn_out").mouseover(function(){$(this).addClass("btn_ovr")}).mouseout(function(){$(this).removeClass("btn_ovr")});
$("td .bg_cat_off").each(function(){$(this).hover(function(){$(this).removeClass("bg_cat_off");$(this).addClass("bg_cat_on")},function(){$(this).removeClass("bg_cat_on");$(this).addClass("bg_cat_off")})});$("#jump_escorts").change(function(){document.location.href="/?id=escorts&ct="+$("#current_cat").val()+"&pb="+this[this.selectedIndex].value});$(".menu_off").mouseover(function(){$(this).addClass("menu_on")}).mouseout(function(){$(this).removeClass("menu_on")});add_contact_info();$.browser.msie&&
setTimeout("fix_IE_nonsence()",5000);if(ad1){$("#g_ad").addClass("loading-toolbar");setTimeout(function(){$.ajax({type:"GET",url:"/app/services/extra-content.php?type=1",data:"type=1",success:function(e){try{var g=e.split("@@@");$("#g_ad").addClass("rightad"+g[0]);if(g[1]){$("#g_ad").html(g[1]);var h=$("#g_ad").children("table").attr("class");typeof h!="undefined"&&$("#g_ad").addClass(h);doThePNGcrapAgain();$("#g_ad").height()>=$("#gmenu").height()?$("#gmenu").height($(document).height()):$("#g_ad").height($(document).height())}}catch(f){}$("#g_ad").removeClass("loading-toolbar")}})},
1500)}b=new Date;$("#pingaloca").html(b.getHours()+":"+b.getMinutes()+":"+b.getSeconds())});function resizeK(){$("#kwords").css("height",$("#inner_kwords").height()+20)}function viewPH(b){document.getElementById("pepe").value=b;document.getElementById("hf1").submit()}function fix_img_widths(b,d){b=document.getElementById(b);var e=b.width,g=b.height;if(e>d){d=1-(e-d)/e;b.width=e*d;b.height=g*d}}
function HighlightAll(b){b=b.split(".");b=$("textarea[name="+b[1]+"]");b.focus();b.select();range=b.createTextRange();range.execCommand("Copy")}function openMap(){var b=document.getElementById("mapa_img").src;win=window.open("","Mapa","width=360px,height=350px");win.document.write("<html><head><title>Gemidos - Mapa Ampliado</title></head><body style='margin:0px'><img src='"+b+"' border='0' /></body></html>")}
function openMappp(b){win=window.open("","Mapa","width=360px,height=350px");win.document.write("<html><head><title>Gemidos - Mapa Ampliado</title></head><body style='margin:0px'><img src='"+b+"' border='0' /></body></html>")}function openPhotoWindow(b,d,e){src=document.getElementById(b).src;win=window.open("","","width="+d+",height="+e);win.document.write("<head><title>Gemidos Hoteles</title></head><body leftmargin='0' topmargin='0'><img src='"+src+"'></body>")}
function buscarHotelesPorBarrio(b){var d=false;d=document.getElementById("zone");for(c=0;c<d.length;c++)if(d[c].value==b)d[c].selected=true;d=document.getElementById("zona_gba");for(c=0;c<d.length;c++)if(d[c].value==b)d[c].selected=true;document.getElementById("search_hoteles").submit()}function goToPageHotel(b){for(var d=document.getElementsByTagName("div"),e=1;e<d.length;e++)if(/^card/.test(d[e].id))document.getElementById(d[e].id).style.display="none";$("#card_"+b).css("display","block")}
function next_page(b){document.getElementById("nro_pag").value=b;document.getElementById("formu").action="?id=buscadorescorts&subop=2";document.getElementById("formu").submit()}
function validar_buscador(){zona_cap=document.getElementById("zone")[document.getElementById("zone").selectedIndex].value;zona_prov=document.getElementById("zone_gba")[document.getElementById("zone_gba").selectedIndex].value;if(zona_cap!=""&&zona_prov!=""){alert("Ha seleccionado dos Zonas. Por favor, seleccione solamente una.");return false}document.getElementById("form_buscador_hoteles").submit()}
function agregarBuscador(){if(window.external&&"AddSearchProvider"in window.external)window.external.AddSearchProvider("http://www.gemidos.com.ar/search/xml/search.xml");else window.sidebar&&"addSearchEngine"in window.sidebar?window.sidebar.addSearchEngine("http://www.gemidos.com.ar/search/xml/search.xml","http://www.gemidos.com.ar/web/img/rss/gemidos.png","Gemidos Escorts Argentina Acompa\ufffdantes",""):alert("Su navegador no soporta esta funci\ufffdn. Gemidos recomienda Internet Explorer 7, Firefox y Safari")}
function swapGemidosGroup(b,d){for(var e=b.src.split("/"),g=e[e.length-1],h="",f=0;f<e.length-1;f++)h+=e[f]+"/";e=g.split(".");d=d=="ovr"?e[0].substr(0,e[0].length-3)+"."+e[1]:e[0]+"_ds."+e[1];h=h+d;b.src=h}function placeVote(){win=window.open("","_popup","scrolling=no,width=570px,height=400px");document.getElementById("form_vota").submit()}
function fix_IE_nonsence(){var b=navigator.appVersion.split("MSIE");b=parseFloat(b[1]);if(b>=5.5&&document.body.filters)for(b=0;b<document.images.length;b++){var d=document.images[b],e=d.src.toUpperCase();if(e.substring(e.length-3,e.length)=="PNG"){e=d.id?"id='"+d.id+"' ":"";var g=d.className?"class='"+d.className+"' ":"",h=d.title?"title='"+d.title+"' ":"title='"+d.alt+"' ",f="display:inline-block;"+d.style.cssText;if(d.align=="left")f="float:left;"+f;if(d.align=="right")f="float:right;"+f;if(d.parentElement.href)f=
"cursor:hand;"+f;e="<span "+e+g+h+' style="z-index:1;width:'+d.width+"px; height:"+d.height+"px;"+f+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d.src+"', sizingMethod='scale');\"></span>";d.outerHTML=e;b-=1}}}function validar_mail(b){return/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(b)?true:false}
function validate_send(b){cleanErrors();var d=$("#nombre").val(),e=$("#email").val(),g=[],h=$("#usr").val(),f=$("#pwd").val(),j=$("#pwd2").val();if(b==1)b=$("#mensaje").val();d==""&&g.push("Por favor completa tu nombre");if(e=="")g.push("Por favor completa tu E-Mail");else validar_mail(e)||g.push("El E-Mail es incorrecto");/^([a-zA-Z0-9_-]{4,12})$/.test(h)==false&&g.push("El nombre de usuario solo puede contener letras, numeros y guiones bajos, y debe tener entre 4 y 12 caracteres");if(f==""||j==
"")g.push("Por favor completa tu contrase\ufffda");else f!=j&&g.push("Verifica las contrase\ufffdas, no son iguales");if(g.length>0){showErrors(g);return false}$("fsubscribe").submit();return true}function explode(b,d){return d.split(b)}function showErrors(b){var d=$("errormsgs");d.style.display="block";for(c=0;c<b.length;c++){var e=document.createElement("div"),g=document.createElement("li");e.className="txt_09";e.style.textAlign="left";e.innerHTML=b[c];g.appendChild(e);d.appendChild(g)}}
function cleanErrors(){var b=$("errormsgs");b.style.display="none";for(var d=b.childNodes.length,e=0;e<d;e++)b.removeChild(b.firstChild)}function openChatPopup(){var b=window.open("","chat","width=600px,height=600px,resize=no");b.location.href="/chat/?mode=popup";document.location.href="/trivias/"}function voteCara(){win=window.open("","_popup","scrolling=no,width=468px,height=300px");document.getElementById("form_cara").submit()}
function random_escort(b,d){$.ajax({type:"GET",url:"/app/services/random_escort.php?uid="+d+"&ct="+b,success:function(e){document.location.href=e},error:function(){}})}function vote_escort(b){$.ajax({type:"GET",url:"/app/services/vote_escort.php?id="+b,success:function(d){d=d;document.getElementById("vote_btn").src="/web/img/es/toolbar/gracias.jpg";if(d=="1"){d=parseInt($("#voteDisplay").html(),10)+1;$("#voteDisplay").html(d)}}})}
function set_cookie_lang(b,d,e,g){if(e){g=new Date;g.setTime(g.getTime()+e*24*60*60*1000);e="; expires="+g.toGMTString()}else e="";document.cookie=b+"="+d+e+"; path=/"}
function init1024(){$("#g_ad")&&$.ajax({type:"GET",url:"/app/services/extra-content.php",success:function(b){b=b.split("@@@");myN=b[0];$("#g_ad").html(b[1]);b=$("#g_ad").children("table").attr("class");lalala=$("#g_ad").height();b!="undefined"&&$("#g_ad").addClass(b);function d(){$("#mainea")&&$("#mainea").css("height",lalala)}if(lalala){lalala+="px";setTimeout(d,1100)}},error:function(){}})}
function init_ad120(){$("#ad_rot_120")&&$.ajax({type:"GET",url:"/rotator/120x60/",success:function(b){$("#ad_rot_120").innerHTML=b},error:function(){}})}function init_ad_footer(){$("#footer_rotator")&&$.ajax({type:"POST",url:"/ads/footer.php",success:function(b){$("#footer_rotator").innerHTML=b},error:function(){}})}function init_ad_rotator(){$("#bann_rotator")&&$.ajax({type:"POST",url:"/banners/rotator.php",success:function(b){$("#bann_rotator").innerHTML=b},error:function(){}})}
function init_ad_extra(){screen.availWidth>1024&&$("#td_ad_plus")&&$.ajax({type:"POST",url:"/ads/?n="+myN,success:function(b){b=b.split("##@##");$("#td_ad_plus").innerHTML=b[1];getHeight=$("#td_ad").height();function d(){if($("#mainea1"))document.getElementById("#mainea1").style.height=getHeight}if(getHeight){getHeight+="px";setTimeout(d,1100)}else $("#mainea1").style.height=$("#gguide").offsetTop},error:function(){}})}
function init_ad_top_home(){$("#ad_top_home_1")&&$.ajax({type:"POST",url:"/rotator/iframe3.php",success:function(b){$("#ad_top_home_1").innerHTML=b},error:function(){}})}
function add_contact_info(){var b="gemidos.com.ar";$("#contact_info_left")&&$("#contact_info_left").html("<a href='mailto:info@"+b+"' class='link_07'><img src='http://www."+b+"/images/em-info.gif' border='0' width='115' height='15' alt='' /></a>");$("#contact_info_right")&&$("#contact_info_right").html("<a href='mailto:fotos@"+b+"' class='link_07'><img src='http://www."+b+"/images/em-fotos.gif' border='0' width='115' height='15' alt='' /></a>")}
function validate(b){pin=document.getElementById(b).value;data=b.split("_");if(data[0]=="gl"||data[0]=="tp")tipo=1;else if(data[0]=="vd")tipo=2;if(pin.length!=6)alert("Por favor ingrese correctamente el PIN.");else{document.getElementById("pin").value=pin;document.getElementById("pindata").value=tipo+"#"+data[1]+"#"+data[2];document.getElementById("validate_pin").submit()}}
function CheckMultiple12(b,d){for(var e=0;e<b.length;e++){fldObj=b.elements[e];if(fldId=fldObj.id){var g=fldObj.id.indexOf(d);if(g!=-1)if(fldObj.checked)return true}}return false}function CheckForm12(b){if(b.email.value==""){alert("Por favor, ingrese su direccion de email.");b.email.focus();return false}return true}
function showInfo(b){b=b.split("-");b=b[1];for(var d=1;d<=7;d++){var e="0"+d,g=document.getElementById("menu-"+e),h=document.getElementById("c-txt-"+e);if(e!=b){g.className="contactos-solapa-off";h.style.display="none"}else{g.className="contactos-solapa-on";h.style.display="block"}}}
function doThePNGcrapAgain(){var b=navigator.appVersion.split("MSIE");b=parseFloat(b[1]);if(b>=5.5&&document.body.filters)for(b=0;b<document.images.length;b++){var d=document.images[b],e=d.src.toUpperCase();if(e.substring(e.length-3,e.length)=="PNG"){e=d.id?"id='"+d.id+"' ":"";var g=d.className?"class='"+d.className+"' ":"",h=d.title?"title='"+d.title+"' ":"title='"+d.alt+"' ",f="display:inline-block;"+d.style.cssText;if(d.align=="left")f="float:left;"+f;if(d.align=="right")f="float:right;"+f;if(d.parentElement.href)f=
"cursor:hand;"+f;e="<span "+e+g+h+' style="z-index:1;width:'+d.width+"px; height:"+d.height+"px;"+f+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d.src+"', sizingMethod='scale');\"></span>";d.outerHTML=e;b-=1}}}function AC_AddExtension(b,d){return b.indexOf("?")!=-1?b.replace(/\?/,d+"?"):b+d}
function AC_Generateobj(b,d,e){var g="<object ";for(var h in b)g+=h+'="'+b[h]+'" ';g+=">";for(h in d)g+='<param name="'+h+'" value="'+d[h]+'" /> ';g+="<embed ";for(h in e)g+=h+'="'+e[h]+'" ';g+=" ></embed></object>";document.write(g)}function AC_FL_RunContent(){var b=AC_GetArgs(arguments,"","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(b.objAttrs,b.params,b.embedAttrs)}
function AC_SW_RunContent(){var b=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(b.objAttrs,b.params,b.embedAttrs)}
function AC_GetArgs(b,d,e,g,h){var f={};f.embedAttrs={};f.params={};f.objAttrs={};for(var j=0;j<b.length;j+=2){var k=b[j].toLowerCase();switch(k){case "classid":break;case "pluginspage":f.embedAttrs[b[j]]=b[j+1];break;case "src":case "movie":b[j+1]=AC_AddExtension(b[j+1],d);f.embedAttrs.src=b[j+1];f.params[e]=b[j+1];break;case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblClick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":case "onbeforedeactivate":case "ondeactivate":case "type":case "codebase":f.objAttrs[b[j]]=b[j+
1];break;case "width":case "height":case "align":case "vspace":case "hspace":case "class":case "title":case "accesskey":case "flashVars":f.embedAttrs[b[j]]=f.objAttrs[b[j]]=b[j+1];break;case "allowScriptAccess":f.embedAttrs[b[j]]=f.objAttrs[b[j]]=b[j+1];break;case "name":case "id":case "tabindex":f.embedAttrs[b[j]]=f.objAttrs[b[j]]=b[j+1];break;default:f.embedAttrs[b[j]]=f.params[b[j]]=b[j+1]}}f.objAttrs.classid=g;if(h)f.embedAttrs.type=h;return f}
function addColor(b,d,e){b=colorLevels[b];d=colorLevels[d];e=colorLevels[e];addColorValue(b,d,e)}function addColorValue(b,d,e){colorArray[colorArray.length]="#"+b+b+d+d+e+e}function setColor(b){var d=getObj(curId),e=getObj(curId+"field"),g=getObj("colorpicker");e.value=b;if(b==""){d.style.background=nocolor;d.style.color=nocolor}else{d.style.background=b;d.style.color=b}g.style.display="none";eval(getObj(curId+"field").title)}
function setDiv(){if(document.createElement){var b=document.createElement("div");if(typeof b.innerHTML=="string"){genColors();b.id="colorpicker";b.style.position="absolute";b.style.display="none";b.style.border="#000000 1px solid";b.style.background="#FFFFFF";b.innerHTML=getColorTable();document.body.appendChild(b);divSet=true}}}
function pickColor(b){divSet||setDiv();var d=getObj("colorpicker");if(b==curId&&d.style.display=="block")d.style.display="none";else{curId=b;b=getObj(b);d.style.top=getAbsoluteOffsetTop(b)+20+"px";d.style.left=getAbsoluteOffsetLeft(b)+"px";d.style.display="block"}}
function genColors(){addColorValue("0","0","0");addColorValue("3","3","3");addColorValue("6","6","6");addColorValue("8","8","8");addColorValue("9","9","9");addColorValue("A","A","A");addColorValue("C","C","C");addColorValue("E","E","E");addColorValue("F","F","F");for(a=1;a<colorLevels.length;a++)addColor(0,0,a);for(a=1;a<colorLevels.length-1;a++)addColor(a,a,5);for(a=1;a<colorLevels.length;a++)addColor(0,a,0);for(a=1;a<colorLevels.length-1;a++)addColor(a,5,a);for(a=1;a<colorLevels.length;a++)addColor(a,
0,0);for(a=1;a<colorLevels.length-1;a++)addColor(5,a,a);for(a=1;a<colorLevels.length;a++)addColor(a,a,0);for(a=1;a<colorLevels.length-1;a++)addColor(5,5,a);for(a=1;a<colorLevels.length;a++)addColor(0,a,a);for(a=1;a<colorLevels.length-1;a++)addColor(a,5,5);for(a=1;a<colorLevels.length;a++)addColor(a,0,a);for(a=1;a<colorLevels.length-1;a++)addColor(5,a,5);return colorArray}
function getColorTable(){var b=colorArray,d="";d+='<table border="0" cellspacing="0" cellpadding="0">';for(i=0;i<b.length;i++){if(i%perline==0)d+="<tr>";d+='<td><div style="width:15px;height:15px;cursor:pointer;background-color:'+b[i]+'" onClick="javascript:setColor(\''+b[i]+"')\"></td>";if(i%perline==perline-1)d+="</tr>"}if(i%perline!=0)d+="</tr>";d+="</table>";return d}
function relateColor(b,d){var e=getObj(b);if(d==""){e.style.background=nocolor;e.style.color=nocolor}else{e.style.background=d;e.style.color=d}eval(getObj(b+"field").title)}function getAbsoluteOffsetTop(b){var d=b.offsetTop;for(b=b.offsetParent;b!=document.body;){d+=b.offsetTop;b=b.offsetParent}return d}function getAbsoluteOffsetLeft(b){var d=b.offsetLeft;for(b=b.offsetParent;b!=document.body;){d+=b.offsetLeft;b=b.offsetParent}return d}
function generate(){var b=document.getElementById("cat").value,d=document.getElementById("p01field").value.replace("#",""),e=document.getElementById("p02field").value.replace("#",""),g=document.getElementById("p03field").value.replace("#","");b="ct="+b+"&bkgd="+d+"&text="+e+"&link="+g;d=new Array(500,430,350,250);e=new Array(160,160,160,320);for(g=1;g<=4;g++){var h="iframe"+g+".php?",f="/moonv01/"+h,j=document.getElementById("escorts"+g),k=document.getElementById("iframe"+g+"_code");j.contentWindow.document.location.href=
f+b;k.value="<iframe src='http://www.gemidos.com.ar/moonv01/"+h+b+"' width='"+d[g-1]+"' height='"+e[g-1]+"' frameborder='0' scrolling='no'></iframe>"}};
function cambiar(id){	document.getElementById("img_"+id).src="http://content.gemidos.com.ar/images/videos/play.png"}
function cambiar_f(id){	document.getElementById("img_"+id).src="http://content.gemidos.com.ar/images/videos/play_o.png"}

