
/* Mac menu re-styling. This code fixes the styling issue caused by font size differences between mac and pc computers. When not working the white menu bar does not line up with the background image in mac computors and devices. */

/***********************************************
* Different CSS depending on OS (mac/pc)- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var csstype="inline" //Specify type of CSS to use. "Inline" or "external"

var mac_css='.menu{font-size: 15px; } #index_r7_c1{height:9px;}' //if "inline", specify mac css here
var pc_css='.menu{font-size: 16px; }' //if "inline", specify PC/default css here

var mac_externalcss='/style/macstyle.css' //if "external", specify Mac css file here
var pc_externalcss='/style/pcstyle.css' //if "external", specify PC/default css file here

///////No need to edit beyond here////////////

var mactest=navigator.userAgent.indexOf("Mac")!=-1;

if (csstype=="inline"){
	document.write('<style type="text/css">');
	if (mactest){
		document.write(mac_css);
		document.write('</style>');
		//alert('in MAC');
	}
	else {
		document.write(pc_css);
		document.write('</style>');
		//alert('in PC');
	}
} else if (csstype=="external"){
	document.write('<link rel="stylesheet" type="text/css" href="'+ (mactest? mac_externalcss : pc_externalcss) +'">');
}
