
$(function(){
	
	if ($.browser.msie && $.browser.version < 7)
		$('img[src$=.png]').pngfix();

	$('img[hover],input[hover]').imghover();

});

swfobject.embedSWF("flash/intro.swf", "flashintro", "730", "570", "9.0.0", "flash/expressInstall.swf",{},{wmode:'transparent'});
swfobject.embedSWF("flash/wit.swf", "flash_wat_is", "556", "285", "9.0.0", "flash/expressInstall.swf",{},{wmode:'transparent'});
swfobject.embedSWF("flash/blauw.swf", "flash_hoe_word", "556", "285", "9.0.0", "flash/expressInstall.swf",{},{wmode:'transparent'});
swfobject.embedSWF("flash/geel.swf", "flash_werkgevers", "692", "285", "9.0.0", "flash/expressInstall.swf",{},{wmode:'transparent'});

;(function($){

	$.fn.pngfix = function () {	
		if ($.browser.msie && $.browser.version < 7) {
			return this.each (function () {
				$(this).css({
					filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.src+"')"
				});
				this.src = 'img/blank.gif';
			});
		} else {
			return this;
		}
	};

	$.prefetch = function() {
		for(var i = 0; i<arguments.length; i++)  {
			$("<img>").attr("src", arguments[i]);
		}
	}

	$.fn.imghover = function () {
		return this.each (function () {
			$(this).data('__img__original', this.src);
			$.prefetch($(this).attr('hover'));
		}).hover(function(){
			this.src = $(this).attr('hover');
		},function(){
			this.src = $(this).data('__img__original');
		});
	};

})(jQuery);

function loadContent (a, b) {
	$('#content').load('content/'+a+'_'+b+'.html');
}
