// JavaScript Document

function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters)) 
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText 
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   }    
}
window.attachEvent("onload", correctPNG);


//function validate_This_Feedback(){
//	if(document.getElementById("Name_Feedback").value==""){
//		alert("Please Enter Your Name..!!!");
//		document.getElementById("Name_Feedback").focus();
//		return false;
//	}
//	if(document.getElementById("Email_Feedback").value==""){
//		alert("Please Enter Your Email Address..!!!");
//		document.getElementById("Email_Feedback").focus();
//		return false;
//	}
//	if(document.getElementById("Phone_Feedback").value==""){
//		alert("Please Enter Your Contact Number..!!!");
//		document.getElementById("Phone_Feedback").focus();
//		return false;
//	}
//	document.small_Form.method="post";
//	document.small_Form.action="http://www.hotels-delhitourism.com/submit_smallform.asp";
//	document.small_Form.submit();
//}
//function Show_Feedback(){
//	var newdiv = document.createElement('div'); 
//	var divIdName = 'Feedback_Div'; 
//	newdiv.setAttribute('id',divIdName); 
//	newdiv.style.position = "absolute"
//	
//	
//	
//	myContent = '<div style="width:220px;font-size:12px;font-family:Arial, Helvetica, sans-serif;color:#999999;"><img src="http://www.hotels-delhitourism.com/images/request_quote.png" width="220" height="42" id="fixedImg" style="float:right"><br />'; 
//	
//	myContent = myContent + '<div id="Feed_Back_Contents" style="overflow:hidden;padding:10px 0px;border:#CCC 1px solid;font-size:12px;font-family:Arial, Helvetica, sans-serif;color:#999999;background-color:#FFF; overflow:hidden;clear:both;">'
//	myContent = myContent + "<form name='small_Form'>"
//	myContent = myContent + "<label style='float: left; text-align: right; width:85px; margin:2px 3px 0px 0px; color:#999999;'>Name :</label>"
//    myContent = myContent + "<input name='Name_Feedback' type='text' id='Name_Feedback' style='border:1px solid #DDDDDD; font-size:11px; margin:4px 0px; width:120px; color:#999999; padding:2px 0px;' />"
//    myContent = myContent + "<label  style='float: left; text-align: right; width:85px; margin:2px 3px 0px 0px; color:#999999;'>E-mail :</label>"
//    myContent = myContent + "<input name='Email_Feedback' type='text' id='Email_Feedback' style='border:1px solid #DDDDDD; font-size:11px; margin:4px 0px; width:120px; color:#999999; padding:2px 0px;' />"
//    myContent = myContent + "<label  style='float: left; text-align: right; width:85px; margin:2px 3px 0px 0px; color:#999999;'>Phone :</label>"
//    myContent = myContent + "<input name='Phone_Feedback' type='text' id='Phone_Feedback' style='border:1px solid #DDDDDD; font-size:11px; margin:4px 0px; width:120px; color:#999999; padding:2px 0px;' />"
//    myContent = myContent + "<label  style='float: left; text-align: right; width:85px; margin:2px 3px 0px 0px; color:#999999;'>Requirement:</label>"
//    myContent = myContent + "<textarea name='Requirements_Feedback' cols='15' rows='4' id='Requirements_Feedback' style='border:1px solid #DDDDDD; font-size:11px; margin:4px 0px; width:120px; color:#999999; padding:2px 0px;'></textarea>"
//    myContent = myContent + "<input type='button' value='Submit' style=' float:right; clear:both; margin-right:5px; border:1px solid #D54500; background-color:#FF6820; color:#FFFFFF; cursor:pointer'  onclick='validate_This_Feedback();'  />"
//	myContent = myContent + "</form>"
//	myContent = myContent + '<div style="clear:both;">'
//	myContent = myContent + "</div>"
//	myContent = myContent + "</div>"
//	myContent = myContent + "</div>"
//	
//	
//	newdiv.innerHTML = myContent
//	newdiv.style.right = "0px"; 
//	newdiv.style.bottom = "0px"; 
//	document.body.appendChild(newdiv);
//	
//	Set_Middle_Feedback_Div();
//}
//
//setTimeout("Show_Feedback()",2000);
//function Set_Middle_Feedback_Div(){
//	var browser=navigator.appName;
//	
//	if(browser=="Netscape"){
//		document.getElementById("Feedback_Div").style.top = ((document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)) + (screen.height) - 390 + "px";
//	}
//	
//	if(browser=="Microsoft Internet Explorer"){
//		document.getElementById("Feedback_Div").style.top = ((document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)) + (screen.height) - 470 + "px";
//
//	}
//	if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
//		var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number
//		document.getElementById("Feedback_Div").style.top = ((document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)) + (screen.height) - 475 + "px";
//	}
//	
//	setTimeout("Set_Middle_Feedback_Div()",1);
//	
//	correctPNG_Feedback();
//}
//Hide_Feedbackand_Set();
//function Hide_Feedbackand_Set(){
//	document.getElementById("Feed_Back_Contents").style.display = "none";	
//}
//setTimeout("Set_Middle_Feedback_Div()",2000);
//
//
//function correctPNG_Feedback() // correctly handle PNG transparency in Win IE 5.5 & 6.
//{
//   var arVersion = navigator.appVersion.split("MSIE")
//   var version = parseFloat(arVersion[1])
//   if ((version >= 5.5) && (document.body.filters)) 
//   {
//      for(var i=0; i<document.images.length; i++)
//      {
//         var img = document.images[i]
//         var imgName = img.src.toUpperCase()
//         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
//         {
//            var imgID = (img.id) ? "id='" + img.id + "' " : ""
//            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
//            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
//            var imgStyle = "display:inline-block;" + img.style.cssText 
//            if (img.align == "left") imgStyle = "float:left;" + imgStyle
//            if (img.align == "right") imgStyle = "float:right;" + imgStyle
//            imgStyle = "cursor:hand;" + imgStyle
//            var strNewHTML = "<span " + imgID + imgClass + imgTitle
//            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
//            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
//            + "(src=\'" + img.src + "\', sizingMethod='scale');\" onclick='Show_Rest()'></span>" 
//            img.outerHTML = strNewHTML
//            i = i-1
//         }
//      }
//   }    
//}
//var my_Vars = 1
//
//function Show_Rest(){
//	my_Vars++;
//	if(my_Vars%2==0){
//		document.getElementById("Feed_Back_Contents").style.display="block";
//	}else{
//		document.getElementById("Feed_Back_Contents").style.display="none";
//	}
//}
