<!--
//************ Start Rollover Commands ************
var h = "hidden";
var v = "visible";
var graphic = "";   
var isNS4 = 0; var isIE4 = 0; var isNS6 = 0; var isNew = 0;
var docObj, styleObj, currObj, cstyleObj;

var bVer = (parseInt(navigator.appVersion));
var bName = navigator.appName;
var brow = ((navigator.appName) + (parseInt(navigator.appVersion)));

if (bName == "Netscape" && bVer >= 3) version = "js";
else if (bName == "Microsoft Internet Explorer" && bVer >= 4) version = "js";
else if (bName == "Netscape" && bVer == 2) version = "no";
else if (bName == "Microsoft Internet Explorer" && bVer >= 2) version = "no";

if (parseInt(navigator.appVersion >= 5)){isNew = 1}
else if (brow == "Netscape4") {isNS4 = 1;}
else if (brow == "Netscape5") {isNS6 = 1;}
else if (brow == "Microsoft Internet Explorer4") {isIE4 = 1;}
				
if (isNS4||isNS6||isIE4||isNew) {
  if(isNS4){ docObj = "document."; }
  else if(isNS6){ docObj = "document.getElementById('"; }
  else { docObj = "document.all."; }

  if(isNS4){ styleObj = ""; }
  else if(isNS6){ styleObj = "').style"; }
  else { styleObj = ".style"; }
  
  if(isNS4){ cstyleObj = ""; }
  else if(isNS6){ cstyleObj = "').currentStyle"; }
  else { cstyleObj = ".currentStyle"; }
}
        
function layerChange(tmpLayer,tmpVisible) {
  if (isNS4||isNS6||isIE4||isNew) { eval(docObj + tmpLayer + styleObj + '.visibility = ' + tmpVisible) }
}

function rollover(graphic,state) {
  if(state==1){ if (version == "js") { document[graphic].src = "graphics/"+graphic+"_dn.gif" } }
  if(state==0){ if (version == "js") { document[graphic].src = "graphics/"+graphic+"_up.gif" } }
}


//************ End Rollover Commands ************

function sendEmail(){
  if(document.forms[0].email.value != ""){
    document.forms[0].submit()
  } else {
    alert('Please enter an Email Address')
  }
}

function openPress(){
  window.open('press.html','PressRoom','menu=no,address=no,status=no,scrollbars=yes,width=490,height=600');
}

function launchWallpaper(graphic){
  window.open('graphics/wallpaper/' + graphic,'Wallpaper','menu=no,address=no,status=no,width=520,height=360')
}

function checkFlash() {
  var plgIn = "Shockwave Flash";
  var ok = false;
  document.MM_returnValue = false;
  with (navigator) 

  if (appName.indexOf('Microsoft')==-1) {
    ok = (plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { 

    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null){
      ok = window.MM_flash;
    } else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null){
      ok=window.MM_dir;
    } else {
      ok=true;
    }
  }

  if(!ok){ mf="N" } else { mf="Y" };
  return mf;
}

function hasFlash(){
  if(checkFlash() != "Y") { location.href = "about.html" }
}

function paperDetails(){
  if(navigator.appVersion.indexOf('Windows') != -1){
    document.write('On load of the image, right click and select \'Save As...\' from the menu');
  } else {
    document.write('On load of the image, Hold the \'Apple Key\' and click on the image');
  }
}

var imgArray = new Array('graphics/gy-bar1.jpg','graphics/gy-bar2.jpg','graphics/gy-cocktails.jpg','graphics/gy-evening.jpg','graphics/gy-fan.jpg','graphics/gy-basement.jpg','graphics/gy-bar.jpg')
var imgNum = 1;

function setNum(tNum){
  document.forms[0].nNum.value = tNum;
}

function updateImage(value){
  var count = (document.forms[0].nNum.value)*1;
  var imgStart = count + value;
  var arrLength = imgArray.length;
  
  for(var i=0; i<imgNum; i++){
    if(imgStart > (arrLength-1)){ imgStart = 0 } else if(imgStart == -1){ imgStart = (arrLength)+imgStart }
    var tmpStr = new String(imgStart-i);
    var tmpVal = "";
    if(tmpStr.indexOf('-') == ""){ tmpVal = imgArray.length + (imgStart-i) } else { tmpVal = imgStart-i }
    document.images["galleryImage"].src = imgArray[tmpVal];
  }
  document.forms[0].nNum.value = imgStart
}

//-->