$(document).ready(function() {	

var myFile = document.location.toString();
if (myFile.match('#')) { // the URL contains an anchor
  // click the navigation item corresponding to the anchor
  var myAnchor = '#' + myFile.split('#')[1];
 
  $('ul.simplePagerNav  li a[href="' + myAnchor + '"]').click();
} else {
  // click the first navigation item
 // $('ol#nav li:first').click();
}


$('#aveqForm126_2 input').live('focus mouseup', function(e) {
	
	
	if (e.type == 'focusin' && this.value == this.defaultValue) {
		
		theId = $(e.currentTarget).attr("id");
		
	}
	
	
	
	if (e.type == 'mouseup') {
		return false;
	}else{//alert(theId);	
		
		setTimeout(function(){ $("#"+theId).select(); }, 0);
		
	}	
});




jQuery('#mycarousel').jcarousel({
		auto: 50,
		wrap: 'last'		
});

 
 
if($(".simplePagerNav")){
	$(".simplePagerNav").css("margin-left","-"+($(".simplePagerNav").width()/2)+"px");
}
 $(".rightActionBlockWrapper").cycle({
		fx: 'scrollLeft',
		pager:  '#nav', 
		pagerAnchorBuilder: function(idx, slide) { 
		     // return selector string for existing anchor 
		        return '#nav li:eq(' + idx + ') a'; 
		}
	});
 
$("#imageCycle").cycle({
		fx: 'scrollLeft'		
	});

jQuery('#medewerker_carousel').jcarousel({
		auto: 0,
		wrap: 'last'	
				
});


  $("a[rel^='prettyPhoto']").prettyPhoto({
	animation_Speed: 'normal',
	horizontal_padding: 25,
	show_Title: false,
	allow_resize: true,
	theme: 'pp_default',
	keyboard_shortcuts: true,
	social_tools: '',
	gallery_markup: ''
  });
  
$("#max_673_1").change(function(){
	
	

  	
});

if($("#melding")){
	$("#melding").css("position","absolute");

}
if($("#headerLogo")){
	$("#headerLogo").css("position","absolute");

}
});
