// JavaScript Document

function fieldFocus(elem, val) {
	if (elem.value == val) {
		elem.value = '';
	}
}
function svemail() {
	document.location.href = "mail"+"to:"+"mail" + "@" + "streiff"+"."+"de";
}
function fieldBlur(elem, val) {
	if (elem.value == '') {
		elem.value = val;
	}
}
function mehr(id) {
	document.getElementById(id).style.display = "block";
}
function weniger(id) {
	document.getElementById(id).style.display = "none";
}
function sflash() {
	html = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="590" height="120" id="final" align="middle">';
	html = html + '<param name="allowScriptAccess" value="sameDomain" />';
	html = html + '<param name="movie" value="/themes/streiff/images/final_4.swf?color=d3d3d3" />';
	html = html + '<param name="quality" value="high" />';
	html = html + '<param name="bgcolor" value="#ffffff" />';
	html = html + '<embed src="/themes/streiff/images/final_4.swf?color=d3d3d3" quality="high" bgcolor="#ffffff" width="590" height="120" name="final" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	html = html + '</object>';
	document.write(html);
}

function sflasht(qs) {
	html = '<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"420\" height=\"160\" id=\"box1\" align=\"middle\">';
	html = html + '<param name=\"allowScriptAccess\" value=\"sameDomain\" />';
	html = html + '<param name=\"movie\" value=\"/themes/streiff/images/startboxes_original.swf?' + qs + '\" />';
	html = html + '<param name=\"quality\" value=\"high\" />';
	html = html + '<param name=\"bgcolor\" value=\"#747474\" />';
	html = html + '<param name=\"scale\" value=\"exactfit\" />';
	html = html + '<embed src=\"/themes/streiff/images/startboxes_original.swf?' + qs + '\" quality=\"high\" scale=\"exactfit\" bgcolor=\"#747474\" width=\"420\" height=\"160\" name=\"box1\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"https://www.macromedia.com/go/getflashplayer\" />';
	html = html + '</object>';
	document.write(html);
}

function vflash() {
	html = '<object height="132" align="middle" width="192" id="video" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">';
	html = html + '<param value="sameDomain" name="allowScriptAccess" />';
	html = html + '<param value="/video/videocrop.swf" name="movie" />';
	html = html + '<param value="high" name="quality" />';
	html = html + '<param value="#ffffff" name="bgcolor" /><embed height="132" align="middle" width="192" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="video" bgcolor="#ffffff" quality="high" src="/video/videocrop.swf"></embed>';
	html = html + '</object>';
	document.write(html);
}

function vflash2() {
	html = '<object height="160" align="middle" width="192" id="video" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">';
	html = html + '<param value="sameDomain" name="allowScriptAccess" />';
	html = html + '<param value="/video/video2.swf" name="movie" />';
	html = html + '<param value="high" name="quality" />';
	html = html + '<param value="#ffffff" name="bgcolor" /><embed height="160" align="middle" width="192" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="video2" bgcolor="#ffffff" quality="high" src="/video/video2.swf"></embed>';
	html = html + '</object>';
	document.write(html);
}

function prodformc() {
	var measures;
	name = "measures";
	if(document.getElementById) {
		measures = document.getElementById(name);
	} else if (document.all){
		measures = document.all[name];
	} else if (document.layers){
		measures = document.layers[name];
	}

	if (document.prodform.type.options[1].selected == true) {
		document.prodform.lengthu.disabled = true;
		document.prodform.length.disabled = true;
		document.prodform.length.style.borderStyle = 'dotted';
		document.prodform.length.value = '680';
		document.prodform.widthu.disabled = true;
		document.prodform.width.disabled = true;
		document.prodform.width.style.borderStyle = 'dotted';
		document.prodform.width.value = '370';    
		document.prodform.heightu.disabled = true;                        
		document.prodform.height.disabled = true;
		document.prodform.height.style.borderStyle = 'dotted';
		document.prodform.height.value = '355';  
		document.prodform.weightu.disabled = true;                        
		document.prodform.weight.disabled = true;
		document.prodform.weight.style.borderStyle = 'dotted';
		document.prodform.weight.value = '30';  
		measures.style.visibility = 'hidden';
		measures.style.height = '0';
	} else {
		document.prodform.lengthu.disabled = false;
		document.prodform.length.disabled = false;
		document.prodform.length.style.borderStyle = 'solid';
		document.prodform.widthu.disabled = false;
		document.prodform.width.disabled = false;
		document.prodform.width.style.borderStyle = 'solid';   
		document.prodform.heightu.disabled = false;       
		document.prodform.height.disabled = false;
		document.prodform.height.style.borderStyle = 'solid';             
		document.prodform.weightu.disabled = false;       
		document.prodform.weight.disabled = false;
		document.prodform.weight.style.borderStyle = 'solid';    
		measures.style.visibility = 'visible'; 
		measures.style.height = '110px';
	}
}
