// JavaScript Document
var myrandom=Math.floor(Math.random()*11)
function GetofficeItems(page)
{	
	document.getElementById('FeaturedItemsBox_new').innerHTML='<div align="center" style="padding:10px"><img src="big-ajax-loader.gif" /></div>';
	
	xmlHttpFeaturedNew=GetXmlHttpObjectNew()	
	if (xmlHttpFeaturedNew==null){
		 alert ("Browser does not support HTTP Request")
		 return
	}	
	var url="http://www.atamimi.com/office.php?page="+page;	

	xmlHttpFeaturedNew.onreadystatechange=FeaturedNewStateChanged	
	divnew = 'FeaturedItemsBox_new';
	xmlHttpFeaturedNew.open("GET",url + "&rand=" + myrandom,true)		
	xmlHttpFeaturedNew.send(null) 		
}

function GetmemberItems(page)
{
	
	document.getElementById('FeaturedItemsBox').innerHTML='<div align="center" style="padding:10px"><img src="big-ajax-loader.gif" /></div>';
	
	xmlHttpFeaturedOld=GetXmlHttpObjectOld()	
	if (xmlHttpFeaturedOld==null){
		 alert ("Browser does not support HTTP Request")
		 return
	}	
	var url="http://www.atamimi.com/members.php?page="+page;	

	xmlHttpFeaturedOld.onreadystatechange=FeaturedOldStateChanged	
	divold = 'FeaturedItemsBox';
	xmlHttpFeaturedOld.open("GET",url + "&rand=" + myrandom,true)		
	xmlHttpFeaturedOld.send(null) 		
}
function GetmenuItems(page)
{
	
	document.getElementById('menu').innerHTML='<div align="center" style="padding:10px"><img src="big-ajax-loader.gif" /></div>';
	
	xmlHttpFeaturedmenu=GetXmlHttpObjectmenu()	
	if (xmlHttpFeaturedmenu==null){
		 alert ("Browser does not support HTTP Request")
		 return
	}	
	var url="http://www.atamimi.com/page.php?page="+page;	

	xmlHttpFeaturedmenu.onreadystatechange=FeaturedmenuStateChanged	
	divmenu = 'menu';
	xmlHttpFeaturedmenu.open("GET",url + "&rand=" + myrandom,true)		
	xmlHttpFeaturedmenu.send(null) 		
}
function GetlandpageItems(page)
{
	
	document.getElementById('menu').innerHTML='<div align="center" style="padding:10px"><img src="big-ajax-loader.gif" /></div>';
	
	xmlHttpFeaturedlandpage=GetXmlHttpObjectlandpage()	
	if (xmlHttpFeaturedlandpage==null){
		 alert ("Browser does not support HTTP Request")
		 return
	}	
	var url="http://www.atamimi.com/land.php?page="+page;	

	xmlHttpFeaturedlandpage.onreadystatechange=FeaturedlandpageStateChanged	
	divlandpage = 'menu';
	xmlHttpFeaturedlandpage.open("GET",url + "&rand=" + myrandom,true)		
	xmlHttpFeaturedlandpage.send(null) 		
}
function GetbulidpageItems(page)
{
	
	document.getElementById('menu').innerHTML='<div align="center" style="padding:10px"><img src="big-ajax-loader.gif" /></div>';
	
	xmlHttpFeaturedlandpage=GetXmlHttpObjectlandpage()	
	if (xmlHttpFeaturedlandpage==null){
		 alert ("Browser does not support HTTP Request")
		 return
	}	
	var url="http://www.atamimi.com/building.php?page="+page;	

	xmlHttpFeaturedlandpage.onreadystatechange=FeaturedlandpageStateChanged	
	divlandpage = 'menu';
	xmlHttpFeaturedlandpage.open("GET",url + "&rand=" + myrandom,true)		
	xmlHttpFeaturedlandpage.send(null) 		
}
function GetotheradpageItems(page)
{
	
	document.getElementById('menu').innerHTML='<div align="center" style="padding:10px"><img src="big-ajax-loader.gif" /></div>';
	
	xmlHttpFeaturedlandpage=GetXmlHttpObjectlandpage()	
	if (xmlHttpFeaturedlandpage==null){
		 alert ("Browser does not support HTTP Request")
		 return
	}	
	var url="http://www.atamimi.com/other.php?page="+page;	

	xmlHttpFeaturedlandpage.onreadystatechange=FeaturedlandpageStateChanged	
	divlandpage = 'menu';
	xmlHttpFeaturedlandpage.open("GET",url + "&rand=" + myrandom,true)		
	xmlHttpFeaturedlandpage.send(null) 		
}
function GetvillapageItems(page)
{
	
	document.getElementById('menu').innerHTML='<div align="center" style="padding:10px"><img src="big-ajax-loader.gif" /></div>';
	
	xmlHttpFeaturedvillapage=GetXmlHttpObjectvillapage()	
	if (xmlHttpFeaturedvillapage==null){
		 alert ("Browser does not support HTTP Request")
		 return
	}	
	var url="http://www.atamimi.com/villaad.php?page="+page;	

	xmlHttpFeaturedvillapage.onreadystatechange=FeaturedvillapageStateChanged	
	divvillapage = 'menu';
	xmlHttpFeaturedvillapage.open("GET",url + "&rand=" + myrandom,true)		
	xmlHttpFeaturedvillapage.send(null) 		
}
function GetvillaItems(adid)
{
	
	document.getElementById('menu').innerHTML='<div align="center" style="padding:10px"><img src="big-ajax-loader.gif" /></div>';
	
	xmlHttpFeaturedvilla=GetXmlHttpObjectvilla()	
	if (xmlHttpFeaturedvilla==null){
		 alert ("Browser does not support HTTP Request")
		 return
	}	
	var url="http://www.atamimi.com/villaadad.php?adid="+adid;	

	xmlHttpFeaturedvilla.onreadystatechange=FeaturedvillaStateChanged	
	divvilla = 'menu';
	xmlHttpFeaturedvilla.open("GET",url + "&rand=" + myrandom,true)		
	xmlHttpFeaturedvilla.send(null) 		
}
function GetotheradItems(adid)
{
	
	document.getElementById('menu').innerHTML='<div align="center" style="padding:10px"><img src="big-ajax-loader.gif" /></div>';
	
	xmlHttpFeaturedvilla=GetXmlHttpObjectvilla()	
	if (xmlHttpFeaturedvilla==null){
		 alert ("Browser does not support HTTP Request")
		 return
	}	
	var url="http://www.atamimi.com/otherad.php?adid="+adid;	

	xmlHttpFeaturedvilla.onreadystatechange=FeaturedvillaStateChanged	
	divvilla = 'menu';
	xmlHttpFeaturedvilla.open("GET",url + "&rand=" + myrandom,true)		
	xmlHttpFeaturedvilla.send(null) 		
}
function GetbulidItems(adid)
{
	
	document.getElementById('menu').innerHTML='<div align="center" style="padding:10px"><img src="big-ajax-loader.gif" /></div>';
	
	xmlHttpFeaturedland=GetXmlHttpObjectland()	
	if (xmlHttpFeaturedland==null){
		 alert ("Browser does not support HTTP Request")
		 return
	}	
	var url="http://www.atamimi.com/bulidadad.php?adid="+adid;	

	xmlHttpFeaturedland.onreadystatechange=FeaturedlandStateChanged	
	divland = 'menu';
	xmlHttpFeaturedland.open("GET",url + "&rand=" + myrandom,true)		
	xmlHttpFeaturedland.send(null) 		
}
function GetlandItems(adid)
{
	
	document.getElementById('menu').innerHTML='<div align="center" style="padding:10px"><img src="big-ajax-loader.gif" /></div>';
	
	xmlHttpFeaturedland=GetXmlHttpObjectland()	
	if (xmlHttpFeaturedland==null){
		 alert ("Browser does not support HTTP Request")
		 return
	}	
	var url="http://www.atamimi.com/landad.php?adid="+adid;	

	xmlHttpFeaturedland.onreadystatechange=FeaturedlandStateChanged	
	divland = 'menu';
	xmlHttpFeaturedland.open("GET",url + "&rand=" + myrandom,true)		
	xmlHttpFeaturedland.send(null) 		
}
function FeaturedNewStateChanged()
{ 	
	if (xmlHttpFeaturedNew.readyState==4 || xmlHttpFeaturedNew.readyState=="complete")
	 { 
		document.getElementById(divnew).innerHTML=xmlHttpFeaturedNew.responseText;
	 } 
}

function FeaturedOldStateChanged()
{ 	
	if (xmlHttpFeaturedOld.readyState==4 || xmlHttpFeaturedOld.readyState=="complete")
	 { 
		document.getElementById(divold).innerHTML=xmlHttpFeaturedOld.responseText;
	 } 
}
function FeaturedmenuStateChanged()
{ 	
	if (xmlHttpFeaturedmenu.readyState==4 || xmlHttpFeaturedmenu.readyState=="complete")
	 { 
		document.getElementById(divmenu).innerHTML=xmlHttpFeaturedmenu.responseText;
	 } 
}
function FeaturedvillaStateChanged()
{ 	
	if (xmlHttpFeaturedvilla.readyState==4 || xmlHttpFeaturedvilla.readyState=="complete")
	 { 
		document.getElementById(divvilla).innerHTML=xmlHttpFeaturedvilla.responseText;
	 } 
}
function FeaturedlandStateChanged()
{ 	
	if (xmlHttpFeaturedland.readyState==4 || xmlHttpFeaturedland.readyState=="complete")
	 { 
		document.getElementById(divland).innerHTML=xmlHttpFeaturedland.responseText;
	 } 
}
function FeaturedlandpageStateChanged()
{ 	
	if (xmlHttpFeaturedlandpage.readyState==4 || xmlHttpFeaturedlandpage.readyState=="complete")
	 { 
		document.getElementById(divlandpage).innerHTML=xmlHttpFeaturedlandpage.responseText;
	 } 
}
function FeaturedvillapageStateChanged()
{ 	
	if (xmlHttpFeaturedvillapage.readyState==4 || xmlHttpFeaturedvillapage.readyState=="complete")
	 { 
		document.getElementById(divvillapage).innerHTML=xmlHttpFeaturedvillapage.responseText;
	 } 
}
function GetXmlHttpObjectNew()
{
	var xmlHttpFeaturedNew=null;
	try{
		 //Firefox, Opera 8.0+, Safari
		 xmlHttpFeaturedNew=new XMLHttpRequest();
	 }
	catch (e){
		 //Internet Explorer
		 try{
		  xmlHttpFeaturedNew=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		 catch (e){
		  xmlHttpFeaturedNew=new ActiveXObject("Microsoft.XMLHTTP");
		  }
	 }
	return xmlHttpFeaturedNew;
}


function GetXmlHttpObjectOld()
{
	var xmlHttpFeaturedOld=null;
	try{
		 //Firefox, Opera 8.0+, Safari
		 xmlHttpFeaturedOld=new XMLHttpRequest();
	 }
	catch (e){
		 //Internet Explorer
		 try{
		  xmlHttpFeaturedOld=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		 catch (e){
		  xmlHttpFeaturedOld=new ActiveXObject("Microsoft.XMLHTTP");
		  }
	 }
	return xmlHttpFeaturedOld;
}
function GetXmlHttpObjectmenu()
{
	var xmlHttpFeaturedmenu=null;
	try{
		 //Firefox, Opera 8.0+, Safari
		 xmlHttpFeaturedmenu=new XMLHttpRequest();
	 }
	catch (e){
		 //Internet Explorer
		 try{
		  xmlHttpFeaturedmenu=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		 catch (e){
		  xmlHttpFeaturedmenu=new ActiveXObject("Microsoft.XMLHTTP");
		  }
	 }
	return xmlHttpFeaturedmenu;
}
function GetXmlHttpObjectvilla()
{
	var xmlHttpFeaturedvilla=null;
	try{
		 //Firefox, Opera 8.0+, Safari
		 xmlHttpFeaturedvilla=new XMLHttpRequest();
	 }
	catch (e){
		 //Internet Explorer
		 try{
		  xmlHttpFeaturedvilla=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		 catch (e){
		  xmlHttpFeaturedvilla=new ActiveXObject("Microsoft.XMLHTTP");
		  }
	 }
	return xmlHttpFeaturedvilla;
}
function GetXmlHttpObjectland()
{
	var xmlHttpFeaturedland=null;
	try{
		 //Firefox, Opera 8.0+, Safari
		 xmlHttpFeaturedland=new XMLHttpRequest();
	 }
	catch (e){
		 //Internet Explorer
		 try{
		  xmlHttpFeaturedland=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		 catch (e){
		  xmlHttpFeaturedland=new ActiveXObject("Microsoft.XMLHTTP");
		  }
	 }
	return xmlHttpFeaturedland;
}
function GetXmlHttpObjectlandpage()
{
	var xmlHttpFeaturedlandpage=null;
	try{
		 //Firefox, Opera 8.0+, Safari
		 xmlHttpFeaturedlandpage=new XMLHttpRequest();
	 }
	catch (e){
		 //Internet Explorer
		 try{
		  xmlHttpFeaturedlandpage=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		 catch (e){
		  xmlHttpFeaturedlandpage=new ActiveXObject("Microsoft.XMLHTTP");
		  }
	 }
	return xmlHttpFeaturedlandpage;
}
function GetXmlHttpObjectvillapage()
{
	var xmlHttpFeaturedvillapage=null;
	try{
		 //Firefox, Opera 8.0+, Safari
		 xmlHttpFeaturedvillapage=new XMLHttpRequest();
	 }
	catch (e){
		 //Internet Explorer
		 try{
		  xmlHttpFeaturedvillapage=new ActiveXObject("Msxml2.XMLHTTP");
		  }
		 catch (e){
		  xmlHttpFeaturedvillapage=new ActiveXObject("Microsoft.XMLHTTP");
		  }
	 }
	return xmlHttpFeaturedvillapage;
}
function ChangeNext(x)
{

	if(x.src != "hp_motors_next_dis.gif")
	{
		x.src='hp_motors_next_press.gif'
		//refresh_ad();
	}
}

function ChangeBack(x)
{
	if(x.src != "hp_motors_back_dis.gif")
	{
		x.src='hp_motors_back_press.gif'
		//refresh_ad();
	}
}