function inc(fname){
	var body = document.getElementsByTagName('head').item(0);
	script = document.createElement('script');
	script.src = fname;
	script.type = 'text/javascript';
	body.appendChild(script)
}

temp=navigator.appVersion.split('MSIE');
ieVer=parseInt(temp[1]);

if (ieVer == 6){
	inc('js/pngfix.js');
	$(document).ready(function(){
		correctPNG();
		$('#homeblokken ul,#homeblokken ul').hover(
		function(){
			$(this).attr('class', 'homeblokkenIE6');
			},
		function(){
			$(this).attr('class', '#homeblokken ul');
			}
		);
	});
}else{
	var fileref=document.createElement("link");
  fileref.setAttribute("rel", "stylesheet");
  fileref.setAttribute("type", "text/css");
  fileref.setAttribute("href", "css/backgroundImages.css");
  document.getElementsByTagName("head")[0].appendChild(fileref);
} 
