function addEvent(obj, evType, fn){ 
 if (obj.addEventListener){ 
   obj.addEventListener(evType, fn, false); 
   return true; 
 } else if (obj.attachEvent){ 
   var r = obj.attachEvent("on"+evType, fn); 
   return r; 
 } else { 
   return false; 
 } 
}

function DisplayPngByBrowser ( browser, img_path, width, height, img_alt ){
if (browser == 'Microsoft Internet Explorer') {
document.write('<img src="{$FImagesDir}/spacer.gif" style="width:'+width+'px; height:'+height+'px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+img_path+'\', sizingMethod=\'scale\');" >');
}
else if (browser == 'Netscape')
document.write("<img src='"+img_path+"' alt='"+img_alt+"' />");
else
document.write("<img src='"+img_path+"' alt='"+img_alt+"' />");
}

/* Same Height Columns */
function P7_colH2(){var i,oh,h=0,tg,el,np,dA=document.p7eqc,an=document.p7eqa;if(dA&&dA.length){for(i=1;i<dA.length;i+=2){dA[i+1].style.paddingBottom="";}for(i=1;i<dA.length;i+=2){oh=dA[i].offsetHeight;h=(oh>h)?oh:h;}for(i=1;i<dA.length;i+=2){oh=dA[i].offsetHeight;if(oh<h){np=h-oh;if(!an&&dA[0]==1){P7_eqA2(dA[i+1].id,0,np);}else{dA[i+1].style.paddingBottom=np+"px";}}}document.p7eqa=1;document.p7eqth=document.body.offsetHeight;document.p7eqtw=document.body.offsetWidth;}}function P7_eqT2(){if(document.p7eqth!=document.body.offsetHeight||document.p7eqtw!=document.body.offsetWidth){P7_colH2();}}function P7_equalCols2(){var c,e,el;if(document.getElementById){document.p7eqc=new Array();document.p7eqc[0]=arguments[0];for(i=1;i<arguments.length;i+=2){el=null;c=document.getElementById(arguments[i]);if(c){e=c.getElementsByTagName(arguments[i+1]);if(e){el=e[e.length-1];if(!el.id){el.id="p7eq"+i;}}}if(c&&el){document.p7eqc[document.p7eqc.length]=c;document.p7eqc[document.p7eqc.length]=el;}}setInterval("P7_eqT2()",10);}}function P7_eqA2(el,p,pt){var sp=10,inc=20,g=document.getElementById(el);np=(p>=pt)?pt:p;g.style.paddingBottom=np+"px";if(np<pt){np+=inc;setTimeout("P7_eqA2('"+el+"',"+np+","+pt+")",sp);}}

delayHTTPoverhead = function(){
	var parentID = '';
	var avtClass = '';
function ri(){var img=parentID!==''?document.getElementById(parentID).getElementsByTagName('img'):document.getElementsByTagName('img');var rep=/.*#/;for(var i=0;img[i];i++){var src=img[i].src;if(src.indexOf('#')!=-1&&img[i].className.indexOf(avtClass)!==-1){img[i].src = src.replace(rep,'');};};}var o=window.onload;if(typeof window.onload!='function'){window.onload=ri;}else{window.onload = function(){if(o){o();};ri();};};}();

