//---------------------------------------------------------

function openNavMenu(id){
	var type_popup = "_self";
	// if (id == 7 || id == 5){
		// return false;
	// } else {
		switch (id) {
			case "1":
				link="dekdee_main.php?_="+Math.random();
				break;
			case "2":
				link="blog_profile.php?_="+Math.random();
				break;
			case "3":
				link="project_main.php?_="+Math.random();
				break;
			case "4":
				link="slide.php";
				break;
			case "5":
				link="blog_journal_list.php?_="+Math.random();
				break;
			case "6":
				link="http://board.okkid.net?_="+Math.random();
				type_popup = "_blank";
				break;
			case "7":
				link="other_link.php?_="+Math.random();
				break;
			default:
				link="main.php?_="+Math.random();
		}
		// window.location=link;
		window.open(link,type_popup);
	//}
}

function openAlert(text_show){
	alert(text_show);
}

function openPreview(flip_id){
	alert('Open Preview ID:' + id);
}

function getPageSizeWithScroll(){
	if( window.innerHeight && window.scrollMaxY ){ // Firefox
		pageWidth = window.innerWidth + window.scrollMaxX;
		pageHeight = window.innerHeight + window.scrollMaxY;
	} else if( document.body.scrollHeight > document.body.offsetHeight ) { // all but Explorer Mac
		pageWidth = document.body.scrollWidth;
		pageHeight = document.body.scrollHeight;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		pageWidth = document.body.offsetWidth + document.body.offsetLeft;
		pageHeight = document.body.offsetHeight + document.body.offsetTop;
	}
	arrayPageSizeWithScroll = new Array(pageWidth,pageHeight);
	return arrayPageSizeWithScroll;
}

function openForgot(){
var newWind = window.open("blog_forgot_password.php", "forgot", "status=no,menubar=no,height=358,width=450");
}

function openSingnature(){
var newWind = window.open("get_signature.php", "gennerate", "status=no,menubar=no,height=358,width=550");
}