// JavaScript Document

// script for shadow
var ua = navigator.userAgent.toLowerCase(); 
this.ua= ua;
this.isIE        = ( (ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1) ); 
this.versionMinor = parseFloat(navigator.appVersion); 
document.write ("<style>")
if (this.isIE && this.versionMinor >= 4) {
	document.write ("#left_bottom {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/oferta_l_2.png'); width:7px; height:83px;}") 
	document.write ("#right_bottom {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/oferta_r_3.png'); width:6px; height:83px;}") 
	document.write ("#left_corner {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/oferta_bl_2.png'); width:7px; height:17px;}") 	
	document.write ("#right_corner {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/oferta_br_2.png'); width:6px; height:17px;}")
	document.write ("#bottom_left {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/oferta_bl.png'); width:127px; height:8px;}")	
	document.write ("#bottom_right {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/oferta_br.png'); width:128px; height:8px;}")
	//document.write ("#bottom {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/oferta_b.png', sizingMethod='scale')}")

	document.write ("#oferta_top_orn {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/oferta_t_orn.png'); width:765px; height:22px;}")
	document.write ("#foot_orn {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/foot_t_orn_2.png'); width:213px; height:8px;}")
	document.write ("#submenu_top {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/submenu_top.png'); width:200px; height:26px;}")	
	document.write ("#submenu_bottom {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/submenu_bottom.png'); width:200px; height:34px;}")		
	document.write ("#oferta_top {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/oferta_t_orn_interior.png'); width:200px; height:11px;}")

}	
else{
	document.write ("#left_bottom { background-image:url(images/oferta_l_2.png); width:7px; height:83px;}") 
	document.write ("#right_bottom { background-image:url(images/oferta_r_3.png); width:6px; height:83px;}") 
	document.write ("#left_corner { background-image:url(images/oferta_bl_2.png); width:7px; height:17px;}") 
	document.write ("#right_corner { background-image:url(images/oferta_br_2.png); width:6px; height:17px;}") 	
	document.write ("#bottom_left { background-image:url(images/oferta_bl.png); width:127px; height:8px;}") 	
	document.write ("#bottom_right { background-image:url(images/oferta_br.png); width:128px; height:8px;}") 	
	//document.write ("#bottom { background-image:url(images/oferta_b.png);  height:17px;}") 		
	document.write ("#oferta_top_orn { background-image:url(images/oferta_t_orn.png); width:765px; height:22px; }") 	
	document.write ("#foot_orn { background-image:url(images/foot_t_orn_2.png); width:213px; height:8px;}") 		
	document.write ("#submenu_top { background-image:url(images/submenu_top.png); width:200px; height:26px;}") 		
	document.write ("#submenu_bottom { background-image:url(images/submenu_bottom.png); width:200px; height:34px;}") 		
	document.write ("#oferta_top { background-image:url(images/oferta_t_orn_interior.png); width:200px; height:11px;}") 	
	
}	
document.write ("</style>")
// ------------------------------

function PopupImage(img, tytul, img_width, img_height) {
  titre="Hotel Alpin";
  if(img_width < img_height) { 
	var x = img_width+316;
	var y = img_height+306;	
  } else {
	var x = img_width+116;
	var y = img_height+306;
  }
  var winl = (screen.width-y)/2;
  var wint = (screen.height-x)/2;
  w=open("img_popup.php?filename="+img+"&tytul="+tytul,'image','top='+wint+',left='+winl+',width='+x+',height='+y+',toolbar=no,scrollbars=auto,resizable=no,status=yes');
}

