function ptoggle(id,status)
{
	if (status) {
		document.getElementById("q" + id).style.display = 'none';
		document.getElementById("a" + id).style.display = 'inline';
		document.getElementById("ma" + id).style.display = 'inline';
	} else {
		document.getElementById("a" + id).style.display = 'none';
		document.getElementById("ma" + id).style.display = 'none';
		document.getElementById("q" + id).style.display = 'inline';
	}
	return false;
}

function langChange()
{
	var url = document.getElementById("langsel").options[document.getElementById("langsel").selectedIndex].value;
	document.getElementById("langsel").blur();
	location.href = url;
}

function showModels()
{
	var status = document.getElementById("is_customer").checked;
	if (status) {
		document.getElementById("models_list").style.visibility = 'visible';
	} else {
		document.getElementById("models_list").style.visibility = 'hidden';
	}
}

function flashHomepage(lang)
{
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="750" height="430" id="flashHomepage">\n');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
    document.write('<param name="movie" value="/i/hp_' + lang + '.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('<embed src="/i/hp_' + lang + '.swf" quality="high" wmode="transparent" width="750" height="430" name="flashHomepage" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
    document.write('</object>');
}

function flashHomepagePromo(lang)
{
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="750" height="430" id="flashHomepage">\n');
    document.write('<param name="movie" value="/i/hp_promo_' + lang + '.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('<embed src="/i/hp_promo_' + lang + '.swf" quality="high" wmode="transparent" width="750" height="430" name="flashHomepage" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
    document.write('</object>');
}

function flashHow(lang)
{
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="410" id="flashHomepage">\n');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
    document.write('<param name="movie" value="/i/how_' + lang + '.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('<embed src="/i/how_' + lang + '.swf" quality="high" wmode="transparent" width="550" height="410" name="flashHomepage" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
    document.write('</object>');
}
