// high light the menu bar on mouse over
function hilite(imgname,imgsrc) {
  document.images[imgname].src = imgsrc;
}

// set up the date array
function initarray() {
  for (i = 0; i < initarray.arguments.length; i++);
  this[i] = initarray.arguments[i];
}

// calculate the year
function getFullYear(d) {
  yr = d.getyear();
  if (yr < 1000) {
    yr += 1900;
  }
  return yr;
}

function printDateString() {
  // set the varibles for the date calculation
  var isnMonths = new initarray("january","february","march","april","may","june","july","august","september","october","november","december");
  var stnr = "";
  var ns = "0123456789";
  var a = "";

  // return todays date
  today = new date();
  
  // write out the date string
  document.write(isnMonths[today.getMonth()] + " " + today.getDate() + ", " + getFullYear(today));
}

 //Mouseover images
function putImage(imgDocID,imgObjName) {
  if (browser) {
  document.images[imgDocID].src = eval(imgObjName + ".src")
  }
}


function launch01(win_url,win_name,win_width,win_height) {
  newwin = window.open(win_url,win_name,"height="+win_height+",width="+win_width+",scrollbars=yes,location=no,toolbar=no,directories=no,menubar=no,status=no,resizable=no");
  newwin.opener = window;
  if (document.images) {  // eg if it's js 1.1 (which supports 'focus()')
    newwin.focus();
  }
}
	
function launch02(win_url,win_name,win_width,win_height) {
  newwin = window.open(win_url,win_name,"height="+win_height+",width="+win_width+",scrollbars=yes,location=no,toolbar=no,directories=no,menubar=no,status=no,resizable=yes");
  newwin.opener = window;
  if (document.images) {  // eg if it's js 1.1 (which supports 'focus()')
    newwin.focus();
  }
}

function launch03(win_url,win_name,win_width,win_height) {
  newwin = window.open(win_url,win_name,"height="+win_height+",width="+win_width+",scrollbars=yes,location=yes,toolbar=yes,directories=yes,menubar=yes,status=yes,resizable=yes");
  newwin.opener = window;
  if (document.images) {  // eg if it's js 1.1 (which supports 'focus()')
    newwin.focus();
  }
}	

// popup a window for help
function popUp1(mylink,windowname) {
  if(!window.focus)return;
  var newwin = window.open(mylink,windowname,'scrollbars=auto,status=no,menubar=no,height=550,width=570,dependent=no')
  newwin.focus();
  mylink.target = windowname;
}

// popup a window for login
function popUp(mylink,windowname) {
  if(!window.focus)return;
  var newwin = window.open(mylink,windowname,'scrollbars=auto,status=yes,menubar=no,height=320,width=350,dependent=no')
  newwin.focus();
  mylink.target = windowname;
}

// create the footer text and images for every page
function printVirtualFooter() {
  document.write('<table width="800" border="0" cellspacing="3" cellpadding="0">');
  document.write('<tr>'); 
  document.write('<td colspan="2" valign="top"><img src="images/footer.gif" border="0" width="800" height="8"></td>');
  document.write('</tr>');
  document.write('<tr valign="top">'); 
  document.write('<td width="20%" valign="center"><img src="images/bottom_small_logo02.gif" border="0" width="144" height="34" hspace="2" alt="VerticalSuite"></td>');
  document.write('<td width="80%" valign="center"><a href="index.html" target="_top">Home</a>&nbsp;|&nbsp;'); 
  document.write('<a href="technology.html" target="_top">Technology</a>&nbsp;|&nbsp;');
  document.write('<a href="tours.html" target="_top">Tours</a>&nbsp;|&nbsp;'); 	
  document.write('<a href="solutions.html" target="_top">Solutions</a>&nbsp;|&nbsp;'); 
  document.write('<a href="partners.html" target="_top">Partners</a>&nbsp;|&nbsp;'); 
  document.write('<a href="support.html" target="_top">Support</a>&nbsp;|&nbsp;'); 
  document.write('<a href="registration.html" target="_top">Register</a>&nbsp;|&nbsp;');
  document.write('<a href="about.html" target="_top">About</a>&nbsp;|&nbsp;'); 		
  document.write('<a href="careers.html" target="_top">Careers</a>&nbsp;|&nbsp;'); 		
  document.write('<a href="contact.html" target="_top">Contact</a>&nbsp;|&nbsp;');	
  document.write('<a href="news.html" target="_top">In the News</a>&nbsp;|&nbsp;');	
  document.write('<a href="press.html" target="_top">Press Releases</a></td>');
  document.write('</tr>');
  document.write('<tr>'); 
  document.write('<td colspan="2" align="center" valign="center"><small>Copyright ? VerticalSuite All rights reserved.</small></td>');
  document.write('</tr>');
  document.write('</table>');
}

// create the footer text and images for every sub page
function printVirtualSubFooter(){
  document.write('<table width="800" border="0" cellspacing="3" cellpadding="0">');
  document.write('<tr>'); 
  document.write('<td colspan="2" valign="top"><img src="../images/footer.gif" border="0" width="800" height="8"></td>');
  document.write('</tr>');
  document.write('<tr valign="top">'); 
  document.write('<td width="20%" valign="center"><img src="../images/bottom_small_logo02.gif" border="0" width="144" height="30" hspace="2" alt="VerticalSuite"></td>');
  document.write('<td width="80%" valign="center"><a href="../index.html" target="_top">Home</a>&nbsp;|&nbsp;'); 
  document.write('<a href="../technology.html" target="_top">Technology</a>&nbsp;|&nbsp;');
  document.write('<a href="../tours.html" target="_top">Tours</a>&nbsp;|&nbsp;'); 	
  document.write('<a href="../solutions.html" target="_top">Solutions</a>&nbsp;|&nbsp;'); 
  document.write('<a href="../partners.html" target="_top">Partners</a>&nbsp;|&nbsp;'); 
  document.write('<a href="../support.html" target="_top">Support</a>&nbsp;|&nbsp;'); 
  document.write('<a href="../registration.html" target="_top">Register</a>&nbsp;|&nbsp;');
  document.write('<a href="../about.html" target="_top">About</a>&nbsp;|&nbsp;'); 		
  document.write('<a href="../careers.html" target="_top">Careers</a>&nbsp;|&nbsp;'); 		
  document.write('<a href="../contact.html" target="_top">Contact</a>&nbsp;|&nbsp;');	
  document.write('<a href="../news.html" target="_top">In the News</a>&nbsp;|&nbsp;');	
  document.write('<a href="../press.html" target="_top">Press Releases</a></td>');
  document.write('</tr>');
  document.write('<tr>'); 
  document.write('<td colspan="2" align="center" valign="center"><small>Copyright ? VerticalSuite All rights reserved.</small></td>');
  document.write('</tr>');
  document.write('</table>');
}

// create the header text and images for every page
function printVirtualHeader() {
  document.write('<table border="0" cellpadding="0" cellspacing="0" width="821">');
  document.write('<tr>');
  document.write('<td><img src="images/header/head_title.gif" width="269" height="62" border="0" alt="VerticalSuite"><img src="images/header/head_title_bar_2.gif" width="1" height="62" border="0"><img src="images/header/head_title_bar.gif" width="238" height="62" border="0"><img src="images/header/head_animae.gif" width="252" height="62" border="0"><img src="images/header/head_edge.gif" width="40" height="62" border="0"></td>');
  document.write('</tr>');
  document.write('<tr>');
  document.write('<td><a href="http://www.verticalsuite.com/" target="_top"><img src="images/header/head_url.gif" width="137" height="18" border="0" alt="http://www.verticalsuite.com"></a><img src="images/header/head_url_line.gif" width="663" height="18" border="0"></td>');
  document.write('</tr>');
  document.write('</table>');
}

// create the header text and images for every pages in sub directories
function printVirtualSubHeader() {
  document.write('<table border="0" cellpadding="0" cellspacing="0" width="821">');
  document.write('<tr>');
  document.write('<td><img src="../images/header/head_title.gif" width="269" height="62" border="0" alt="VerticalSuite"><img src="../images/header/head_title_bar_2.gif" width="1" height="62" border="0"><img src="../images/header/head_title_bar.gif" width="240" height="62" border="0"><img src="../images/header/head_animae.gif" width="252" height="62" border="0"><img src="../images/header/head_edge.gif" width="40" height="62" border="0"></td>');
  document.write('</tr>');
  document.write('<tr>');
  document.write('<td><a href="http://www.verticalsuite.com/" target="_top"><img src="../images/header/head_url.gif" width="137" height="18" border="0" alt="http://www.verticalsuite.com"></a><img src="../images/header/head_url_line.gif" width="664" height="18" border="0"></td>');
  document.write('</tr>');
  document.write('</table>');
}


//Date
var isn1=null;
var isn2=false;
today=new Date();

function isnArray() {
 argnr=isnArray.arguments.length
 for (var i=0;i<argnr;i++) {
  this[i+1] = isnArray.arguments[i];
  }
 }
var isnMonths=new isnArray("January","February","March","April","May","June","July","August","September","October","November","December");

