//alert(navigator.userAgent.toLowerCase());
var mobile_device;			
var mCheck;	
var browser_ie;
var IE6;
var this_browser = navigator.userAgent.toLowerCase();

//if (navigator.userAgent.indexOf("MSIE 6") > 0) {	browser_ie = 6;}


function BrowserCheck() {
	/*
 appname = navigator.appName;
 useragent = navigator.userAgent;
 if(appname == "Microsoft Internet Explorer") {
 	appname = "IE";
 	IE6 = (useragent.indexOf('MSIE 6')>0);     //6.0 ¹öÀü
 }

 if(appname=="IE" && IE6) {	browser_ie = 6; }  //alert('ie6');
 */
 if(navigator.userAgent.toLowerCase().indexOf("msie 6.0")  > -1){
	 browser_ie = 6;
 }

	//Àý´ë ÇØ»óµµ   
	/*
	if (screen.width < 1300){	
	 $('body').css('zoom', 0.9);			// document.body.style.zoom  = "80%";	
	 $('body').css('position', 'relative');
	}
	*/
}
onload=BrowserCheck;

// if ($.browser.msie){


/**  mobile check  **/
if (this_browser.indexOf("iphone") > -1){//	alert('iphone');		
	mobile_device = 'iphone';
	document.write(
	"<meta name='viewport' content='user-scalable=yes, initial-scale=0.32, width=device-width,height=device-height'/>");
}

if(navigator.userAgent.toLowerCase().indexOf("ipad") > -1) {	//	alert('ipad');
	mobile_device = 'ipad';
	document.write(	"<meta name='viewport' content='user-scalable=yes, initial-scale=0.8, width=device-width,height=device-height' />");
}


/** ie6 png **/
if (browser_ie == 6) {
	function setPng24(obj){
			obj.width=obj.height=1; 
			obj.className=obj.className.replace(/\bpng24\b/i,''); 
			obj.style.filter = 
			"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
			obj.src='';  
			return ''; 
	}
}







/** google analytics **/

// intelliansystems
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22821937-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();



/*
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22821937-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
*/
