var d = document, w = window;

// png fix
var shim='assets/js/x.gif';
var shim_pattern	= /x\.gif$/i;
var bg_fnFixPng = function(obj) {
	var mode = 'scale';
	var bg	= obj.currentStyle.backgroundImage;
	var src = bg.substring(5,bg.length-2);
	if (obj.currentStyle.backgroundRepeat == 'no-repeat') {
		mode = 'crop';
	}
	obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + mode + "')";
	obj.style.backgroundImage = 'url('+shim+')';
};
if(window.attachEvent){window.attachEvent('onload', runSuperSleight);}
//$(window).bind('load', runSuperSleight); // mag enkel in IE werken he!



function runSuperSleight(){


	$('div.midden, div.boven, div.onder').each(function(item){
		bg_fnFixPng(this);
	});
	
	$('div#lvl3 a.item').each(function(item){
		bg_fnFixPng(this);
	});
	
	$('.fix').each(function(item){
		
		bg_fnFixPng(this);
	});
}

$(document).ready(function(){
	$('a.deact').fadeTo(0, 0.5);
	$('.tooltip').tooltip();
	
});