// JavaScript Document
function  menuClick(objectID)
{
var el = document.getElementById(objectID);
if (el.style.display == 'block')
    {
	el.style.display='none';
	}
    else {
	  el.style.display='block';
		}

}


function create(pictureSrc,winWidth,winHeight,tit) {

var sh = window.screen.availHeight;
var sw = window.screen.availWidth;
     
storyWin = window.open(pictureSrc,"","status=0,resizable=0,titlebar=0,toolbar=0,width="+ (winWidth) +",height="+ (winHeight) +",directories=0,scrollbars=0,resize=0, menubar=0,left="+((sw-winWidth)/2)+",top="+((sh-winHeight)/2)+"");
   
storyWin.focus( );


};

function  neWin(level,kor,winWidth,winHeight) {

/*winWidth=525;
winHeight=470;*/
var sh = window.screen.availHeight;
var sw = window.screen.availWidth;
     
storyWin = window.open("build.php?level="+level+"&kor="+kor,"","status=0,resizable=1,titlebar=0,toolbar=0,width="+ (winWidth) +",height="+ (winHeight) +",directories=0,scrollbars=0,resize=1, menubar=0,left="+((sw-winWidth)/2)+",top="+((sh-winHeight)/2)+"");
   
storyWin.focus( );


};

