// Make alpha-channel PNGs work correctly in IE.
function addEvent(obj, evType, fn, useCapture){
  if (obj.addEventListener){
    obj.addEventListener(evType, fn, useCapture);
    return true;
  } else if (obj.attachEvent){
    var r = obj.attachEvent("on"+evType, fn);
    return r;
  } else {
    alert("Handler could not be attached");
  }
}
function fix_pngs(){
	try {	
		var new_style=document.createElement('link');
		new_style.setAttribute("rel", "stylesheet");
		new_style.setAttribute("type", "text/css");
			
		//var empty_js_url=window.location.protocol+"//"+window.document.domain+"/js/empty.js";
		//new_style.setAttribute("href", empty_js_url);
		
		new_style.id="png_style";
		document.body.appendChild(new_style);
		var htc_behavior="behavior: url("+window.location.protocol+"//"+window.document.domain+"/js/iepngfix.htc)";
					
		//document.styleSheets['png_style'].addRule('.widget_contact_me_icon', htc_behavior);
		document.styleSheets['png_style'].addRule('.png_arrow', htc_behavior);
		
	} catch (err){}
}
var do_png_fix=function(){fix_pngs();}
addEvent(window, 'load', do_png_fix, 0);
