$(document).ready(function(){

  //external window
  $('a[class="external"]').click(function(){
    this.target = "_blank";
  });
 
  //forms - focus
  $("input[type=password], input[type=text], textarea").focus(function(){
    $(this).addClass("focus");
  });
  $("input[type=password], input[type=text], textarea").blur(function(){
    if ($(this).find(".focus")) {
      $(this).removeClass("focus");
    }
  });
  
  //forms - hover
  $("input.zoekButton").hover(function(){
    $(this).addClass("hover");
  }, function(){
    $(this).removeClass("hover");
  });
  
  //forms - no javascript button
  $('input.no_javascript').hide();
  
  //login - toggle
  $("body.normal form#form_login").hide();
  $("ul#options li#options_login span").click(function(e){
    e.preventDefault();
    $(this).next("form#form_login").toggle();
  });
  
  //dropdown menu - hover IE6
  $('div#call_to_actions div').hover(function(){
    $(this).addClass('hover');
  }, function(){
    $(this).removeClass('hover');
  });
  
	$("a[rel=example_group]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'titleShow' 	: false		
	});

});
