/*
	Browser check
*/
var strAgent = navigator.userAgent.toLowerCase(); 

if(strAgent.indexOf("windows")!=-1) {

	if (strAgent.indexOf("msie")!=-1 && strAgent.indexOf("opera") == -1) {
		writeLinkTag("ie.css");
	}
	
	if (strAgent.indexOf("msie 5.0")!=-1 || strAgent.indexOf("msie 5.5")!=-1) {
		writeLinkTag("ie5.css");
	}
	
	if (strAgent.indexOf("msie 5.0")!=-1) {
		writeLinkTag("ie50.css");
	}
	
	if (strAgent.indexOf("msie")!=-1 && strAgent.indexOf("opera") != -1) {
		writeLinkTag("opera.css");
	}

}

if(strAgent.indexOf("mac")!=-1 && strAgent.indexOf("safari") != -1) {	
	writeLinkTag("safari.css");
	//alert(strAgent);
}

/** writeLinkTag write link tag gets the name of the stylesheets as attribute
 * @param name name of the style sheet.
 *
 */
function writeLinkTag(name) {
	document.write("<link href=\"_css/" + name + "\" rel=\"stylesheet\" type=\"text/css\" media=\"screen\" />");
}