// Rollover Effect Over
function buttonOver(button) {
	button.background = "images/submenu-hi.gif";
}

// Rollover Effect Out		
function buttonOut(button){
	button.background = "images/submenu-lo.gif";
}

// Zoombild anzeigen			
function popup(file, width, height){

	if(width == undefined) {
		width = 550;
	}
	
	if(height == undefined) {
		height = 440;
	}

	var zentrierenX = (screen.width/2)-(width/2); 
	var zentrierenY = (screen.height/2)-(height/2);
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	window.open(file,"help","width="+width+", height="+height+", resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}

// PopUp Print
function popupPrint(file){
	var zentrierenX = (screen.width/2)-290; 
	var zentrierenY = (screen.height/2)-300;
	var pos = "left="+zentrierenX+",top="+zentrierenY; 
	window.open(file,"print","width=580, height=600, resizable=no, scrollbars=yes, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);
}


// Flash Film schreiben
function writeFlash(Path,Width,Height,Parameter) {

	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' height='" +  Height + "' width='" + Width + "'>");
	document.write("<param name='movie' value='" + Path + Parameter + "'>");
	document.write("<param name='quality' value='best'>");
	document.write("<param name='play' value='true'>");
	document.write("<param name='menu' value='false'>");
	document.write("<param name='scale' value='noscale'>");
	document.write("<embed scale='noscale' menu='false' height='" + Height + "' pluginspage='http://www.macromedia.com/go/getflashplayer' src='" + Path + Parameter + "' type='application/x-shockwave-flash' width='" + Width + "' quality='best' play='true'>");
	document.write("</object>");
	
}

// Windows Film schreiben 
function writeMediaplayer(Path,Width,Height,Autoplay) {

	document.write("<object id='MediaPlayer' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'   height='" + Height + "' width='" + Width + "'>");
	document.write("<param name='filename' value='"+ Path + "'>");
	document.write("<param name='autostart' value='" + Autoplay + "'>");
	document.write("<embed src='" + Path + "' width='" + Width + "' height='" + Height + "' autostart='" + Autoplay + "' />");
	document.write("</object>");

}

// Quicktime Film schreiben
function writeQuicktime(Path,Width,Height,Autoplay) {

	document.write("<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' codebase='http://www.apple.com/qtactivex/qtplugin.cab' type='video/quicktime' height='" + Height + "' width='" + Width + "'>");
	document.write("<param name='src' value='" + Path + "'>");
	document.write("<param name='autoplay' value='" + Autoplay + "'>");
	document.write("<param name='controller' value=''>");						
	document.write("<embed height='" + Height + "' pluginspage='http://www.apple.com/quicktime/download/' src='" + Path + "' type='video/quicktime' width='" + Width + "' autoplay='" + Autoplay + "'>");
	document.write("</object>");
	
}

// Nexstorm-Plugin ausgeben
function writeNexstorm() {
	document.writeln("<APPLET CODE='stormvue.StormVue.class' archive='stormvue.jar' HEIGHT=560 WIDTH=640>");
	document.writeln("<param name='UNITS' value='EU'>");
	document.writeln("<param name='HISTORY' value='30'>");
	document.writeln("<param name='TIMEZONE' value='+2'>");
	document.writeln("<param name='RANGE' value='FULL'>");
	document.writeln("<param name='STATE' value='SUMMARY'>");
	document.writeln("<param name='AZLINES' value='true'>");
	document.writeln("<PARAM NAME='CGP_SYMBOL' Value='cross'>");
	document.writeln("<PARAM NAME='CGN_SYMBOL' Value='dcross'>");
	document.writeln("<PARAM NAME='ICP_SYMBOL' Value='dtriangle'>");
	document.writeln("<PARAM NAME='ICN_SYMBOL' Value='utriangle'>");
	document.writeln("<param name='NEWSTRIKE_SIZE' value='3'>");
	document.writeln("<param name='CGP_COLOR' value='0xFF99FF'>");
	document.writeln("<param name='CGN_COLOR' value='0x00FFFF'>");
	document.writeln("<param name='ICP_COLOR' value='0xFFFF00'>");
	document.writeln("<param name='ICN_COLOR' value='0x00FF44'>");
	document.writeln("<PARAM NAME='OLDSTRIKESYMBOL' Value='blob'>");
	document.writeln("<param name='OLDSTRIKE_SIZE' value='1'>");
	document.writeln("<param name='MAP_LR' value='nexstorm/map500full.gif'>");
	document.writeln("<param name='MAP_SR' value='nexstorm/map500half.gif'>");
	document.writeln("<param name='COLOR1' value='0xFFFFFF'>");
	document.writeln("<param name='COLOR2' value='0xFFFF00'>");
	document.writeln("<param name='COLOR3' value='0xFFBD08'>");
	document.writeln("<param name='COLOR4' value='0xFF0000'>");
	document.writeln("<param name='COLOR5' value='0xB40000'>");
	document.writeln("<param name='COLOR6' value='0x7E0000'>");					
	document.writeln("<param name='USEARC' value='nexstorm/nexstorm_arc.bin'>	");
	document.writeln("<param name='SHOW_DISCLAIMER' value='true'>");
	document.writeln("</APPLET>");
}