// Browser detect for CSS Style Sheets

if(navigator.platform.indexOf("Win32") != -1 && navigator.userAgent.indexOf("Netscape/7.0") != -1) {
	document.write("<style type=\"text/css\">@import url(/includes/netscape.css);</style>");
	}
else if(navigator.platform.indexOf("Win32") != -1 && navigator.userAgent.indexOf("Netscape/7.1") != -1) {
	document.write("<style type=\"text/css\">@import url(/includes/netscape71.css);</style>");
	}

else if(navigator.userAgent.indexOf("5.2") != -1 && navigator.platform.indexOf("Mac") != -1) {
	document.write("<style type=\"text/css\">@import url(/includes/ieosx.css);</style>");
	}

else if(navigator.appName.indexOf("Explorer") != -1 && navigator.platform.indexOf("Mac") != -1) {
	document.write("<style type=\"text/css\">@import url(/includes/iemac.css);</style>");
	} 
	
else if(navigator.userAgent.indexOf("MSIE") != -1 && navigator.platform.indexOf("Win32") != -1) {
	//document.write("<link rel=\"stylesheet\" href=\"/IE7/ie7-html.css\" type=\"text/css\"/>");
	document.write("<style type=\"text/css\">@import url(/includes/pc_ie.css);</style>");
	}
	
else  if(navigator.userAgent.indexOf("MSIE") == -1 && document.getElementById){
	document.write("<style type=\"text/css\">@import url(/includes/w3c.css);</style>");
	}

if(navigator.appVersion.indexOf("Safari") != -1) {
	document.write("<style type=\"text/css\">@import url(/includes/safari.css);</style>");
	}

// IE PNG
/*
if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
	document.writeln('<style type="text/css">img { visibility:hidden; } </style>');
	window.attachEvent("onload", fnLoadPngs);
}


function fnLoadPngs() {
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);

	for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--) {
		if (itsAllGood && img.src.match(/\.png$/i) != null) {
			var src = img.src;
			img.style.width = img.width + "px";
			img.style.height = img.height + "px";
			img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"
			img.src = "/images/clear.gif";
		}
		img.style.visibility = "visible";
	}
}
*/

// POP-UP
function winBRopen(theURL, Name, popW, popH, scroll, resize) { // V 1.0
	var winleft = (screen.width - popW) / 2;
	var winUp = (screen.height - popH) / 2;
	winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable='+resize+''
	Win = window.open(theURL, Name, winProp)
	Win.window.focus();
}

/* startList = function () {
if (navigator.userAgent.indexOf("MSIE 5.0") != -1 && navigator.platform.indexOf('Mac') != -1) {
		navRoot = document.getElementById("mainNav");

		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];		
			if (node.nodeName=="li") {		
				node.onmouseover+=function() {
					this.className+=" over";
				}
				node.onmouseout+=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList();
*/


