
var ieop4=0;
var op_id4=0;

function incropacity4(obj4){
	if (IE4 || IE5){
		maxop = 80;
	} else {
		maxop = 100;
	}
	
	if(ieop4<=maxop){
		ieop4+=10;
		if(IE4 || IE5)obj4.style.filter="alpha(opacity="+ieop4+")";
		if(NS6)obj4.style.MozOpacity=ieop4/100;
		op_id4=setTimeout(function(){incropacity4(obj4)}, 20);
	}
}

function decropacity4(obj4){		
	if(ieop4>=0){
		ieop4-=10;
		if(IE4 || IE5)obj4.style.filter="alpha(opacity="+ieop4+")";
		if(NS6)obj4.style.MozOpacity=ieop4/100;
		op_id4=setTimeout(function(){decropacity4(obj4)}, 20);
	} 
	
	if (ieop4<1){
		obj4.style.display="none";
	}
}

function overlay4(subobjstr4){
	if (document.getElementById){
		var subobj4=document.getElementById(subobjstr4)
		
		if(IE4 || IE5) {
			opac_str4 = subobj4.style.filter;
			opc_value4 = parseInt(opac_str4.substr(14, 2));
						
			if (opc_value4 <= 0 || isNaN(opc_value4)){
				ieop4 = 0;
				subobj4.style.display="block"
			} else {
				ieop4 = 80;
			}
		}
		
		if(NS6) {
			if (subobj4.style.opacity <= 0){
				ieop4 = 0;
				subobj4.style.display="block"
			} else {
				ieop4 = 100;
			}
		}
					
		if (ieop4 == 0){
			incropacity4(subobj4);
		} else {
			decropacity4(subobj4);
		}
	
		return false
	}
	else
	return true
}

function overlayclose4(subobj4){
	decropacity4(document.getElementById(subobj4));
}

function getdesc(hotel, promo_id)
{
	var xmlHttp;
    var returnedtext;
   	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)
        { 
			returnedtext = xmlHttp.responseText;
										
			if (document.getElementById('promo_text')){						
				var inputElement = document.getElementById('promo_text');
				inputElement.innerHTML = returnedtext;
			}				
         }
    }
	var strTS = new Date().toString().replace(/(\s|\:)/gi,"");	
	filename = hotel+"_promo"+promo_id+".htm";
	xmlHttp.open("GET",filename+"?seat=" + "&"+strTS ,true);
	xmlHttp.send(null);
}
