/* menu - create appropriate script tag for nav menu based on screen resolution */
function menu(){ 
  if ((screen.width == 640) && (screen.height == 480)) {var res = "res800";}
   else if ((screen.width == 800) && (screen.height == 600)) {var res = "res800";}
   else if ((screen.width == 1024) && (screen.height == 768)) {var res = "res1024";}
   else {var res = "res1024";};
   document.write("\<script type='text\/javascript' src='scripts\/" + res + "menu_var.js'\>\<\/script\>");
}
/* menu2 - as above but use menu2 variant */
function menu2(){ 
  if ((screen.width == 640) && (screen.height == 480)) {var res = "res800";}
   else if ((screen.width == 800) && (screen.height == 600)) {var res = "res800";}
   else if ((screen.width == 1024) && (screen.height == 768)) {var res = "res1024";}
   else {var res = "res1024";};
   document.write("\<script type='text\/javascript' src='scripts\/" + res + "menu_var2.js'\>\<\/script\>");
}
/* email*/
function email(){ 
  var a=self.location.href;
  var b='\"';
  document.location = 'emailpage.asp?page=' + b + a + b;
}
/* email single artiste*/
function emailpid(pid){ 
  document.location = 'emailpage.asp?pid=' + pid;
}
/* email selected artistes*/
function emailsa(sessionid){ 
  document.location = 'emailpage.asp?sid=' + sessionid;
}
/* showWelcome - Greeting */
function showWelcome()
   {
       today=new Date();
       hour=today.getHours();
       if (hour < 12)
        document.write ("Good morning");
       if (hour > 11 && hour < 18)
        document.write ("Good afternoon");
       if (hour > 17)
        document.write ("Good evening");
       document.writeln (" - Welcome to Screenlite");
   }
/* table - create appropriate navigation table height based on screen resolution */
function table(){ 
  if ((screen.width == 640) && (screen.height == 480)) {var tabhgt = "16px";}
   else if ((screen.width == 800) && (screen.height == 600)) {var tabhgt = "16px";}
   else if ((screen.width == 1024) && (screen.height == 768)) {var tabhgt = "23px";}
   else {var tabhgt = "res1024";};
   document.write("<table class='middle' height='" + tabhgt + "' leftmargin='5px' width='99%' align='center' cellspacing='0' cellpadding='0'>");
}   