<!--
// ==========================================================================
// Browsercheck
// ==========================================================================
<!--
function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4  

	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}
//-->

function getFrames(cU, bU, LinkId,SubLinkId){
	parent.content.location.href = cU;
	parent.bottom.location.href = bU;
	var locationStr = 'frame_navigation.php?link_id='+LinkId;
	if(SubLinkId)
		locationStr += '&sublink_id='+SubLinkId;

	if(getFrames.arguments[4]>=1)
		locationStr += '&sprache_id='+getFrames.arguments[4];
	self.location.href = locationStr;
	}

function PopWin(Url){
	window.open('http://www.sonnentherme.at/'+Url,'PopWin','width=440,height=400,top=219,left=325, status=yes');
	}
function ImagePopWin(ImSrc){
	//PopWin('http://www.sonnentherme.at/imagepopup.php?image='+ImSrc);
	PopWin('imagepopup.php?image='+ImSrc);
	}
	
function sa_bwcheck(){ 
  this.ver=navigator.appVersion
  this.agent=navigator.userAgent
  this.dom=document.getElementById?1:0
  this.opera5=this.agent.indexOf("Opera 5")>-1
  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
  this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
  this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
  this.ie=this.ie4||this.ie5||this.ie6
  this.mac=this.agent.indexOf("Mac")>-1
  this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
  this.ns4=(document.layers && !this.dom)?1:0;
  this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5)
  return this
}
bw=new sa_bwcheck() //Browsercheck object

// NS4 resize bug fix
if (bw.ns4) {var origWidth = window.innerWidth;var origHeight = window.innerHeight; window.onresize = reDo;}
function reDo() {if (window.innerWidth != origWidth || window.innerHeight != origHeight) location.reload();}

// ==========================================================================
// PopUp centered win with add. features
// ==========================================================================
function newWin(page, name, w, h, scroll) {
            var winl = (screen.width - w) / 2;
            var wint = (screen.height - h) / 2;
            winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
            win = window.open(page, name, winprops)
            if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

/** 
* change the style of the menu items for rollover events
* 
* @param	obj		the <TD> tag object
* @param	string	color from menu text in the <TD> tag
* @param	string	background color from the <TD> tag
* @param	string	cursor style attribute
* @author	Holger Schlaminger <holger.schlaminger@datenkraft.com> 
* @author	Josef Chr. Kaufmann <josef.kaufmann@datenkraft.com> 
* @version	1.01-01 28/07/2002 
*/ 
function hoverMenu(obj, color, colorBg, cursor) {
	if (!bw.ns4){ 
		if (colorBg != '')
			obj.style.backgroundColor = colorBg;
		if (cursor != '')
			obj.style.cursor = cursor;
		if (obj.children)
			obj.children[0].style.color = color;
	}
}

/** 
* change the style of the menu items for rollover events
* 
* require	cookie library from oReilly JavaScript Cookbook
* @author	Josef Chr. Kaufmann <josef.kaufmann@datenkraft.com> 
* @version	1.01-01 25/08/2002 
*/ 
function setShopCheckCookie() {
	if (GetCookie('ShopCheck') != 'true')
		SetCookie('ShopCheck', 'true', 0, '/');
}

//-->