// ÁÜ¾Æ¿ô
function ZoomIn()
{
	var doc = top.document;
	var element;

	if (doc.body.style.zoom == 0) {
		doc.body.style.zoom = 1.1;
	}else {
		doc.body.style.zoom *= 1.1;

	}
}

function ZoomOut()
{
	var doc = top.document;
	var element;

	if (doc.body.style.zoom != 1) {
		doc.body.style.zoom /= 1.1;
	}
}
function ZoomDefault()
{
	var doc = top.document;
	var element;

		doc.body.style.zoom = 1;
}


// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, À©µµ¿ì¸ðµå)
function flashWrite(url,w,h,id,bg,win,text){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object title='"+text+"' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);

}



var browserName = navigator.appName;

var menutop=-472;
var pace=30;

var vorzeimenu1=-1;
var vorzeimenu2=-1;

var step;
//var direction
var pause=5;

var thismenu;
var vorzeichen=1;

var menuismoving="no";


function inite() {
	document.getElementById("menu1").style.top = menutop + "px";
}


function getmenuname(clickedmenu) {
	if (menuismoving=="no") {
		thismenu=document.getElementById(clickedmenu).style;
		step=pace;
		checkdirection();
		changeRollover(clickedmenu);
		movemenu(clickedmenu);
	}
}

function changeRollover(clickedmenu) {
	var view_btn = document.getElementById(clickedmenu+"_open1");
	var thismenu = document.getElementById(clickedmenu).style;
	var onoff = eval("vorzei" + clickedmenu);

	if (onoff>0) {
		if (view_btn.tagName=="IMG") {
			view_btn.src = view_btn.src.replace(clickedmenu+"_open.gif", clickedmenu+"_close.gif");
		}
//		thismenu.zIndex=100;
//		document.getElementById("main_banner").style.display="none";

	}else {
		if (view_btn.tagName=="IMG") {
			view_btn.src = view_btn.src.replace(clickedmenu+"_close.gif", clickedmenu+"_open.gif");
		}
//		thismenu.zIndex=0;
//		document.getElementById("main_banner").style.display="block";
	}
}

function checkdirection(clickedmenu) {

	if (thismenu == document.getElementById('menu1').style){
		vorzeimenu1 = vorzeimenu1 * -1;
		vorzeichen = vorzeimenu1;
	}
    menuismoving="yes";
}


function movemenu() {

	if (step >= 0) {
		thismenu_p = parseInt(thismenu.top);
		aaa = thismenu_p += step * vorzeichen;
		thismenu.top = aaa + "px";
		step--;
		var movetimer=setTimeout("movemenu()",pause);
	}
	else {
		menuismoving="no";
		clearTimeout(movetimer);
	}
}

//ÇªÅÍ Á¡ÇÁ¸Þ´º
function go_site(val){
	if ( val != "") {
		window.open(val,'_blank');
	}
}


function resizeFrame(iframeObj){
	iframeObj.style.height = iframeObj.contentWindow.document.body.scrollHeight + "px";
}