
function openFullscreen(u,n){
	if(mac){
		if(ie){ // MAC IE
			var hoseix = -12; var hoseiy = -48;
		}else{ // MAC NN
			var hoseix = -12; var hoseiy = -48;
		}
		var w = window.screen.width + hoseix; // 
		var h = window.screen.height + hoseiy; // 

   	newwindow = window.open(u,n,"scrollbars=no,width=" + w + ",height=" + h);
		newwindow.moveTo(0,0);
		
	}else if (nesc4){ // WIN NN
		var hoseix = -6; var hoseiy = 0;
		var w = window.screen.width + hoseix; // 
		var h = window.screen.height + hoseiy; // 

	   	newwindow = window.open(u,n,"scrollbars=no,width=" + w + ",height=" + h);
		newwindow.moveTo(0,0);
		newwindow.focus();
	}else if (ie4){
		window.open(u,"screen","fullscreen=yes");
	}else{
		location.href=u;

	}
}



(function() {
	window.RedirectConf = {
		redirectURL : '/sp/',
		idLink : 'linkSpSite'
	};
})();
(function() {
	var ua = navigator.userAgent.toLowerCase();
	if((
		ua.indexOf('iphone') > 0 && ua.indexOf('ipad') == -1) || ua.indexOf('ipod') > 0 || ua.indexOf('android') > 0) {
		if(document.referrer.indexOf(location.host+window.RedirectConf.redirectURL)!==-1){
			Redirect.setModeView();
		}
		if(!Redirect.checkModeViewPc()) {
			location.href = RedirectConf.redirectURL;
		} else {
			window.onload = function(){
				var element = document.getElementById(RedirectConf.idLink);
				element.setAttribute('style','display:inline;');
			}
		}
	}
})();

