
	
	if(document.images){
		shoyn = new Image;
		shoyn.src = "images/shoyn.gif";
		nu1 = new Image;
		nu1.src = "images/nu.gif";		
		temp1 = new Image;
		temp1.src = "images/temp.gif";		
		temp2 = new Image;
		temp2.src = "images/temp2.gif";		
		ekr1 = new Image;
		ekr1.src = "images/ekr.gif";	
		ekr2 = new Image;
		ekr2.src = "images/ekr2.gif";	
		//ddd = new Image;
		//ddd.src = "images/";	
		//eee = new Image;
		//eee.src = "images/";	
		
	}
	function changeImages(img_name, new_src)
	{
		if(document.images)
			document.images[img_name].src=eval(new_src+".src");
	}
	
	function openw(linki,Wwidth,Wheight)
	{
		var Pwidth=screen.width/2-parseInt(Wwidth)/2;
		var Pheight=screen.height/2-parseInt(Wheight)/2;
		x=window.open(linki,"window","width="+Wwidth+",height="+Wheight+",scrollbars,top="+Pheight+",left="+Pwidth);
		x.focus();
	}
	
	function getCaptionID(tag){
		
			switch(tag){
				case "ekr":
					aaa =".cap1";
					break;
				case "temp":
					aaa = ".cap2";
					break;					
				case "shoyn":
					aaa = ".cap3";
					break;					
					
			}	
			return aaa;
	}
	
	$(document).ready(function(){

    //Set opacity on each span to 0%
    $(".rollover").css({'opacity':'0'});
	$(".cap1").css({'opacity':'0'});
	$(".cap2").css({'opacity':'0'});
	$(".cap3").css({'opacity':'0'});

	$('.lama-lo a').hover(
		function() {
			$(this).find('.rollover').stop().fadeTo(400, 1);
			
			var aaa = getCaptionID($(this).attr("class"));
			
			$(aaa).stop().fadeTo(400, 1);
		},
		function() {
			$(this).find('.rollover').stop().fadeTo(400, 0);
			var aaa = getCaptionID($(this).attr("class"));
			$(aaa).stop().fadeTo(400, 0);			
		}
	)

	});	

