/* www.inmedial.de */
onresize=_onresize; 
onload=_onresize;  
hoehe = 178 ; // setzt höhe des subnavi und content - Bereichs
aktiv = '';

function win_open(pfad,name,attributes) {
if (typeof(fenster) != 'undefined') {
	if (fenster.closed != true && fenster !='') 
	fenster.close();
}
//fenster = window.open("detail.php","calendar","width=820,height=630,directories=no,location=no,menubar=no,personalbar=no,resizable=no,scrollbars=no,status=yes,toolbar=no");
fenster = window.open(pfad,name,attributes);
fenster.focus();
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function on(obj) {
document.images[obj.name].src = document.images[obj.name].src.replace(/0.gif/,'1.gif'); 
aktiv = obj.name; 
}

function off() {
if (aktiv != '') {
	document.images[aktiv].src = document.images[aktiv].src.replace(/1.gif/,'0.gif');
	aktiv = '';
}
}

function _onresize() {
document.getElementById('content').style.height=document.body.scrollHeight-hoehe;
// return true; // wichtig für IE
// document.body.style.overflow='hidden'; // vertikale Scrolleisten weg
}

function top() {
document.getElementById('content').scrollTop=0;
}

function printout() {
var content = document.getElementById('content').innerHTML; 
content +='<script language="Javascript">function printout(){window.print()}</script>';
document.open();
document.write(content);
document.close();
window.print();
}