var httpObj = getHttpObject();
var httpObj1 = getHttpObject();
var httpObj2 = getHttpObject();

function Load_Header() {
	httpObj.open("get","navi_bar3.html");
	httpObj.onreadystatechange = function(){
		if( httpObj.readyState == 4 && httpObj.status == 200 ){
			document.getElementById("header").innerHTML =  httpObj.responseText;
		}
	}
	httpObj.send( null );
}

function Load_Footer() {
	httpObj1.open("get","footer.html");
	httpObj1.onreadystatechange = function(){
		if( httpObj1.readyState == 4 && httpObj1.status == 200 ){
			document.getElementById("footer").innerHTML = decodeURIComponent( httpObj1.responseText );
		}
	}
	httpObj1.send( null );
}

function Load_Content() {
	httpObj2.open("get","menu_p.html");
	httpObj2.onreadystatechange = function(){
		if( httpObj2.readyState == 4 && httpObj2.status == 200 ){
			document.getElementById("content").innerHTML = httpObj2.responseText;
		}
	}
	httpObj2.send( null );
}

function Navi2Menu( n ){

	var targetFile;

	switch( n ){
		case 1: targetFile = "menu_p.html"; break;
		case 2: targetFile = "whatsnew_p.html"; break;
		case 3: targetFile = "infonews_p.html"; break;
		case 4: targetFile = "showroom_new_p.html"; break;
		case 5: targetFile = "company_profile_new_p.html"; break;
		case 6: targetFile = "catalog_p.html"; break;
		case 7: targetFile = "sophisticated_items_p.html"; break;
		case 8: targetFile = "monogatari_mokuji_p.html"; break;
		case 9: targetFile = "partner_navi_p.html"; break;
	}

	location.href = targetFile;
//	httpObj2.open("get",targetFile);
//	httpObj2.onreadystatechange = function(){
//		if( httpObj2.readyState == 4 && httpObj2.status == 200 ){
//			document.getElementById("content").innerHTML = httpObj2.responseText;
//		}
//	}
//	httpObj2.send( null );

}
