// Browser Detect

// Include CSS 
function includeCSS(p_file) {
	var v_css  = document.createElement('link');
	v_css.rel = 'stylesheet';
	v_css.type = 'text/css';
	v_css.href = p_file;
	// v_css.defer = true;
	document.getElementsByTagName('head').item(0).appendChild(v_css);
}


function initializeContent(){
	hash = getURLParam('th');
	get_transaction_data(hash,'json','substituteContent');
}


function IE6() {includeCSS('/templates/yoo_phoenix/css/ie6.css')}

function IE7() {includeCSS('/templates/yoo_phoenix/css/ie7.css')}

function IE8() {includeCSS('/templates/yoo_phoenix/css/ie8.css')}

function otherBrowsers() {includeCSS('/templates/yoo_phoenix/css/other.css')}

function browser_detection() {
if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){
	var ieversion=new Number(RegExp.$1)
	if (ieversion>=8){
		//call ie8 function
		IE8();
	}else if (ieversion>=7){
		//call ie7 function
		IE7();
	}else if (ieversion>=6){
		//call ie6 function
		IE6();
	}else{
		//call other browser function
		otherBrowsers();
	}
} else { otherBrowsers(); }
}

browser_detection();


/*

function IE6() {
	overlay = '<style>#slider1 #screen {margin: 72px 0pt 0pt 25px;background: #000000 none repeat scroll 0pt 0pt;float: left; height: 120px;width: 160px;}</style>';
	document.write(overlay);
}

function IE7() {
	overlay = '<style></style>';
	document.write(overlay);
}

function IE8() {
	overlay = '<style></style>';
	document.write(overlay);
}

function otherBrowsers(){
	overlay = '<style></style>';
	document.write(overlay);
}
*/