/*
  Author: Daniel Sliwa
  email: daniel@pro.ie
  Created: 2008 12 02
  
  This script helps to cooperate both scripts for transparent png's and for onmouseover changing
  
  do not add anymore :
  //onload="KD_IEPngFix();" to the body tag (nor "KD_IEPngFix();" to the onload)
*/


var iepngfixpath = 'scripts/iepngfix.htc';
var KD_IEPngFix={init:function(){KD_IEPngFix.add_event(window,"load",KD_IEPngFix.makepng);},makepng:function(){ if(document.all && /MSIE (5\.5|6)/.test(navigator.userAgent) && document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule){/*// save all sources for onmouseover changing*/var i;for(i=0;i<(document.images.length);i++){/*// for each images check it its png */ if ((/\.png([^\.]+|$)/i).test(document.images[i].src)){document.images[i].oSrc = document.images[i].src;}}/* //document.styleSheets[0].addRule('*', 'behavior: url(iepngfix.htc)');// Feel free to add rules for specific elements only, as above.// You have to call this once for each selector, like so: */ document.styleSheets[0].addRule('img', 'behavior: url('+iepngfixpath+')');document.styleSheets[0].addRule('div', 'behavior: url('+iepngfixpath+')');}},add_event:function(e,event,func){if(e.addEventListener){e.addEventListener(event,func,false);}else if(e.attachEvent){e.attachEvent("on"+event,func);}}};KD_IEPngFix.init();


