/// <reference path="jquery-1.3.2-vsdoc2.js" />
/// <reference path="swfobject-vsdoc.js" />
/// <reference path="sifr-vsdoc.js" />

$(document).ready(function() {

	/* 
		FADE OUT AND IN PAGE
		
		This script fades out and in new page when click on all links. It requires a div that lays over all content: 
		<div id="loader" style="position:fixed;top:0px;left:0px;width:100%;height:100%;background:#13191d;z-index:5000;display:none;">&#160;</div>		
	*/
	/*
		$('#loader').css({ display: "block" });
		setTimeout('$("#loader").fadeOut("400")', 500);

		// loop through a tags on page 
		$('a').each(function(idx, item) {
			// if it is not a mailto tag
			if (item.href.indexOf("mailto") == -1) {
				var url = "javascript:delayedRedirect('" + item.href + "');"
				item.href = url;
			}
		});
	*/
	$('#showhide_search').click(function(){
			if($(this).html()=='Vis avansert søk')$(this).html('Skjul avansert søk');
				else $(this).html('Vis avansert søk');
		$('.custom_checkbox_container').toggle('slow', function() {
				
		//alert('test');
    // Animation complete.
    	});	
			
	});
	


});
