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 flashHomepageNew(swf)
{
    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="351" height="213" id="flashHomepage">\n');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
    document.write('<param name="movie" value="/i/' + swf + '" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('<embed src="/i/' + swf + '" quality="high" wmode="transparent" width="351" height="213" id="flashHomepage" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
    document.write('</object>');
}

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">\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>');
}


function dropCountries(toggle,divobj)
{
    if (toggle)
    {
        //document.getElementById('langcontainer').style.display = 'block';
        document.getElementById(divobj).style.display = 'block';
        if ( document.getElementById('map') && document.getElementById('map_placeholder') )
        {
            document.getElementById('map').style.display = 'none';
            document.getElementById('map_placeholder').style.display = 'block';
        }
        
        if ( document.getElementById('MediaPlayer1') && document.getElementById('MediaPlayer1_placeholder') )
        {
            document.getElementById('MediaPlayer1').style.display = 'none';
            document.getElementById('MediaPlayer1_placeholder').style.display = 'block';
        }
        
    }
    else
    {
        //document.getElementById('langcontainer').style.display = 'none';
        document.getElementById(divobj).style.display = 'none';
        if ( document.getElementById('map') && document.getElementById('map_placeholder') )
        {
            document.getElementById('map').style.display = 'block';
            document.getElementById('map_placeholder').style.display = 'none';
        }
        if ( document.getElementById('MediaPlayer1') && document.getElementById('MediaPlayer1_placeholder') )
        {
            document.getElementById('MediaPlayer1').style.display = 'block';
            document.getElementById('MediaPlayer1_placeholder').style.display = 'none';
        }
    }
   
    return;
}
