// check browser type
//isMSIE = /*@cc_on!@*/false; 
isMSIE=(function(){
		var undef, v = 3, div = document.createElement('div');
		while (
			div.innerHTML = '<!--[if gt IE '+(++v)+']><i></i><![endif]-->',
			div.getElementsByTagName('i')[0]
		);
		return v> 4 ? v : undef;
	}());
isMSIE7 = (isMSIE == 7);
isMEIE6 = (isMSIE == 6);
isMSIE8 = (isMSIE == 8);
isMSIE9 = (isMSIE == 9);
isMSIE8MODE7 = (isMSIE && !isMSIE7 && !isMEIE6 );
isMSIE = !! isMSIE;
isFirefox=/a/[-1]=='a';
isFirefox2=(function x(){})[-6]=='x';
isFirefox3=(function x(){})[-5]=='x';
isSafari =/a/.__proto__=='//';
isOpera = (!! window.opera);
isWebkit = ( navigator.userAgent.indexOf( "WebKit" ) != -1 );

//20110704 add
isiPhone = ( navigator.userAgent.indexOf( "iPhone" ) != -1 );
isiPad = ( navigator.userAgent.indexOf( "iPad" ) != -1 );
isiOS = ( isiPhone || isiPad );


/*@cc_on
if (@_jscript_version < 9) {
    var _d = document;
    eval("var document = _d");
}
@*/
