function IndexKepBetolt(){
  MM_preloadImages('img/ujhirdetes_b.jpg','img/p1_b.gif','img/p2_b.gif','img/p3_b.gif',
				   'img/p4_b.gif','img/p5_b.gif','img/p6_b.gif','img/p7_b.gif',
				   'img/nyit_b.gif','img/ker_b.gif','img/elv_b.gif','img/menh_b.gif',
				   'img/faj_b.gif','img/ado_b.gif','img/alb_b.gif','img/ese_b.gif',
				   'img/kuty_b.gif','img/ceg_b.gif','img/nemf_b.gif','img/prof_b.gif');
}

function Kutyasport() { window.location="ekutya.php?oldal=kutyasport"; }
function AktForum() { window.location="ekutya.php?oldal=forum&fid=39"; }

function Logout() {window.location="ekutya.php?oldal=logout"; }
function Forumtema(){ window.location="ekutya.php?oldal=forumtema"; } 
function Forumbe(f,n){ if(f || n) window.location="ekutya.php?oldal=forum&fid="+f+"&kid="+n; }
function Esemeny(){ window.location="ekutya.php?oldal=esemenynaptar"; } 
function Elveszett(n){ if(n) Hirdetes(n); else window.location="ekutya.php?oldal=elvtal"; }
function Hirdetes(n,anchor){ if(n) window.location="ekutya.php?oldal=kereskinal_detailed&uj=1&hikod="+n+anchor;}
function Fajta(n){ if(n) window.location="ekutya.php?oldal=fajta_detailed&kod="+n; }
function Sos(){ window.location="ekutya.php?oldal=menhely&SOS=1&kerbtn=1"; }
function KeresKinalFajta(n){ if(n) window.location="ekutya.php?oldal=kereskinal&kerbtn=1&hifajta[]="+n; }
function MenhelyFajta(n){ if(n) window.location="ekutya.php?oldal=menhely&SOS=2&kerbtn=1&hifajta[]="+n; }
function ElveszettFajta(n){ if(n) window.location="ekutya.php?oldal=elvtal&kerbtn=1&hifajta[]="+n; }
function KennelFajta(n) { if(n) window.location="ekutya.php?oldal=kennel&kerbtn=1&hifajta[]="+n; }
function HobbyFajta(n) { if(n) window.location="ekutya.php?oldal=hobby&kerbtn=1&hifajta[]="+n; }
function CegKennelFajta(k,f1,f2) { window.location="ekutya.php?oldal=cegtar&kerbtn=1&cgKat="+k+"&f1="+f1+"&f2="+f2; }
function Kennel(n){ if(n) window.location="ekutya.php?oldal=kennel_detailed&kod="+n; }
function Hobby(n){ if(n) window.location="ekutya.php?oldal=hobby_detailed&kod="+n; }
function Ado1sz(n){ if(n) window.location="ekutya.php?oldal=ado1sz_detailed&kod="+n; }
function Ceg(n){ if(n) window.location="ekutya.php?oldal=cegtar_detailed&kod="+n; }
function Cikk(n){ if(n) window.location="ekutya.php?oldal=cikk_detailed&kod="+n; }
function NemfeledListas() { window.location="ekutya.php?oldal=nemfeledunk&nezet=2"; }
function NemfeledParc() { window.location="ekutya.php?oldal=nemfeledunk"; }
function NemfeledSir(n){ if(n) window.location="ekutya.php?oldal=nemfeledunk_detailed&kod="+n; }
function JelszoGen() {window.location="ekutya.php?oldal=jgen_start"; }
function Hirdfel(r) { if(r) window.location="ekutya.php?oldal=hirdfel_start&ROVAT="+r+"&formnez=1"; }
function Regfel() { window.location="ekutya.php?oldal=regisztral_start"; }
function Nemffel() { window.location="ekutya.php?oldal=nemffel_start"; }
function Hobbyfel() { window.location="ekutya.php?oldal=hobbyfel_start"; }
function Kennelfel() { window.location="ekutya.php?oldal=kennelfel_start"; }
function Esemenyfel(){ window.location="ekutya.php?oldal=esemfel_start"; } 
function Ado1szfel(){ window.location="ekutya.php?oldal=ado1szfel_start"; } 
function Cegtarfel(){ window.location="ekutya.php?oldal=cegtarfel_start"; } 
function Media(n) { if(n) window.location="ekutya.php?oldal=media_detailed&kod="+n; } 

function DivOpen(dnev) {
  var divelem = document.getElementById(dnev);
  if (divelem.style.display!="none")
    divelem.style.display="none";
  else	
   divelem.style.display="";
}


function DivSZURO(dnev){
  var fltr = document.getElementById("FLTR").value;
  if(fltr=='1') {//bezár
    document.getElementById("FLTR").value = '0';
    document.getElementById(dnev).style.display="none";
  }
  else { //kinyit
    document.getElementById("FLTR").value = '1';
    document.getElementById(dnev).style.display="";
  }
  
}


function KepAblakNyit(kep,kepszov,szelesseg,magassag){
  url="kepmutat.php?k="+kep+"&ksz="+kepszov+"&wsz="+szelesseg+"&wm="+magassag;
  ablak = window.open(url,"_blank"," fullscreen=1, toolbar=0, location=0, directories=0, status=1, menubar=0, resizable=0, scrollbars=1",true);
  if (window.focus) ablak.focus();
}


function MM_preloadImages() { //v3.0 document.MM_p tömb!
  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 MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


//MM_swapImage('BemutImg','','img/bem_b.gif',1)
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; 
  document.MM_sr=new Array; 
  for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){
    document.MM_sr[j++]=x; 
	if(!x.oSrc) 
	  x.oSrc=x.src; 
	  x.src=a[i+2];
	}
}

