var nImgCnt=0;
function imgLoad(cImage){
	nImgCnt++;
	eval('oImgDecor'+nImgCnt+'=new Image();');
	eval('oImgDecor'+nImgCnt+'.src=cImage;');
}

function imgCache(eId, cImage, cImageAct){
	eval('oImg'+eId+'=new Image();');
	eval('oImg'+eId+'.src=cImage;');
	eval('oImg'+eId+'Act=new Image();');
	eval('oImg'+eId+'Act.src=cImageAct;');
}
function imgOver(eId, oImg){
	oImg.src=eval('oImg'+eId+'Act.src;');
}
function imgOut(eId, oImg){
	oImg.src=eval('oImg'+eId+'.src;');
}

function makePopup(href, target, w, h, ext){
w=(w?w:parseInt((screen.availWidth)/2))+20
h=(h?h:parseInt((screen.availHeight)/2))+30
l=parseInt((screen.availWidth-w)/2),
t=parseInt((screen.availHeight-h)/2)-10;
if (typeof(target)!="string"||(!target)) target="_blank";
window.open(href, target, 'location=no,menubar=no,resizable=no,status=no,toolbar=no,width='+w+',height='+h+',left='+l+',top='+t+(ext?','+ext:''));
}

function makePopupSBno(href, target, w, h, ext){
makePopup(href, target, w, h, "scrollbars=no"+(ext?','+ext:''))
}

function makePopupSByes(href, target, w, h, ext){
makePopup(href, target, w+20, h, "scrollbars=yes"+(ext?','+ext:''))
}

//LoadSWF(plugin,'files/IMAGES/Flash/fudder.swf','Flash_2','293','150','Black','files/IMAGES/flash2.jpg')
function LoadSWF(plugin,swf,id,width,height,bgcolor,altimage,alt,title)
{
if(plugin)
{ 
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');
document.write('ID='+id+' WIDTH='+width+' HEIGHT='+height+'>');
document.write('alt="'+alt+'" title="'+title+'" ');
document.write('<PARAM NAME=movie VALUE="'+swf+'"><PARAM NAME=quality VALUE=high>'); 
document.write('<PARAM NAME=bgcolor VALUE='+bgcolor+'>');
document.write('<PARAM NAME=wmode VALUE=transparent>');
document.write('<EMBED name='+id+' src="'+swf+'" quality=high bgcolor='+bgcolor+' wmode=transparent ');
document.write('swLiveConnect=FALSE WIDTH='+width+' HEIGHT='+height+' alt="'+alt+'" title="'+title+'" ');
document.write('TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write('</EMBED>');
document.write('</OBJECT>');
}
else {
 document.write('<img src="'+altimage+'" border="0" alt="'+alt+'" title="'+title+'" width="'+width+'" height="'+height+'">');
} 
}




