if (window.attachEvent && /MSIE (5\.5|6)/.test(navigator.userAgent))
{
function printPNGFix(disable)
{
for (var  i = 0; i < document.all.length; i++)
{
var e = document.all[i];
if (e.filters['DXImageTransform.Microsoft.AlphaImageLoader'] || e._png_print)
{
 if (disable)
 {
  e._png_print = e.style.filter;
  e.style.filter = '';
 }
 else
 {
  e.style.filter = e._png_print;
  e._png_print = '';
 }
}
}
};
window.attachEvent('onbeforeprint',  function() { printPNGFix(1) });
window.attachEvent('onafterprint',  function() { printPNGFix(0) });
}


function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //All other route (ie: Opera)
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}
document.oncontextmenu=new Function("return false")
