var supported = (document.getElementById || document.all);

if (supported)
{
	document.write("<STYLE TYPE='text/css'>");
	document.write("#tree li ul, .header {display: none}");
	document.write("</STYLE>");

}

function change(i)
{
	if (document.getElementById)
	{
		document.getElementById(i).className = (document.getElementById(i).className == 'open') ? '': 'open';
	}
	else if (document.all)
	{
		document.all[i].className = (document.all[i].className == 'open') ? '': 'open';
	}
}

function addBookmark (title,url) 
{
	window.external.AddFavorite (url, title);
}

function pulldown_menu ()

{
    var url = document.pulldown.selectname.options [document.pulldown.selectname.selectedIndex].value
    
    if (url != "none") window.location.href = url
}

function pulldown_menu2 ()

{
    var url = document.pulldown2.selectname.options[document.pulldown2.selectname.selectedIndex].value
    
    if (url != "none") window.location.href = url
}

function hide_check() {

 if (document.getElementById || document.all){
  document.getElementById("alert_js").style.display="none";
 }
 else if (document.layers) {
  document.all["alert_js"].style.display="none";
 }
 else return;
}




// Hide Upgrade Option DIV

function setVisibility(id, visibility) {
	document.getElementById(id).style.display = visibility;
}


function submit_order(obj, frm) {
	if ( getBrowserName() == 'msie' || getBrowserName() == 'firefox' || getBrowserName() == 'mozilla' || getBrowserName() == 'opera' ) {
		obj.disabled=true;
		try {
			document.getElementById(frm).submit();	
		} catch(e) {
		
		}
	}
}


// Disable Submit Button After Clicked Once

function submit_order(obj, frm) {
	if ( getBrowserName() == 'msie' || getBrowserName() == 'firefox' || getBrowserName() == 'mozilla' || getBrowserName() == 'opera' ) {
		obj.disabled=true;
		try {
			document.getElementById(frm).submit();	
		} catch(e) {
		
		}
	}
}


// Disable Right Hand Clik


var message="All Content is Copyright (c) 2008 QualityGenerics.com. No Reproductions Without Permission Please"; //
function click(i) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (i.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;



// Disable Right-Hand Click FireFox


var message="All Content is Copyright (c) 2008 QualityGenerics.com. No Reproductions Without Permission Please";

function clickIE()
 
{if (document.all)
{(message);return false;}}
 
function clickNS(e) {
if
(document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.  onmousedown=clickNS;}
else
{document.onmouseup=clickNS;document.oncontextmenu  =clickIE;}
 
document.oncontextmenu=new Function("return false")