

var strlocation = window.location.toString();
var strprotocol = '';
if (strlocation.indexOf("ttps://") != -1){
	strprotocol = "https://"
}else{
	strprotocol = "http://"
}

//define stylesheets on different platforms and browsers: 
var css_Wac = 	 strprotocol+"www.harvesthealthfood.com/css/mac_ns.css";
var css_Win_ie = strprotocol+"www.harvesthealthfood.com/css/win_ie.css";
var css_Win_ns = strprotocol+"www.harvesthealthfood.com/css/win_ns.css";

var css_file = '';
var agt=navigator.userAgent.toLowerCase();
var browser = navigator.appName;

// define the css_file variable and attatch its corresponding platform/browser css file
if((navigator.appVersion.indexOf("Mac")!= -1)){
	if (navigator.appName == 'Netscape') {
	css_file = css_Wac;										// if we're on Wac Netscape
	}
    else if((agt.indexOf("msie 5.0")!=-1) ){                // if we're on Wac ie5       
	css_file = css_Win_ns;
	}
    else if((agt.indexOf("msie 4.5")!=-1) ){                // if we're on Wac ie4.5
    css_file = css_Wac;
    }	
}else{
	if (navigator.appName == 'Netscape') {
	css_file = css_Win_ns;
	}
	else{
	css_file = css_Win_ie;
	}
}

//write it to the page
document.write("<link rel='stylesheet' href='" + css_file + "' type='text/css'>");


/*
//define stylesheets on different platforms and browsers: 
var css_Wac = 	 "http://www.sbroco.com/css/mac_ns.css";
var css_Win_ie = "http://www.sbroco.com/css/win_ie.css";
var css_Win_ns = "http://www.sbroco.com/css/win_ns.css";

var css_file = '';
var agt=navigator.userAgent.toLowerCase();
var browser = navigator.appName;

// define the css_file variable and attatch its corresponding platform/browser css file
if((navigator.appVersion.indexOf("Mac")!= -1)){
	if (navigator.appName == 'Netscape') {
	css_file = css_Wac;										// if we're on Wac Netscape
	}
    else if((agt.indexOf("msie 5.0")!=-1) ){                // if we're on Wac ie5       
	css_file = css_Win_ns;
	}
    else if((agt.indexOf("msie 4.5")!=-1) ){                // if we're on Wac ie4.5
    css_file = css_Wac;
    }	
}else{
	if (navigator.appName == 'Netscape') {
	css_file = css_Win_ns;
	}
	else{
	css_file = css_Win_ie;
	}
}

//write it to the page
document.write("<link rel='stylesheet' href='" + css_file + "' type='text/css'>");
*/

