// JavaScript Document
$(function() {
// IE functies
   $('body').css({'scrollbarFaceColor':'#E5E5CC'});		// Scrollbar IE
   $('#dataBody').css({'min-height':'450px'});			// Min-height
//Formuliereigenschappen voor IE7-
	$('input[type="checkbox"], input[type="radio"]').css({
		'background-image' : 'none',
		'border': 'none'
	});
	$('input[type="submit"], input[type="reset"], input[type="button"]').css({
		'font-family': 'Verdana, Arial, Helvetica, sans-serif',
		'font-size': '1em',
		'font-style': 'italic',
		'color': '#FFF',
		'margin': '0px',
		'background-color': '#ACAC81',
		'border': '1px solid #999',
		'padding-right': '4px',
		'padding-left': '4px'
	});
// Target blank
   $('a[href^=http://]').attr('target','_blank').attr('title',function(){
		return "Externe link naar: " + this.href;															
	});
	$('#dataBody a[href$=".pdf"]').attr('target','_blank');
// Title en alt attr
   $('img').attr('alt', function() {
		return (this.alt ? this.alt : '');
	});
	$('img').attr('title', function() {
		return (this.title ? this.title : this.alt);
	});
	$('a').attr('title', function() {
		return (this.title ? this.title : $(this).text());
	});
// list_hoekje -> laatste lijn verwijderen
	$('.list_hoekje_orange ul li:last-child, .list_hoekje_blauw ul li:last-child').css({'border-bottom': 'none'});	
// Herbereken relatieve paden
	function relPaden(startDiv, pad) {
	  // Afbeeldingen
	  /*$(startDiv + ' img').attr('src', function(){
		  $(this).attr('src', (pad + "/" + $(this).attr('src')));
		  //alert($(this).attr('src'));
	  });*/
	  // Links
	  $(startDiv + ' a:not([href^=http], [href^=ftp], [href^=javascript:], [href^=#:], [href^=mailto])').attr('href', function(){
		  $(this).attr('href', (pad + "/" + $(this).attr('href')));
		  //alert($(this).attr('href'));
	  });
	}
});