function show_hotel_details(page_idx){
	
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth-16;
  winH = window.innerHeight-16;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
 
 	if(document.body.scrollHeight > document.body.offsetHeight)
	{
	  
	 winW = document.body.scrollWidth-2;
	 winH = document.body.scrollHeight-3;
	  
 	}
	else
 	{
	  winW = document.body.offsetWidth-2;
	  winH = document.body.offsetHeight-3;
	  
	}  
 }
}

//alert(winW)

document.getElementById("screen_fade_div").style.width=winW;

animate_action = "fade=1,height=" + winH + "px"
animatedcollapse.addDiv("screen_fade_div", animate_action);

animatedcollapse.init();
	
	Pgurl = "/loading_page.asp";
	ID_Name = "screen_fade_div"
	ajaxPage(Pgurl,ID_Name);
	
	Pgurl = "/hotel_page.asp?pageidx=" + page_idx;
	ID_Name = "screen_fade_div"
	ajaxPage(Pgurl,ID_Name);

	animatedcollapse.show('screen_fade_div');
	scroll(0,0);
	//animatedcollapse.hide('screen_fade_div');

}
/////////#############################################################################
/////////##############################################################################
function ajaxPage(Pgurl,ID_Name)
  {  
  var xmlHttp;
  try
    {    // Firefox, Opera 8.0+, Safari    
	xmlHttp=new XMLHttpRequest();   
	 }
  catch (e)
    {    // Internet Explorer
	  try
      {      
	  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	   }
    catch (e)
      {
	       try
        {
		       xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			           }
      catch (e)
        {       
		 alert("Your browser does not support AJAX!");
		  return false; 
		   }
		 }
		}
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
        //document.getElementById(ID_Name).innerHTML=xmlHttp.responseText;
        document.getElementById(ID_Name).innerHTML=xmlHttp.responseText;
		ajax_processing = false;

        }
      }
    xmlHttp.open("GET",Pgurl,true);
    xmlHttp.send(null);  
	}
/////////#############################################################################
/////////#############################################################################
function show_Tncs(page_idx){
	
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth-16;
  winH = window.innerHeight-16;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
 
 	if(document.body.scrollHeight > document.body.offsetHeight)
	{
	  
	 winW = document.body.scrollWidth-2;
	 winH = document.body.scrollHeight-3;
	  
 	}
	else
 	{
	  winW = document.body.offsetWidth-2;
	  winH = document.body.offsetHeight-3;
	  
	}  
 }
}

//alert(winH)

animate_action = "fade=1,height=" + winH + "px"
animatedcollapse.addDiv('screen_fade_div', animate_action);

animatedcollapse.init();
document.getElementById("screen_fade_div").style.width=winW;
	
	Pgurl = "/loading_page.asp";
	ID_Name = "screen_fade_div"
	ajaxPage(Pgurl,ID_Name);
	
	Pgurl = "/hotel_page.asp?pageidx=" + page_idx;
	ID_Name = "screen_fade_div"
	ajaxPage(Pgurl,ID_Name);

	animatedcollapse.show('screen_fade_div');
	scroll(0,0);
	//animatedcollapse.hide('screen_fade_div');

}

