
function attachDRCSS(){
	if(typeof basePath == 'undefined'){
		basePath = "//ui1.img.digitalrivercontent.net/drui/1.7.0.0.6.2/";
	}
	 //Attaches browser specific stylesheet
	var b = 'ff', n = navigator, v = n.appVersion;
	
	if (/Firefox[\/\s](\d+\.\d+)/.test(n.userAgent)){
 		var ffv=new Number(RegExp.$1);
		if(ffv>=2 && ffv<3){
			b='ff2';
		}
	}else if (v.indexOf("MSIE") > -1){
		if(v.indexOf("MSIE 6") > -1){
			b = 'ie6';
		}else if (v.indexOf("MSIE 7") > -1 ){
			b = 'ie7';
		}else{
			b = 'ie8';
		} 
	}else if (v.indexOf("Chrome") > -1 ){
		b = 'chrome';
	}else if(v.indexOf("Safari") > -1){
		b = 'safari';
	}
	var c = document.createElement('link');
		c.type = 'text/css';
		c.rel = 'stylesheet';
		c.href = basePath + 'css/dr-stylesheet-'+b+'-compressed.css';
	document.getElementsByTagName("head")[0].appendChild(c);
};

attachDRCSS();	

