/*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;
    }
}

/*scrollPos
******************************************/
function getScrollPosition() {
var POS;
document.scroll = function(){
   return {
      y: document.body.scrollTop  || document.documentElement.scrollTop
   };
};
	POS = document.scroll().y;
	
	return POS;
	
//alert(document.scroll().y);  //縦スクロール量をアラーﾄ表示
}

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

/*NewSizeW
******************************************/
function NewSizeW(datoW){
	if(document.all && !document.getElementById) {
 		document.all['swfH'].style.pixelWidth = datoW;
	}else{
		document.getElementById('swfH').style.width = datoW;
	}
}

/*getWindowHeight
******************************************/
function getWindowHeight(){
	var inH;
	
	 if(document.all){ // IE用
	 	inH = document.documentElement.clientHeight
	}
	else{
		inH = window.innerHeight;
	}
	
	return inH;
}


/*getWindowWidth
******************************************/
function getWindowWidth(){
     var inW;
	
	 if(document.all){ // IE用
	    inW = document.documentElement.clientWidth - 15;
		 
		return inW;
	}
	else{
		 inW = window.innerWidth - 15;
		
		return inW;
	}
}