ieHover = function() {
    var ieULs = document.getElementById('nav').getElementsByTagName('ul');
    /** IE script to cover <select> elements with <iframe>s **/
    for (j=0; j<ieULs.length; j++) {
		ieULs[j].innerHTML = ('<iframe src="https://secure.techxpress.net/blank.html" scrolling="no" frameborder="0"></iframe>' + ieULs[j].innerHTML);
        var ieMat = ieULs[j].firstChild;
		ieMat.style.width=ieULs[j].offsetWidth+"px";
		ieMat.style.height=ieULs[j].offsetHeight+"px";	
		ieULs[j].style.zIndex="99";
    }
    /** IE script to change class on mouseover **/
	var ieLIs = document.getElementById('nav').getElementsByTagName('li');
	for (var i=0; i<ieLIs.length; i++) if (ieLIs[i]) {
		ieLIs[i].onmouseover=function() {this.className+=" iehover";};
		ieLIs[i].onmouseout=function() {this.className=this.className.replace(' iehover', '');};
	}
}
if (window.attachEvent) window.attachEvent('onload', ieHover);

function flashIEFix(file) {
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="182" HEIGHT="140" id="rtoa_org_ad" style="z-index:1!important;" loop=false>\n');
	document.write('<PARAM NAME=movie VALUE="images/uploads/'+file+'">\n');
	document.write('<PARAM NAME=quality VALUE=high>\n');
	document.write('<PARAM NAME=bgcolor VALUE=#FFFFFF>\n');
	document.write('<PARAM NAME=wmode value="transparent">\n');
	document.write('<PARAM NAME=loop VALUE=false>\n');
	document.write('<EMBED wmode="transparent" src="images/uploads/'+file+'" quality=high bgcolor=#FFFFFF WIDTH="182" HEIGHT="140" NAME="rtoa_org_ad" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" loop=false>\n');
	document.write('</EMBED></OBJECT>\n');
}

