/*=====================================================
 * avoid IE6 bg flicker
 */
	try {
		document.execCommand("BackgroundImageCache",false,true);
	}catch(e){}

/*=====================================================
 * browserDetect
 */
	var OSDetect =
	{
		win: (navigator.platform.indexOf("Win") != -1) ? true : false,
		mac: (navigator.platform.indexOf("Mac") != -1) ? true : false
	}
	var browserDetect = 
	{
		Safari : (navigator.userAgent.indexOf("Safari") != -1)? true : false,
		Safari2 : (navigator.userAgent.indexOf("AppleWebKit/41") != -1)? true : false,
		FX : (navigator.userAgent.indexOf("Firefox") != -1)? true : false,
		IE : (navigator.userAgent.indexOf("MSIE") != -1)? true : false,
		IE4 : (navigator.userAgent.indexOf("MSIE 4") != -1)? true : false,
		IE5 : (navigator.userAgent.indexOf("MSIE 5") != -1)? true : false,
		IE6 : (navigator.userAgent.indexOf("MSIE 6") != -1)? true : false,
		IE7 : (navigator.userAgent.indexOf("MSIE 7") != -1)? true : false,
		IE8 : (navigator.userAgent.indexOf("MSIE 8") != -1)? true : false,
		MacIE : (document.all && !window.clipboardData)? true : false,
		NN6 : (navigator.userAgent.indexOf("Netscape/6") != -1)? true : false,
		NN7 : (navigator.userAgent.indexOf("Netscape/7") != -1)? true : false
	}

