
//get agent
var ie6 = false;
var uAgent = navigator.userAgent;
if(uAgent.indexOf("MSIE") != -1){

    // userAgent の文字列から「MSIE 数値;」の数値の部分を切り抜く
    var strTop = uAgent.indexOf("MSIE")+5;
    var strEnd = uAgent.indexOf(";", strTop);
    var version = uAgent.substring(strTop, strEnd);

    if(version == "6.0"){
    	ie6 = true;
    }else{
    	ie6 = false;
    }
}


//onload mini height(no IE6)
function setHeight(){

	if(document.all){
		//for IE
		var height =  document.documentElement.clientHeight;
	}else{
		var height =  window.innerHeight;
	}

	if(!ie6){
		document.getElementById('contentInner').style.minHeight = (height - 132 - 102) + "px";
	}else{
		//for IE6
		document.getElementById('contentInner').style.height= (height - 132 - 102) + "px";
	}
}

//END
//top -> height - 132 - 102


