// JavaScript Document
// if IE5.5+ on Win32, then display PNGs with AlphaImageLoader
function inhaltBG(){
if ((browser.isIE55 || browser.isIE6up) && browser.isWin32) 
{
	var pngAlpha = true;
// else, if the browser can display PNGs normally, then do that
} else if ( (browser.isIE5up && browser.isMac) || (browser.isOpera && browser.isWin && browser.versionMajor >= 6) || (browser.isOpera && browser.isUnix && browser.versionMajor >= 6) || (browser.isOpera && browser.isMac && browser.versionMajor >= 5) || (browser.isOmniweb && browser.versionMinor >= 3.1) || (browser.isIcab && browser.versionMinor >= 1.9) || (browser.isWebtv) || (browser.isDreamcast)) 
{   //(browser.isGecko) ||
	var pngNormal = true;
}

//function od_displayImage(strId, strPath, intWidth, intHeight, strClass, strAlt) {	

 if (pngAlpha) {
	 document.getElementById("bg").style.setAttribute("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../grafik/transp_bg.png',sizingMethod='scale')", "false");
	 //document.getElementById("bg").style.setAttribute("backgroundColor", "white","true");
	 //document.write('<div style="height:'+intHeight+'px; width:'+intWidth+'px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+strPath+'.png\', sizingMethod=\'scale\')" id="'+strId+'" class="'+strClass+'"></div>');
	} else if (pngNormal) {
	document.getElementById("bg").style.backgroundImage = "../../grafik/transp_bg.png";
  //document.write('<img src="'+strPath+'.png" width="'+intWidth+'" height="'+intHeight+'" name="'+strId+'" border="0" class="'+strClass+'" alt="'+strAlt+'" />');
	} else {
	document.getElementById("bg").style.backgroundColor = "white";
  //document.write('<img src="'+strPath+'.gif" width="'+intWidth+'" height="'+intHeight+'" name="'+strId+'" border="0" class="'+strClass+'" alt="'+strAlt+'" />');
	}
}



