function toggleDiv(id,flagit) {
	if (flagit=="1") {
		if (document.layers) document.layers[''+id+''].visibility = "show"
		else if (document.all) document.all[''+id+''].style.visibility = "visible"
		else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
	} else {
		if (flagit=="0") {
			if (document.layers) document.layers[''+id+''].visibility = "hide"
			else if (document.all) document.all[''+id+''].style.visibility = "hidden"
			else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
		}
	}
}

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

if (browserVer >= 3) version = "n3";
else version = "n2";
if (version == "n3") {
	green_products_dn = new Image;		green_products_dn.src = "images/nav/green-products-dn.gif";
	green_products_up = new Image;		green_products_up.src = "images/nav/green-products-up.gif";
	product_lines_dn = new Image;		product_lines_dn.src = "images/nav/product-lines-dn.gif";
	product_lines_up = new Image;		product_lines_up.src = "images/nav/product-lines-up.gif";
	clearance_items_dn = new Image;		clearance_items_dn.src = "images/nav/clearance-items-dn.gif";
	clearance_items_up = new Image;		clearance_items_up.src = "images/nav/clearance-items-up.gif";
	about_afs_dn = new Image;			about_afs_dn.src = "images/nav/about-afs-dn.gif";
	about_afs_up = new Image;			about_afs_up.src = "images/nav/about-afs-up.gif";
	contact_afs_dn = new Image;			contact_afs_dn.src = "images/nav/contact-afs-dn.gif";
	contact_afs_up = new Image;			contact_afs_up.src = "images/nav/contact-afs-up.gif";
	news_and_events_dn = new Image;		news_and_events_dn.src = "images/nav/news-and-events-dn.gif";
	news_and_events_up = new Image;		news_and_events_up.src = "images/nav/news-and-events-up.gif";
}

function flip (imageID,objectName) {
	if (version == "n3") {document.images[imageID].src = eval(objectName + ".src");}
}

function popup(StaticPage,dow,WindowWidth,WindowHeight) {
   scott=window.open(StaticPage,'desc','toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=no,width='+WindowWidth+',height='+WindowHeight);
   scott.focus();
}
