/**
 * Bootstrap.js - Bootstrap for all Javascript functionality
 * 
 * @author  Webstores <info at webstores dot nl>
 *           Copyright (c) Webstores internet totaalbureau <http://www.webstores.nl/>
 */

$(document).ready(function() {
	
	// External links
	var a=document.getElementsByTagName('a');for(var i=0;i<a.length;i++){if(/external/.test(a[i].rel)){a[i].target='_blank';}}
	
	// IE6 hover
	if($.browser.msie && $.browser.version.substr(0,1)<7){var hoverEls=$('navigation').getElementsByTagName('li');for(var i=0;i<hoverEls.length;i++){$(hoverEls[i]).mouseover(function(){$(this).addClass('iehover');});$(hoverEls[i]).mouseout(function(){$(this).removeClass('iehover');});}}
	
	Shadowbox.init({
		overlayOpacity: 0.75
	});
	
	if($('form')) {
		$('form').validate();
	}
		
});

Cufon.replace('h1, h2, h3, h4, h5, h6, #quote, #navigation a, #service-navigation li a, #sidebar-prev',{fontFamily:'ITCAvantGardeStd', hover:true});

