

function fpChangeButton(ths)
{	
	FP_changeProp(ths,1,'style.border','0px solid #EF608C','style.backgroundColor','#EF008C');	
	FP_changeProp(ths+'F',0,'style.color','#00FFFF');       
	FP_changeProp(ths+'U',0,'style.backgroundImage','url(\'pic/uu.gif\')');	
	FP_changeProp(ths+'D',0,'style.backgroundImage','url(\'pic/dd.gif\')');	
	FP_changeProp(ths+'L',0,'style.backgroundImage','url(\'pic/ll.gif\')');	
	FP_changeProp(ths+'R',0,'style.backgroundImage','url(\'pic/rr.gif\')');	
	FP_changeProp(ths+'UR',0,'style.backgroundImage','url(\'pic/ur.gif\')');	
	FP_changeProp(ths+'DR',0,'style.backgroundImage','url(\'pic/dr.gif\')');	
	FP_changeProp(ths+'UL',0,'style.backgroundImage','url(\'pic/ul.gif\')');	
	FP_changeProp(ths+'DL',0,'style.backgroundImage','url(\'pic/dl.gif\')');	
}
function fpRestoreButton(ths)
{	
	FP_changeProp(ths,1,'style.border','0px dotted #EFF0FC','style.backgroundColor','');
	FP_changeProp(ths+'F',0,'style.color','#EF008C');       
	FP_changeProp(ths+'U',0,'style.backgroundImage','');       
	FP_changeProp(ths+'D',0,'style.backgroundImage','');	
	FP_changeProp(ths+'L',0,'style.backgroundImage','');
	FP_changeProp(ths+'R',0,'style.backgroundImage','');
	FP_changeProp(ths+'UR',0,'style.backgroundImage','');
	FP_changeProp(ths+'DR',0,'style.backgroundImage','');
	FP_changeProp(ths+'UL',0,'style.backgroundImage','');
	FP_changeProp(ths+'DL',0,'style.backgroundImage','');
}

function fpRefreshButton(ths)
{	
	fpChangeButton(ths)
	setTimeout("fpRestoreButton('"+ths+"')",200);
}


var numButtonOnScreen = 0;

function fpGenButton(id,icon,link,text)
{
 document.write(fpGenAdvButton(id,icon,link,text,38,'onmouseout','onmouseover'));
 numButtonOnScreen++;
 setTimeout("fpRefreshButton('"+id+"')",numButtonOnScreen*150);
 fpRestoreButton(id);	
}

function fpGenFunction(id,link,text)
{	
 document.write(fpGenAdvButton(id,'',link,text,0,'onmouseout','onmouseover'));
 numButtonOnScreen++;
 setTimeout("fpRefreshButton('"+id+"')",numButtonOnScreen*100);
 fpRestoreButton(id);
}

function fpGenFunctionTitle(id,link,text)
{
 document.write(fpGenAdvButton(id,'',link,text,0,'onclick','onmouseout'));
 fpChangeButton(id);
}

function fpGenAdvButton(id,icon,link,text,iconwide,restoreEventName,changeEventName)
{
 var st='';
 st+='<table border=0 id="'+id+'M" '+restoreEventName+'="fpRestoreButton(\''+id+'\')" '+changeEventName+'="fpChangeButton(\''+id+'\');" border="0" cellpadding="0" bordercolor="#F8F6F4" style="border-collapse: collapse">'
 st+='               <tr>'
if (!iconwide) iconwide=0;
 st+='                 <th rowspan=3 width='+iconwide+' align=center scope=row><a href="'+link+'">'
if (icon != '') 
 st+='                 <img src="'+icon+'" border="0" align="absmiddle">';
 st+='                 </a></th><td  width=0 rowspan=3></td>'
 st+='                 <td id="'+id+'UL"><img src="pic/dot.gif" width=6 height=5></td>'
 st+='                 <td id="'+id+'U"><img src="pic/dot.gif" width=6 height=5></td>'
 st+='                 <td id="'+id+'UR"><img src="pic/dot.gif" width=6 height=5></td>'
 st+='               </tr>'
 st+='               <tr>'
 st+='                 <td id="'+id+'L"><img src="pic/dot.gif" width=6 height=6></td>'
 st+='                 <td id="'+id+'" valign=middle>&nbsp;'
 st+='                 <a href="'+link+'" id="'+id+'F" class="VnFunction">'+text+'</a>'
 st+='                 &nbsp;</td>'
 st+='                 <td id="'+id+'R" ><img src="pic/dot.gif" width=6 height=6></td>'
 st+='               </tr>'
 st+='               <tr>'
 st+='                 <td id="'+id+'DL"><img src="pic/dot.gif" width=6 height=5></td>'
 st+='                 <td id="'+id+'D" ><img src="pic/dot.gif" width=6 height=5></td>'
 st+='                 <td id="'+id+'DR"><img src="pic/dot.gif" width=6 height=5></td>'
 st+='               </tr>'
 st+='             </table>  '
 return st; 
}

