/*=====================================================
*	browserDetect
*/
var browserDetect = 
{
	isSafari : (navigator.userAgent.indexOf("Safari") != -1)? true : false,
	isSafari2 : (navigator.userAgent.indexOf("AppleWebKit/41") != -1)? true : false,
	isFF : (navigator.userAgent.indexOf("Firefox") != -1)? true : false,
	isIE : (navigator.userAgent.indexOf("MSIE") != -1)? true : false,
	isIE4 : (navigator.userAgent.indexOf("MSIE 4") != -1)? true : false,
	isIE5 : (navigator.userAgent.indexOf("MSIE 5") != -1)? true : false,
	isIE6 : (navigator.userAgent.indexOf("MSIE 6") != -1)? true : false,
	isIE7 : (navigator.userAgent.indexOf("MSIE 7") != -1)? true : false,
	isMacIE : (document.all && !window.clipboardData)? true : false,
	isNN4 : (document.layers)? true : false,
	isNN6 : (navigator.userAgent.indexOf("Netscape/6") != -1)? true : false,
	isNN7 : (navigator.userAgent.indexOf("Netscape/7") != -1)? true : false
}

/*=====================================================
*	Javascript Loader
*/
var Loader = {
	FILES : ['jquery132.js','function.js','swfobject.js'],
	require : function(n)
	{
		document.write('<script type="text/javascript" src="' + n + '"><\/script>');
	},
	load : function()
	{
		var f = /common\.js(\?.*)?$/, /* this filename */
			s = document.getElementsByTagName('script')[0].src,
			p = s.replace(f, '');
		for(var i = 0, n; n = Loader.FILES[i]; i++) Loader.require(p + n);
	}
};
Loader.load();

/*=====================================================
*	Console Dump
*/
function _log(t){try{console.log(t)}catch(e){alert(t)};}

/*
	IE bg flicker problem fix
*****************************************************/
try {
document.execCommand("BackgroundImageCache",false,true);
}catch(e){}

