

var exp = .5;   // the number at the left reflects the number of days for the cookie to last
               // modify it according to your needs

function newCookie(name,value,days) {
 if (days) {
   var date = new Date();
   date.setTime(date.getTime()+(days*24*60*60*1000));
   var expires = "; expires="+date.toGMTString(); }
   else var expires = "";
   document.cookie = name+"="+value+expires+"; path=/"; }

function readCookie(name) {
   var nameSG = name + "=";
   var ca = document.cookie.split(';');
  for(var i=0; i<ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
  if (c.indexOf(nameSG) == 0) return c.substring(nameSG.length,c.length); }
    return null; }

function amt() {
  var num = readCookie('sancookie1')
  if (num < 1) { 
	  newCookie('sancookie1','testcookie1', exp);
  
	  //SW=window.open('window.html','NewWin','toolbar=no,status=no,width=350,height=135,scrollbars')
	  //SW.moveTo(190,240); }
	  return true;
  }
  return false;
}



function startup() {
	MM_preloadImages('Media/overStextLager.jpg','Media/overMtextLager.jpg','Media/overLtextLager.jpg' );
	//amt();
	
}

