//\/////
//\  coolTip PNG Fix Plugin for displaying PNG files in IE version > 5
//\		Applies the procedure explained in 
//\		http://homepage.ntlworld.com/bobosola.
//\
//\  This file requires coolTip 1.00 or later.
//\  Created 5/14/2006.
//\  Modified on August 27, 2006 to restrict application to IE5.5 or IE6.0
//\
//\  You may not remove or change this notice.
//\  Copyright Robert E Boughner 2005. All rights reserved.
//\  
//\  This plugin is governed by the same restrictions set forth
//\  in the prologue to cCore.js.
//\/////
//\  THIS IS A VERY MODIFIED VERSION. DO NOT EDIT OR PUBLISH. GET THE ORIGINAL!
if(typeof cInfo=='undefined'||typeof cInfo.meets=='undefined'||!cInfo.meets(1.00))alert('coolTip v1.00 or later is required for the PNG Fix Plugin.');else{registerCommands('pngfix');
setDefaultVariables('pngfix|0');
function setPNGFixVariables(obj){obj.pngfix=cd_pngfix;}
function parsePNGFixExtras(pf,i,ar){var k=i,v;if(k<ar.length){if(ar[k]==PNGFIX){eval(pf+'pngfix=('+pf+'pngfix==0)?1:0');return k;}}
return-1;}
function pngFix(img){var imgID=(img.id)?"id=\'"+img.id+"\' ":"";var imgClass=(img.className)?"class=\'"+img.className+"\' ":"";var imgTitle=(img.title)?"title=\'"+img.title+"\' ":"title=\'"+img.alt+"\' ";var imgStyle="display:inline-block;"+img.style.cssText;if(img.parentNode.href)imgStyle="cursor:hand;"+imgStyle;if(img.align=="left")imgStyle="float:left;"+imgStyle;if(img.align=="right")imgStyle="float:right;"+imgStyle;imgStyle=imgStyle.replace(/;\s+$/,';');var strNewHTML="<span "+imgID+imgClass+imgTitle+
" style=\""+"width:"+img.width+"px;height:"+img.height+"px;"+imgStyle+
"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"+
"(src=\'"+img.src+"\',sizingMethod=\'scale\');\"></span>";return strNewHTML;}
function applyPNGFix(obj){obj=(!obj)?cTip:obj;var po=obj.pop;if( !po.pngfix||(cIe4&&(isMac||cOp))||!cIe4 )return;if(cIe55&&parseFloat(navigator.appVersion)<7){var nStr,content=obj.innerHTML,imgs=obj.getElementsByTagName('img');if(imgs&&imgs.length){for(var i=0;i<imgs.length;i++){if(!/\.png/i.test(imgs[i].src))continue;nStr=pngFix(imgs[i]);content=content.replace(/<img.*?\s?\/?>/i,nStr);}
obj.innerHTML=content;}}}
function fixImage(img){if((cIe4&&(isMac||cOp))||!cIe4 )return;if(cIe55&&parseFloat(navigator.appVersion)<7){var nStr;if(/\.png/i.test(img.src)){nStr=pngFix(img);img.outerHTML=nStr;}}}
registerRunTimeFunction(setPNGFixVariables);registerCmdLineFunction(parsePNGFixExtras);registerHook("showObject",applyPNGFix,FBEFORE);if(cInfo.meets(1.00))registerNoParameterCommands('pngfix');
}
