$(document).ready(function()
	{
	// Default Search Text
	var defaultSearchString = 'Pretraga...';
	if ($('.search_text').val() == '') $('.search_text').val(defaultSearchString);
	$('.search_text').click(function()
		{
		if ($(this).val() == defaultSearchString) $(this).val('');
		}).blur(function()
		{
		if ($(this).val() == '') $(this).val(defaultSearchString);
		});
	
	// Change to Print css
	$('.icon_print a').click(function()
		{
		$("link[media='screen']").attr("href", "/styles/print_styles.css");
		return false;
		});
	
	// Change to Screen css
	$('.hidden_link a').click(function()
		{
		$("link[media='screen']").attr("href", "/styles/styles.css");
		return false;
		});
	
	
	// Fade in Main banner
	$('.main_banner').css('opacity', 0.01);
	$('.main_banner').show();
	$('.main_banner').fadeTo(2000, 1);
	
		$("a.iframe").fancybox(
		{
		'titleShow'		: false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'width'			: 960,
		'height'		: 550,
		'centerOnScroll': true
		});
		
		$("a.link_to_facebook").each(function()
		{
		$(this).attr("href", "http://www.facebook.com/share.php?u=" + window.location);
		});

	
	});


function changePage(newLoc)
 {
   nextPage = newLoc.options[newLoc.selectedIndex].value
		
   if (nextPage != "")
   {
      document.location.href = nextPage
   }
 }

