var css2=theroot+"/css/cms_generic.css";

var css3=theroot+"/css/cms_generic.css";

var subcss1=document.getElementById("css2");

var subcss2=document.getElementById("css3");

var safarifix="";

var safarifixend="";

//alert(yourversion2);

  if(navigator.appVersion.indexOf("Mac") != -1)

  {

    css2=theroot+"/css/cms.css";

  }


if (yourversion.indexOf("MSIE 8")!=-1 || yourversion2.indexOf("MSIE 8")!=-1) {
css2=theroot+"/css/cms_ie8.css";
		ierotatestyles="";
}


	if (yourversion.indexOf("MSIE 7")!=-1 || yourversion2.indexOf("MSIE 7")!=-1) {

		css2=theroot+"/css/cms_ie7.css";

		ierotatestyles="<style type='text/css'>#headline1, #headline2, #headline3, #headline4, #headline5 {top: 517px;} #photobox1, #photobox2, #photobox3, #photobox4, #photobox5 {top: 267px;} #playbuttons {top: 507px;} .rotate{width:120px;}</style>";

	}

	

	if (yourversion.indexOf("MSIE 6")!=-1 || yourversion2.indexOf("MSIE 6")!=-1) {

		css2=theroot+"/css/cms_ie6.css";

		ierotatestyles="<style type='text/css'>#headline1, #headline2, #headline3, #headline4, #headline5 {top: 517px;} #photobox1, #photobox2, #photobox3, #photobox4, #photobox5 {top: 267px;} #playbuttons {top: 507px;} .rotate{width:120px;}</style>";

	}

			

	if (yourversion.indexOf("Firefox")!=-1 || yourversion2.indexOf("Firefox")!=-1) {

		css3=theroot+"/css/cms_firefox.css";

	}

	

	if (subcss1.href!=css2) {

		subcss1.href=css2;

	}

	

	if (subcss2.href!=css3) {

		subcss2.href=css3;

	}

	

	//alert(subcss1.href);

	//alert(subcss2.href);

	

	if (yourversion.indexOf("Safari"))

	{

	safarifix='<div style="clear:left";>';

	safarifixend='</div>';

	}
