/*JavaScripts*/

/*browser
******************************************/
function BrowserCheck() {
	var ua = navigator.userAgent;       // ユーザーエージェント
    var inBR;                   // サイズ
    var nHit = ua.indexOf("MSIE");     // 合致した部分の先頭文字の添え字
    var bIE = (nHit >=  0);                 // IE かどうか
    var bVer6 = (bIE && ua.substr(nHit+5, 1) == "6");  // バージョンが 6 かどうか
    var bStd = (document.compatMode && document.compatMode=="CSS1Compat");
                                                                           // 標準モードかどうか
    if (bIE) {
         if (bVer6 && bStd) {
              inBR = "A";
			   
			   return inBR;
         } else {
              inBR = "B";
			   
			   return inBR;
         }
    } else {
         inBR = "c";
		  
		  return inBR;
    }
}

/*NewSize
******************************************/
function NewSize(datoY){
	if(document.all && !document.getElementById) {
 		document.all['swfH'].style.pixelHeight = datoY;
	}else{
		document.getElementById('swfH').style.height = datoY;
	}
}

/*getWindowHeight
******************************************/
function getWindowHeight(){
     var ua = navigator.userAgent;       // ユーザーエージェント
     var inH;                   // サイズ
     var nHit = ua.indexOf("MSIE");     // 合致した部分の先頭文字の添え字
     var bIE = (nHit >=  0);                 // IE かどうか
     var bVer6 = (bIE && ua.substr(nHit+5, 1) == "6");  // バージョンが 6 かどうか
     var bStd = (document.compatMode && document.compatMode=="CSS1Compat");
                                                                           // 標準モードかどうか
     if (bIE) {
          if (bVer6 && bStd) {
               inH = document.documentElement.clientHeight;
			   
			    return inH;
          } else {
               inH = document.body.clientHeight;
			   
			    return inH;
          }
     } else {
          inH = window.innerHeight;
		  
		   return inH;
     }
}

/*getWindowWidth
******************************************/
function getWindowWidth(){
     var ua = navigator.userAgent;       // ユーザーエージェント
     var inW;                   // サイズ
     var nHit = ua.indexOf("MSIE");     // 合致した部分の先頭文字の添え字
     var bIE = (nHit >=  0);                 // IE かどうか
     var bVer6 = (bIE && ua.substr(nHit+5, 1) == "6");  // バージョンが 6 かどうか
     var bStd = (document.compatMode && document.compatMode=="CSS1Compat");
                                                                           // 標準モードかどうか
     if (bIE) {
          if (bVer6 && bStd) {
               inW = document.documentElement.clientWidth + 0;
			   
			    return inW;
          } else {
               inW = document.body.clientWidth + 0;
			   
			    return inW;
          }
     } else {
          inW = window.innerWidth;
		  
		   return inW;
     }
}