// JavaScript Document

function WarningAlert () {
if(confirm("You are leaving the SunState web site. The content you are about to view is produced by a third party unaffiliated to SunState Federal Credit Union. The products offered are not NCUA/FDIC or otherwise insured by the credit union or the federal government\; are not obligations of the credit union\; are not guaranteed by the credit union and involve investment risks\, including possible loss of principal."))
{document.location="http://www.securepathbytransamerica.com/app/learnmore/CreditUnion/home.htm?utm_source=creditunionmicrosite&utm_medium=web&utm_term=link_retirementservices&utm_content=sunstate&utm_campaign=learnmore";}
}

function ShowRandomBanner()
{
 var BannerCount=4;
<!-- Change BannCount to -1 to turn banners off --!>

 var RandomNumber=Math.floor(Math.random()*BannerCount)+1;
 if (RandomNumber==1)
 {

  ShowBanner('http://www.sunstatefcu.org/graphics/SSOBanner1.jpg','http://www.sunstatefcu.org/graphics/SSOBanner1.jpg','468','60','http://www.staysafeonline.org');
 }
    else if (RandomNumber==2)
 {
  
  ShowBanner('http://www.sunstatefcu.org/graphics/LifeLock468x60.gif','http://www.sunstatefcu.org/graphics/LifeLock468x60.gif','468','60','http://www.lifelock.com/default.aspx?promocode=SFCUWEB');
 }
 
     else if (RandomNumber==3)
 {
  ShowBanner('http://www.sunstatefcu.org/graphics/transamerican_460x60.gif','http://www.sunstatefcu.org/graphics/transamerican_460x60.gif','468','60','javascript:WarningAlert ();');
 }
 
      else if (RandomNumber==4)
 {
  ShowBanner('http://www.sunstatefcu.org/graphics/free.billpayer.550x75.gif','http://www.sunstatefcu.org/graphics/free.billpay.550x75.gif','550','75','http://www.sunstatefcu.org/ebpflash.html');
 }
}

function ShowBanner(MovieName,ImageName,AdWidth,AdHeight,DestURL)
{
  if (DestURL!='')
  {
   document.write('<A HREF="'+DestURL+'">');
  }
  document.write('<IMG SRC="'+ImageName+'" WIDTH='+AdWidth+' HEIGHT='+AdHeight+' BORDER=0>');
  if (DestURL!='')
  {
   document.write('</A>');
  }
 }

