// JavaScript Document





$(window).load(function() {
    $('p.msg').html('Mouse over images for pulse effect');
});
$(document).ready(function() {
    $('div.thumb3 img').hoverpulse();
});


//<![CDATA[
		$(function() {
			if ($.browser.ie && $.browser.version < 8)
				$('<span>&#9658;</span>').prependTo('kbd');
			if ($.browser.ie && $.browser.version < 7 || $.browser.safari && $.browser.version < 600)
				$('#menu a').hover(function() {
					$(this).next().show();
				}, function() {
					$(this).next().hide();
				});
		});
//]]>
	

//<![CDATA[
  function displaySource(name) {
    $('<pre>'
        + $('#display-' + name).prevAll('script').eq(0).html() //$('script').text() is broken on IE5
            .replace(/^\s*|\s*$/g, '')
            .split('\n').slice(1, -1).join('\n')
            .replace(/(^|\n)    /g, '$1')
            .replace(/('[^']*')/g, '<i>$1</i>')
        + '</pre>')
      .insertAfter('#display-' + name);
  }
//]]>



$(document).ready(function(){
	
//Set default open/close settings
$('.acc_container').hide(); //Hide/close all containers
$('.acc_trigger:first').addClass('active').next().show(); //Add "active" class to first trigger, then show/open the immediate next container

//On Click
$('.acc_trigger').click(function(){
	if( $(this).next().is(':hidden') ) { //If immediate next container is closed...
		$('.acc_trigger').removeClass('active').next().slideUp(); //Remove all .acc_trigger classes and slide up the immediate next container
		$(this).toggleClass('active').next().slideDown(); //Add .acc_trigger class to clicked trigger and slide down the immediate next container
	}
	return false; //Prevent the browser jump to the link anchor
});

});



//privat settings
function validate(text1,text2,text3,text4) {
    if (text1==text2 && text3==text4)
        load('offline.html');
    else
    {
        alert('Login incorrect..');
    }
}

function load(url) {
    location.href=url;
}



