﻿$(document).ready(function(){		
	//sticky footer
	positionFooter(); 
	function positionFooter(){
		if($(document.body).height() < $(window).height()){
			$(".Footer").css({position: "absolute",top:($(window).scrollTop()+$(window).height()-$(".Footer").height())+"px"})
		}	
	} 
	$(window)
	.scroll(positionFooter)
	.resize(positionFooter)
	// fade in links	
	if($.browser.msie){}else{
	$('ul a:not(ul#sliderbody a)').mouseover(function() {
		$(this).fadeTo(50, 0.3, function() { $(this).fadeTo(100, 1.0); });
		});
	}
	//input toggle text
	$("input[type='text']").focus(function(){if(this.value==this.defaultValue)this.value='';}).bind('blur',function(){ if(this.value=='')this.value=this.defaultValue;});
	//footer loader tell friend en search
	$("#footerLoad .blockSearch").show();
	$("#footerLoad .blockTellfriend").hide();
	$('#loadSearch').click(function() {
		$("#footerLoad .blockSearch").fadeIn(400);
		$("#footerLoad .blockTellfriend").hide(); 
		});
	$('#loadTellfriend').click(function() {
		$("#footerLoad .blockTellfriend").fadeIn(400);
		$("#footerLoad .blockSearch").hide(); 
		});
	//portfolio dropdown overzicht
	$("#boxKlanten").hide();
	$('#loadKlanten').click(function() {
		$("#boxKlanten").slideDown(300, function() { $(this).stop(); });
		$("p#loadKlanten").css("color","#ff1a93");
		});
	$('#loadKlanten').click(function() {
		$("#boxKlanten").slideUp(300, function() { $("p#loadKlanten").css("color","#666666"); });	
		});
	});