//Start no_yellow.js

<!--
if(window.attachEvent)
window.attachEvent("onload",setListeners);
function setListeners(){
inputList = document.getElementsByTagName("INPUT");
for(i=0;i<inputList.length;i++){
inputList[i].attachEvent("onpropertychange",restoreStyles);
inputList[i].style.backgroundColor = "";
}
selectList = document.getElementsByTagName("SELECT");
for(i=0;i<selectList.length;i++){
selectList[i].attachEvent("onpropertychange",restoreStyles);
selectList[i].style.backgroundColor = "";
}
}
function restoreStyles(){
if(event.srcElement.style.backgroundColor != "")
event.srcElement.style.backgroundColor = "";
}//-->

//End no_yellow.js

//Start nomoreyellow.js

    if(window.attachEvent)
    {//Attach to onload event in IE
        window.attachEvent("onload",resetStyles);
    }
    else
    {//Attach to load event in Other Browser
        window.addEventListener("load",resetStyles,false);
     //Attach to focus event in other browsers to disable
     //background color change in tabbed browsing  
        window.addEventListener("focus",resetStyles,false);   
    }

    function resetStyles()
    {
        resetStyle('input');
        resetStyle('select');
    }

    function resetStyle(inputType)
    {
        var count=document.getElementsByTagName(inputType);
        for(var i=0;i<count.length;i++)
        {
            if(window.attachEvent)
            {//Attach to onpropertychange event in IE
                count[i].attachEvent('onpropertychange',resetBC);
            }
            else
            {//Apply the style reset onload
                resetOther(count[i]);
            }
        }
    }
    
    function resetOther(El)
    {
        if(El.style.backgroundColor!='')
            El.style.backgroundColor='';
    }
    function resetBC()
    {
        if(event.srcElement.style.backgroundColor!='')
            event.srcElement.style.backgroundColor='';
    }

//End nomoreyellow.js

/////////////////////////  START DROP DOWN MENU   //////////////////////////////

var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

function mopen(id){	
mcancelclosetime();

if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
ddmenuitem = document.getElementById(id);
ddmenuitem.style.visibility = 'visible';
}

function mclose(){
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

function mclosetime(){
closetimer = window.setTimeout(mclose, timeout);
}

function mcancelclosetime(){
if(closetimer){
window.clearTimeout(closetimer);
closetimer = null;
}
}

document.onclick = mclose; 

//////////////////////////  END DROP DOWN MENU   ///////////////////////////////

/////////////////////  START POPUP FOR REQUEST QUOTE  //////////////////////////

function GetQuoteForm(department){
var URL = MyFullURL + "contact/quoteform.php?department=" + department;
winpops=window.open(URL,"quoteform","width=995,height=550,left=10,top=10,status=0,scrollbars=1,resizable=1,menubar=0,location=0,toolbar=0")
}

/////////////?////////  END POPUP FOR REQUEST QUOTE  ///////////////?///////////

///////////////////  START FLASH SLIDESHOW AIRCRAFT FOR SALE  //////////////////

function RunSlideShow(id)
{
var path = MyFullURL + "sales/slideshow.swf?xmlfile=" + MyFullURL + "sales/getimage.php?id=" + id;

	document.write('<object id=VideoPlayer codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 height="300" width="460" align=middle classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 viewastext>');
	document.write('<param name="Movie" value="' + path + '">');
	document.write('<param name="Src" value="' + path + '">');
	document.write('<param name="Quality" value="High">');
	document.write('<param name="BgColor" value="#000000">');
	document.write('<param name="wMode" value="opaque">');
	document.write('<param name="AllowScriptAccess" value="always">');
	document.write('<embed src="' + path + '" ');
	document.write('quality="high" bgcolor="#000000" wMode="opaque" width="460" height="300" name="VideoPlayer" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

////////////////////  END FLASH SLIDESHOW AIRCRAFT FOR SALE  ///////////////////

////////////////////  START FLASH SLIDESHOW LOCATIONS ETC  /////////////////////

function RenderFlash(directory)
{
var path = MyFullURL + "flash/" + directory + "/slideshow.swf";

  document.write('<object id=VideoPlayer codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 height="364" width="450" align=middle classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 viewastext>');
  document.write('<param name="Movie" value="' + path + '">');
	document.write('<param name="Src" value="' + path + '">');
  document.write('<param name="Base" value="' + MyFullURL + 'flash/' + directory + '/">');
	document.write('<param name="Quality" value="High">');
	document.write('<param name="BgColor" value="#000000">');
	document.write('<param name="wMode" value="transparent">');
	document.write('<param name="AllowScriptAccess" value="always">');
	document.write('<embed src="' + path + '" ');
	document.write('base="' + MyFullURL + 'flash/' + directory + '/" ')
	document.write('quality="high" bgcolor="#000000" wMode="transparent" width="450" height="364" name="VideoPlayer" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

/////////////////////  END FLASH SLIDESHOW LOCATIONS ETC  //////////////////////
