	  function showBack(id,i) {
        if(i==0) document.getElementById(id).style.background='url(images/effect.gif) no-repeat center';
      	else document.getElementById(id).style.background='';
	  } 
//profili 
    var ip=0; 
	jQuery(document).ready(function() {
	jQuery("#m2").hover(function() {
		 document.getElementById("profil").style.visibility="visible";
		 if(ip==0) jQuery("#profil").slideDown(400); 
		 showBack("m2",0);
		 ip=1;
	}, 
	function() {
			setTimeout('if(ip!=2) { document.getElementById("profil").style.visibility="hidden"; ip=0; showBack("m2",1);}',100);
	});
	});
	
	jQuery(document).ready(function() {
	jQuery("#profil").hover(function() {
		 ip=2;
	}, 
	function() {
		setTimeout('if(ip!=1) { document.getElementById("profil").style.visibility="hidden"; ip=0; showBack("m2",1);}',100);
	});
	});

//ramki
    var ir=0; 
	jQuery(document).ready(function() {
	jQuery("#m3").hover(function() {
		 document.getElementById("ramki").style.visibility="visible";
		 if(ir==0) jQuery("#ramki").slideDown(400); 
		 showBack("m3",0);
		 ir=1;
	}, 
	function() {
			setTimeout('if(ir!=2) { document.getElementById("ramki").style.visibility="hidden"; ir=0; showBack("m3",1);}',100);
	});
	});
	
	jQuery(document).ready(function() {
	jQuery("#ramki").hover(function() {
		 ir=2;
	}, 
	function() {
		setTimeout('if(ir!=1) { document.getElementById("ramki").style.visibility="hidden"; ir=0; showBack("m3",1);}',100);
	});
	});

//albumi
    var ia=0; 
	jQuery(document).ready(function() {
	jQuery("#m4").hover(function() {
		 document.getElementById("albumi").style.visibility="visible";
		 if(ia==0) jQuery("#albumi").slideDown(400); 
		 showBack("m4",0);
		 ia=1;
	}, 
	function() {
			setTimeout('if(ia!=2) { document.getElementById("albumi").style.visibility="hidden"; ia=0; showBack("m4",1);}',100);
	});
	});
	
	jQuery(document).ready(function() {
	jQuery("#albumi").hover(function() {
		 ia=2;
	}, 
	function() {
		setTimeout('if(ia!=1) { document.getElementById("albumi").style.visibility="hidden"; ia=0; showBack("m4",1);}',100);
	});
	});

//kartini
    var ik=0; 
	jQuery(document).ready(function() {
	jQuery("#m5").hover(function() {
		 document.getElementById("kartini").style.visibility="visible";
		 if(ik==0) jQuery("#kartini").slideDown(400); 
		 showBack("m5",0);
		 ik=1;
	}, 
	function() {
			setTimeout('if(ik!=2) { document.getElementById("kartini").style.visibility="hidden"; ik=0; showBack("m5",1);}',100);
	});
	});
	
	jQuery(document).ready(function() {
	jQuery("#kartini").hover(function() {
		 ik=2;
	}, 
	function() {
		setTimeout('if(ik!=1) { document.getElementById("kartini").style.visibility="hidden"; ik=0; showBack("m5",1);}',100);
	});
	});
//paspartu
	var ipp=0; 
	jQuery(document).ready(function() {
	jQuery("#pasp").hover(function() {
		 document.getElementById("paspartu").style.visibility="visible";
		 if(ipp==0) jQuery("#paspartu").slideDown(400); 
		 ipp=1;
		 ip=1;
	}, 
	function() {
			setTimeout('if(ipp!=2) { document.getElementById("paspartu").style.visibility="hidden"; ipp=0; ip=0;}',100);
	});
	});
	
	jQuery(document).ready(function() {
	jQuery("#paspartu").hover(function() {
		 ipp=2;
	}, 
	function() {
		setTimeout('if(ipp!=1) { document.getElementById("paspartu").style.visibility="hidden"; ipp=0; document.getElementById("profil").style.visibility="hidden"; showBack("m2",1);}',100);
	});
	});

//interior
    var ii=0; 
	jQuery(document).ready(function() {
	jQuery("#m6").hover(function() {
		 document.getElementById("interior").style.visibility="visible";
		 if(ii==0) jQuery("#interior").slideDown(400); 
		 showBack("m6",0);
		 ii=1;
	}, 
	function() {
			setTimeout('if(ii!=2) { document.getElementById("interior").style.visibility="hidden"; ii=0; showBack("m6",1);}',100);
	});
	});
	
	jQuery(document).ready(function() {
	jQuery("#interior").hover(function() {
		 ii=2;
	}, 
	function() {
		setTimeout('if(ii!=1) { document.getElementById("interior").style.visibility="hidden"; ii=0; showBack("m6",1);}',100);
	});
	});
