if(!Array.indexOf){Array.prototype.indexOf=function(b){for(var a=0;a<this.length;a++){if(this[a]==b){return a}}return -1}}function iA(){var b,d,h,l,g,a,h,k;g="";b=unescape(readCookie("lastlisting"));d=b.split(",");if(typeof(iid)!=="undefined"){a=iid}else{a=document.location.href.split(separator);a=a[a.length-1]}h=d.indexOf(a);if(d.length-1>h+1){TrueNext="/p-"+separator+d[h+1]}else{TrueNext=""}if(h-1>-1){TruePrev="/p-"+separator+d[h-1]}else{TruePrev=""}if(h==-1){}if(TruePrev.length>0){g+='<a rel="nofollow" href="'+TruePrev+'" class="wPrev"></a>'}else{g+='<a rel="nofollow" href="javascript:void(0)" class="wPrevInactive"></a>'}if(TrueNext.length>0){g+='<a rel="nofollow" href="'+TrueNext+'" class="wNext"></a>'}else{g+='<a rel="nofollow" href="javascript:void(0)" class="wNextInactive"></a>'}try{l=document.getElementById("ResourceBody");l.innerHTML=l.innerHTML+'<div class="alert" id="bodyflow" style="width:300px; font-size: 11px !important; text-align: center; margin-left: 150px; padding: 0px 0px 7px 0px !important;"><b>'+l143+":</b><br/>"+g+"</div>"}catch(j){}k=document.getElementById("flowControls");k.innerHTML=k.innerHTML+g}function ill(){var c,a,b;try{b=[];if(pageType===1){c=unescape(readCookie("LG_last"));if(c.length>10){a=document.getElementById("flowControls");b.push("<");b.push("a");b.push(' title="'+l144+'"');b.push(" hr");b.push("ef");b.push('="');b.push(c);b.push('" class="wbutton wll">');b.push("<");b.push("/");b.push("a");b.push(">");b.push(a.innerHTML);a.innerHTML=b.join("")}}}catch(d){}}var serviceMenuTimeout={};var showMoreServices=function(){clearTimeout(serviceMenuTimeout);serviceMenuTimeout=setTimeout(function(){document.getElementById("more_services_list").style.display="block"},500)};var hideMoreServices=function(){clearTimeout(serviceMenuTimeout);serviceMenuTimeout=setTimeout(function(){document.getElementById("more_services_list").style.display="none"},800)};function IESelectHack(b){var a=navigator.userAgent.toLowerCase();if(/msie/.test(a)&&!/opera/.test(a)&&/6.0/.test(a)){$('<iframe style="display:block;position:absolute;top:0;left:0;z-index:-1;filter:mask();width:expression(this.parentNode.offsetWidth);height:expression(this.parentNode.offsetHeight)"/>').insertAfter(b)}}function me(){this.style.background="#A7EFFE"}function ml(){this.style.background="#FFFFFF"}function f(c){var a,b;t=this.getElementsByTagName("a").item(0).href;if(typeof c!=="undefined"){if(typeof c.target!=="undefined"){a=c.target}}else{a=event.srcElement}b="";b=a.tagName.toLowerCase();if(b!=="a"){document.location.href=t;return false}}function createCookie(a,k,l){var j,g,d,n;j=[];n=[];if(typeof(lg_domain)==="undefined"){j=document.location.host.split(".");for(d in j){if(j.hasOwnProperty(d)){if(d>0){n.push(j[d])}}}lg_domain=n.join(".")}if(l){var c=new Date();c.setTime(c.getTime()+(l*24*60*60*1000));var b="; expires="+c.toGMTString()}else{var b=""}document.cookie=a+"="+k+b+"; path=/; domain=."+lg_domain}function readCookie(b){var g=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var h=a[d];while(h.charAt(0)==" "){h=h.substring(1,h.length)}if(h.indexOf(g)==0){return h.substring(g.length,h.length)}}return null}function wic(){var c,b,a,d;if(ci>=ni){ci=0}else{if(ci<0){ci=ni-1}}ci=ci+1;c=/_[0-9]thumb.jpg/;d=document.getElementById("ImgagenThumbnail");b=d.src;b=b.replace(c,"_"+ci+"thumb.jpg");a=new Image();a.src=b;a.alt="";d.src=a.src;if(wir){setInterval("wic()",2000);wir=false}}if(typeof(displayarrows)!=="undefined"){try{ill();iA()}catch(e2){}}else{try{var tmplist,m,t,tmpid;tmplist="";m=document.getElementById("LGM");if(m===null){m=document.getElementById("LGMG");m=m.getElementsByTagName("div");for(i=0;i<m.length;i++){tmpid=m.item(i).id;t=m.item(i).getElementsByTagName("a");t=t[0];if(tmpid.length>5){if(document.getElementById(tmpid).className==="homeitemCont"){document.getElementById(tmpid).onmousedown=f;document.getElementById(tmpid).onmouseenter=me;document.getElementById(tmpid).onmouseleave=ml;tmpid=tmpid.substr(1,tmpid.length);tmplist+=tmpid+","}}}}else{m=m.getElementsByTagName("li");for(i=0;i<m.length;i++){tmpid=m.item(i).id;document.getElementById(tmpid).onmousedown=f;document.getElementById(tmpid).onmouseenter=me;document.getElementById(tmpid).onmouseleave=ml;tmpid=tmpid.substr(1,tmpid.length);tmplist+=tmpid+","}}if(tmplist.length>5){createCookie("LG_last",document.location.href,0);createCookie("lastlisting",tmplist,0)}}catch(e){}}lgMenu=function(){var b,g,h,a,c;b="";IESelectHack("#more_services_list");document.getElementById("more_services_list").style.zIndex="5000";document.getElementById("more_services").style.display="block";document.getElementById("more_services").onclick=function(){document.getElementById("more_services_list").style.display="block"};document.getElementById("more_services").onmouseover=function(){showMoreServices()};document.getElementById("more_services").onmouseout=function(){hideMoreServices()};document.getElementById("more_services_list").onmouseover=function(){showMoreServices()};document.getElementById("more_services_list").onmouseout=function(){hideMoreServices()};for(g in lgm){if(lgm.hasOwnProperty(g)){h=lgm[g];b=b+'<li pk="'+g+'" c="'+cdm+'" s="'+h.s+'">'+decodeURIComponent(h.t)+"</li>"}}document.getElementById("more_services_list").innerHTML=b;a=document.getElementById("more_services_list");a=a.getElementsByTagName("li");for(c in a){a[c].onclick=function(){var d;d="/c-"+this.getAttribute("s")+"-"+this.getAttribute("c")+"-"+sp+this.getAttribute("pk")+"W0W01W0";document.location.href=d}}};lgMenu();