	$(document).ready(function(){
		$("h1").sifr({font: 'eurostile', path: '/web/rdnucice/tools/',save: true});
		$("#sidebar h2, #content h2").sifr({font: 'eurostile2', path: '/web/rdnucice/tools/',save: true});
		$(".header").sifr({font: 'eurostile', path: '/web/rdnucice/tools/',save: true });
		$('#pic').cycle({ 
			speed:  'slow', 
			timeout: 7000, 
			next:   '#next2', 
			prev:   '#prev2' 
		});
	});
	
	$(function() {
		$('.map').maphilight(
		{
			fillColor: '70c469',
			fillOpacity: 0.2,
			strokeColor: '70c469',
			strokeOpacity: 0.5,
			strokeWidth: 1,
			fade: false
		}
		);
	});
	$(document).ready( function() { 
		$('a.external_link').click( function() { 
			window.open(this.href);  
			return false; 
			}); 
	});
	
	$(document).ready(function(){
		  xOffset = 0;
		  yOffset = 130;
		  var myWidth = 0;
		  if( typeof( window.innerWidth ) == 'number' ) {
			myWidth = window.innerWidth;
		  } else if( document.documentElement && ( document.documentElement.clientWidth ) ) {
			myWidth = document.documentElement.clientWidth;
		  }
		$('area').each(function(){
			$(this).click(function(e){
				$(".bubble").hide();
				if(e.pageX > myWidth/2) 
					{
					$("#" + $(this).attr("href")).show().css("top",(e.pageY - yOffset) + "px").css("left",(e.pageX - xOffset - 244) + "px");
					$(".bg-right").css("display","block");
					$(".bg-left").css("display","none");return false;
					}
				else{
					$("#" + $(this).attr("href")).show().css("top",(e.pageY - yOffset) + "px").css("left",(e.pageX - xOffset) + "px");
					$(".bg-left").css("display","block");
					$(".bg-right").css("display","none");return false;
					}
			});
		});
		
		$(".close").click(function(){$(".bubble").hide();});
	}); 
