// Browserchecks
safari = (navigator.appVersion.indexOf("Safari")!=-1) ? true : false;
moz = (navigator.appName.indexOf("Netscape")!=-1) ? true : false;
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
opera = (navigator.userAgent.indexOf("Opera")!=-1) ? true : false;
ie55 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.5")!=-1)) ? true : false;
ie6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6")!=-1)) ? true : false;
isIE = ((document.all)&&(navigator.appVersion.indexOf("MSIE")!=-1)) ? true : false;
ie7plus = ((document.all)&&(navigator.appVersion.indexOf("MSIE")!=-1)&&(navigator.appVersion.charAt(navigator.appVersion.indexOf('MSIE')+5)>=7)) ? true : false;
IEmac = ((document.all)&&(isMac)) ? true : false;
NS4 = (document.layers) ? true : false;

//if (isMac) document.write('<link rel="stylesheet" href="{URL--Mac_addon_styles}" type="text/css" />');  
var viewWidth = getViewportWidth();
var viewHeight = getViewportHeight();

// Liefert Breite des nutzbaren Sichtbereichs
function getViewportWidth()
{
	if (document.body) return document.body.offsetWidth;
	if (document.documentElement) return document.documentElement.offsetWidth;
	var w = self.innerWidth || (document.documentElement.clientWidth || document.body.clientWidth);
	if (isIE) return w-16;	//im IE ist der Scroller immer sichtbar
	else return w;
}

// Liefert Hoehe des nutzbaren Sichtbereichs
function getViewportHeight()
{
	var h = self.innerHeight || (document.documentElement.clientHeight || document.body.clientHeight);
	return h;
}

function size()
{
	viewWidth = getViewportWidth();
	viewHeight = getViewportHeight();
	
	$("content").style.width = viewWidth+"px";
	$("content_iframe").style.width = viewWidth+"px";
	
	// alert($("content_iframe").style.width);	
	// alert(viewWidth+"\n"+viewHeight);
}
