
var workshopDate = new Date();
    
    workshopDate.setFullYear(2010, 4, 5);
    
    var today = new Date();
    
    function get_cookie ( cookie_name )
    {
      var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );

      if ( results )        
        return ( unescape ( results[2] ) );
        
      else
        return null;        
    }   
    
     
     if ((google.loader.ClientLocation.address.city == 'Seattle' && (today < workshopDate)) || (google.loader.ClientLocation.address.city == 'Tacoma' && (today < workshopDate)) )
     {
        document.getElementById('workshopTakeover').style.visibility = 'visible';
     }
     
     
     
     // don't allow San Jose Workshop Takeover banner to be shown again
     if ( get_cookie('DontShowWorkshop'))
     {
        document.getElementById('workshopTakeover').style.visibility = 'hidden';
     }
    
    function CloseWindow(id)
    {
        document.getElementById(id).style.visibility = 'hidden';
    }    
    
    
    // set Seattle/Tacoma Workshop cookie
    function SetCookieSeattle()
    {
        document.cookie='DontShowWorkshop=true; expires=Sat, 31 July 2010 20:00:00 UTC; path=/';
        document.getElementById('workshopTakeover').style.visibility = 'hidden';
    }
    
    function popUp(URL) {
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=425,height=400');");
    }


