scriptsLoad([																
			  "scripts/jquery/preloadCssImages",														//preload all images in css	
			  "scripts/jquery/mailto",															//encode/scramble mail addresses
			  "scripts/jquery/easing"																	//easing of animations
			]);

/**
* DOM ready
*/
$(document).ready( function(){	
	
	//form - text input - change styles
	$('input, textarea').addClass("idleField");
	$('input, textarea').focus(function() {
		$(this).removeClass("idleField").addClass("focusField");
		if(this.value != this.defaultValue){
			this.select();
		}
	});
	$('input, textarea').blur(function() {
		$(this).removeClass("focusField").addClass("idleField");
		if ($.trim(this.value) == ''){
			this.value = (this.defaultValue ? this.defaultValue : '');
		}
	});	
	
	
	//a link - hover
	$('a').mouseover(function() {
		$(this).addClass("over");
	});	
	$('a').mouseout(function() {
		$(this).removeClass("over");
	});	
	
	
	//a opener
	$('a.opener').click(function() {
		try{								 
			$('.target').not($('#' + $(this)[0].id + '_target')).slideUp();								 
			$('#' + $(this)[0].id + '_target').slideToggle();
		}catch(e){}
		return false;
	});	
	

	
	//preload all images in css							
	$preloadCssImages();
	
	try{
		$fixPNG();
	} catch(e){}
});	



/**
* Window loaded
*/
$(window).bind("load", function(){
	
	//header background
	$('#header_bg').css({
		'top' : $('#main .content_top').offset().top,
		'height' : $('#main .content_top').outerHeight()
	});
	
});
