function PLS(preloadStr){
	//
	UAgent = 'normal';
		var ua = navigator.userAgent;
		ua = ua.toUpperCase();
		var s,e,n;
		if ( ua.indexOf('NETSCAPE') > -1){
			UAgent = 'NN';
		}
		if ( ua.indexOf('MSIE') > -1){
			s = ua.indexOf('MSIE') +5;
			ver = ua.charAt(s);
			n = ua.substring(s,s+3);
		}
		if ( ua.indexOf('MSIE') > -1){
			UAgent = 'IE';
		}
		
		if ( ua.indexOf('MSIE') > -1 && ua.indexOf('MAC') > -1){
			UAgent = 'MacIE';
		}
		if ( ua.indexOf('SAFARI') > -1){
			UAgent = 'safari';
		}
		if ( ua.indexOf('OPERA') > -1){
			if(ua.indexOf('MAC') > -1){
				UAgent = 'MacOpera';
			}else{
				UAgent = 'opera';
			}
		}
}

function vanish(){
var vanish_tar = '#sub_menu2';	 $(vanish_tar).slideUp(100);

}

function menuCtrl2(type){
PLS();	
	switch(type){
		case 'sub_menu22':
		if (UAgent=='IE' || UAgent=='MacIE'){
			var ww = document.body.clientWidth;
				if(ww<956){ww=198;}else{ww = ww/2-280;}
		}else{
			var ww = innerWidth; 
			if(ww<956){ww=199;}else{ww = ww/2-290;}
			}
		break;
	}//switch End
	type='#'+type;
	$(type).slideDown(200);
	$(type).css('left',ww+'px');
}

function select_mail_mode(n){
	document.getElementById("join").value=n;
	document.getElementById("clear").value=n; 
}
