
	 
	 
	  var myWidth = 0, myHeight = 0;
 

      var baseText = null;
      function showPopup(w,h){
      var popUp = document.getElementById("popupcontent");
      popUp.style.top = "190px";
      popUp.style.left = ((document.getElementById("header-wrap").clientWidth)/2)-(176)+"px";
	  popUp.style.width = w + "px";
      popUp.style.height = h + "px";  
           
 //     var sbar = document.getElementById("statusbar");  
     // sbar.style.marginTop = (parseInt(h)-40) + "px";  
      popUp.style.visibility = "visible";
  
      }
	    
      function hidePopup()
	  { 
      var popUp = document.getElementById("popupcontent");   
      popUp.style.visibility = "hidden";  
      }
	  
	var startTimerID = 0;
	var stopTimerID = 0;
	function startTimer() {
	  // tStart   = new Date();
		startTimerID  = setTimeout("showPopup(353,273)", 5000);
		stopTimerID  = setTimeout("hidePopup()", 25000);
	}
	function Stop() {
	
		if(stopTimerID) {
		  clearTimeout(stopTimerID);
		  stopTimerID  = 0;
	   }
	   
	   if(startTimerID) {
		  clearTimeout(startTimerID);
		  startTimerID  = 0;
	   }
	   
	 }
	 
		  
	// check to see if cookie exists
	// if not, this is first visit
	var visitCount=0;
	if(GetCookie("visits") == null)
	{
		visitCount = 1
	 	startTimer();
	}
	else
	{
	visitCount= parseInt(GetCookie("visits"));
	 if(visitCount==0)
	 {	
		startTimer();
	 }
	 visitCount = visitCount+1;
	}
	 
	var d = new Date();
	d.setHours(23); 
	d.setMinutes(59); 
	d.setSeconds(59); 
	 
	// update cookie with new count
	SetCookie("visits", visitCount, d);
	 
	// display visit counter
