﻿function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'") 
  if (restore) selObj.selectedIndex=0;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function nagyobb_kep(img,w,h,title){
s=window.open('','','width='+w+',height='+h+',location=no,scrollbars=no,menubar=no,resizable=no,toolbar=no,status=yes,dependent=no');
s.document.write('<html><head><title>'+title+'</title></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><a href="#" onclick="window.close();return false;"><img border="0" src="'+img+'" width="'+w+'" height="'+h+'" alt="Click on the picture to close."></a></body></html>');
}

function div_open(idx){
 if(document.getElementById('cs_'+idx).style.display=='none'){
  document.getElementById('cs_'+idx).style.display='';
  s=document.getElementById('im_'+idx).src;
  s=s.replace('_close','_open');
  document.getElementById('im_'+idx).src=s;
 }
 else{
  document.getElementById('cs_'+idx).style.display='none';
 	s=document.getElementById('im_'+idx).src;
 	s=s.replace('_open','_close');
 	document.getElementById('im_'+idx).src=s;
 }
}

function up(url,tipus,w,h){
 if(url=='-'){
  return;	
 }
 if(url=='div'){
 	if(document.getElementById(tipus).style.display=='inline'){
 	 document.getElementById(tipus).style.display='none';
 	}
 	else{
 	 document.getElementById(tipus).style.display='inline';
 	}
 }
 if(url!='-'){
  if(tipus==1){
   self.location=url;
  }
  if(tipus==2){
   s=window.open(url,'newwind','');	
  }
  if(tipus==3){
 	 s=window.open(url,'','width='+w+',height='+h+',location=no,scrollbars=no,menubar=no,resizable=no,toolbar=no,status=yes,dependent=no');
  }
 }
 return;
}

function nagyobb_kep(img,w,h){
 s=window.open('','','width='+w+',height='+h+',location=no,scrollbars=no,menubar=no,resizable=no,toolbar=no,status=yes,dependent=no');
 s.document.write('<html><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><a href="#" onclick="window.close();return false;"><img border="0" src="'+img+'" width="'+w+'" height="'+h+'" alt="Click on the picture to close."></a></body></html>');
}

function menu_over(idx,over){
 var obj=document.getElementById('im_'+idx);
 var s=obj.src;
 if(over==1){
 	s=s.replace('_0.gif','_1.gif');
 	obj.src=s;
 }
 else{
  s=s.replace('_1.gif','_0.gif');
 	obj.src=s;
 }
}

function over(id,status){
 if(status==1){
  document.getElementById(id).style.background="url(img/bg-fade2.gif)";
 }
 else{
  document.getElementById(id).style.background="url(img/bg-fade1.gif)";
 }
}