var agt=navigator.userAgent.toLowerCase();

 var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
 var is_mac    = (agt.indexOf("mac")!=-1);
 
function test()
	{
		if(is_mac == true)
			{
				setActiveStyleSheet('alt1');
				return false;
			}
	    if(is_win == true)
			{
				setActiveStyleSheet('main');
				return false;
			}
	}