
var bild1 = new Image(); bild1.src="img/home_readmore_de_on.jpg";
var bild2 = new Image(); bild2.src="img/english_mo.gif";
var bild3 = new Image(); bild3.src="img/impressum_mo.gif";
var bild4 = new Image(); bild4.src="img/sitemap_mo.gif";

function swapImage( _name, _src ){
	document.images[_name].src = _src;
}

function mOver( source, repl ){
	document.images[source].src = 'img/' + repl;
}

function validate(){
    var ref = document.forms[0].elements;

    if(ref.name.value.length < 1){
            alert("Bitte geben Sie Ihren Namen ein.\nPlease enter your name.");
            ref.name.focus();
            return false;
    }
    if(ref.firma.value.length < 1){
            alert("Bitte geben Sie Ihre Firma an.\nPlease enter your company.");
            ref.firma.focus();
            return false;
    }
    if(ref.email.value.indexOf("@") == -1){
            alert("Bitte geben Sie Ihre E-Mail Adresse an.\nPlease enter your e-mail address.");
            ref.email.focus();
            return false;
    }
    return true;
}

function sendForm(){
    if( validate() ){
        document.forms[0].submit();
    }	
}

function clearForm(num){
	return;	
}

function swf_1( _file ){
	document.open();
	document.write('<div style="width: 457px; height: 145px; overflow: hidden; margin: 0; padding: 0; background-image: url(img/altswf-home.jpg);">');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="457" height="145">');
	document.write('<param name="movie" value="media/' + _file + '">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="media/' + _file + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="457" height="145">');
	document.write('</object>');
	document.write('</div>');
	document.close();
}

function swf_2( _file ){
	document.open();
   	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="457" height="145">');
	  document.write('<param name="movie" value="media/' + _file + '">');
	  document.write('<param name="quality" value="high">');
	  document.write('<param name="wmode" value="transparent">');
	  document.write('<embed src="media/' + _file + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" width="457" height="145"></embed>');
  	document.write('</object>');
	document.close();
}

function swf_prodsr( _file ){
	document.open();
	 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="234" height="301">');
		  document.write('<param name="movie" value="media/' + _file + '">');
		  document.write('<param name="quality" value="high">');
		  document.write('<param name="wmode" value="transparent">');
		  document.write('<embed src="media/' + _file + '" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="234" height="301"></embed>');
	  document.write('</object>');
  	document.close();
}
						  
function swf_refs( _file ){
	document.open();
	  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="234" height="469">');
		  document.write('<param name="movie" value="media/' + _file + '">');
		  document.write('<param name="quality" value="high">');
		  document.write('<embed src="media/' + _file + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="234" height="469"></embed>');
	  document.write('</object>');
	document.close();	  
}

function swf_refs2( _file ){
	document.open();
	  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="234" height="484">');
		  document.write('<param name="movie" value="media/' + _file + '">');
		  document.write('<param name="quality" value="high">');
		  document.write('<embed src="media/' + _file + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="234" height="484"></embed>');
	  document.write('</object>');
	document.close();	  
}
	 
function swf_intro(){
var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ 'width="704" height="417" '
	+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<param name="movie" value="media/intro.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" />'
	+ '<embed src="media/intro.swf" quality="high" bgcolor="#FFFFFF" '
	+ 'width="704" height="417" name="detectiontest" aligh="middle" '
	+ 'play="true" '
	+ 'loop="false" '
	+ 'quality="high" '
	+ 'type="application/x-shockwave-flash" '
	+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
	+ '<\/embed>'
	+ '<\/object>';
document.write(oeTags); 
}

function swf_introX(){
var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ 'width="704" height="417" '
	+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<param name="movie" value="media/intro2.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" />'
	+ '<embed src="media/intro2.swf" quality="high" bgcolor="#FFFFFF" '
	+ 'width="704" height="417" name="detectiontest" aligh="middle" '
	+ 'play="true" '
	+ 'loop="false" '
	+ 'quality="high" '
	+ 'type="application/x-shockwave-flash" '
	+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
	+ '<\/embed>'
	+ '<\/object>';
document.write(oeTags); 
}

function comingSoon(){
			//prepare html code
				var imgcode = '<a href="javascript: self.close();"><img border="0" onclick="self.close();" src="img/english.jpg"></a>';
				var x = screen.width/2-200;
				var y = 200;
				
				var htmlheader = '<html><head><title>wiegand.maelzer gmbh</title></head><body onload="self.resizeTo(document.images[0].width,document.images[0].height+45);" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">';
				var vtab = (false) ? 'valign="middle"' : 'valign="top"';
				var htab = (false) ? ' align="center"' : ' align="left"';
				var htmlbodystart = '';
				var htmlbody = imgcode;
				var htmlbodyend = '</body></html>';
		
				var wbody = htmlheader + htmlbodystart + htmlbody + htmlbodyend;
			  
				var props = "width=400,height=281,left=" + x + ",top=" + y + ",resizable=no,scrollbars=no,location=no,menubar=no,status=no,toolbar=no";
				mtw = window.open('','moodwin', props);
				mtw.document.open();
				mtw.document.write( wbody );
				mtw.document.close();
				mtw.focus();
}

function swfErding(){
var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ 'width="450" height="400" '
	+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<param name="movie" value="media/emotion_opener.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" />'
	+ '<embed src="media/emotion_opener.swf" quality="high" bgcolor="#FFFFFF" '
	+ 'width="450" height="400" name="detectiontest" aligh="middle" '
	+ 'play="true" '
	+ 'loop="false" '
	+ 'quality="high" '
	+ 'type="application/x-shockwave-flash" '
	+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
	+ '<\/embed>'
	+ '<\/object>';
document.write(oeTags); 
}




function erdingMovie(){
			//prepare html code
				var x = screen.width/2-200;
				var y = 200;
				
				var props = "width=450,height=400,left=" + x + ",top=" + y + ",resizable=no,scrollbars=no,location=no,menubar=no,status=no,toolbar=no";
				mtw = window.open('erding.htm','moodwin', props);
				mtw.focus();
}