 function page_select(){
 if (document.forms.form1.sel_field.value == 1) {
   }

 else if (document.forms.form1.sel_field.value == 2) {
    a2=screen.height-160;
  wname="newWin"+(Math.round(Math.random()*1000000));
  url="/featureslist/";
  wname = window.open(url,wname," resizable=yes,width=1000,height="+a2+",scrollbars=no,top=60,left=100");
  wname.focus();
  return wname;
   }
 else if (document.forms.form1.sel_field.value == 10) { 
   document.location.href="/FreeTrial.jsp";
   }
 else if (document.forms.form1.sel_field.value == 4)     {
   text="/flash/quick_tour.jsp";
   window.open(text,""," resizable=no,width=790,height=545,scrollbars=no,top=60,left=100");
   }

  else
   {
   document.location.href='/'+document.forms.form1.sel_field.value+".jsp";  }
 }
 


 /* --  -- */


var tabcontentIDs=new Object()

function expandcontent(linkobj){

    ulid="banner_menu";
var ullist=document.getElementById("banner_menu").getElementsByTagName("div") //get list of LIs corresponding to the tab contents
for (var i=0; i<ullist.length; i++){
ullist[i].className=""  //deselect all tabs
if (typeof tabcontentIDs[ulid][i]!="undefined") //if tab content within this array index exists (exception: More tabs than there are tab contents)
document.getElementById(tabcontentIDs[ulid][i]).style.display="none" //hide all tab contents
    linkobj.parentNode.parentNode.className="unselected"
}
linkobj.parentNode.parentNode.className="selected" ; //highlight currently clicked on tab
document.getElementById(linkobj.getAttribute("rel")).style.display="block" //expand corresponding tab content
;
}

function expandtab(tabcontentid, tabnumber){ //interface for selecting a tab (plus expand corresponding content)
var thetab=document.getElementById(tabcontentid).getElementsByTagName("a")[tabnumber]
if (thetab.getAttribute("rel"))
expandcontent(thetab)
}

function savetabcontentids(ulid, relattribute){// save ids of tab content divs
if (typeof tabcontentIDs[ulid]=="undefined") //if this array doesn't exist yet
tabcontentIDs[ulid]=new Array()
tabcontentIDs[ulid][tabcontentIDs[ulid].length]=relattribute
}

function getullistlinkbyId(ulid, tabcontentid){ //returns a tab link based on the ID of the associated tab content
var ullist=document.getElementById(ulid).getElementsByTagName("div")
for (var i=0; i<ullist.length; i++){
if (ullist[i].getElementsByTagName("a")[0].getAttribute("rel")==tabcontentid){
return ullist[i].getElementsByTagName("a")[0]
break
}
}
}

function initializetabcontent(){
var ulobj=document.getElementById(arguments[0])
var ulist=ulobj.getElementsByTagName("div") //array containing the div elements within UL
for (var x=0; x<ulist.length; x++){ //loop through each div element
var ulistlink=ulist[x].getElementsByTagName("a")[0]
if (ulistlink.getAttribute("rel")){
savetabcontentids(arguments[0], ulistlink.getAttribute("rel")) //save id of each tab content as loop runs

ulistlink.onclick=function(){
expandcontent(this)
return false
}
if (ulist[x].className=="selected" ) //if a tab is set to be selected by default
expandcontent(ulistlink) //auto load currenly selected tab content
} //end inner for loop

//expandcontent(ulist[0].getElementsByTagName("a")[0]) //just auto load first tab instead

} //end outer for loop
}




 /*Flash*/
function getFlash(width, height, file, loop, alternate, classid, link, idcont){
   var fleshCont =  document.getElementById(idcont);
   
  if (MM_FlashCanPlay)
 {
var curProtocol = "http:";
if (null != top.location.protocol && top.location.protocol=='https:')
 {
curProtocol = "https:";
}
 var oeTags = '<p class="flashCC"><OBJECT CLASSID="' + classid + '"'
 + 'WIDTH="' + width + '" HEIGHT="' + height + '"'
 + 'CODEBASE="' + curProtocol + '//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">'
 + '<PARAM NAME="MOVIE" VALUE="' + file + '">'
 + '<PARAM NAME="PLAY" VALUE="true">'
 + '<PARAM NAME="LOOP" VALUE="' + loop + '">'
 + '<PARAM NAME="QUALITY" VALUE="high">'
 + '<PARAM NAME="MENU" VALUE="false">'
 + '<param name="wmode" value="transparent" >'
 + '<EMBED SRC="' + file + '"'
 + 'WIDTH="' + width + '" HEIGHT="' + height + '"'
 + 'PLAY="true"'
 + 'LOOP="' + loop + '"'
 + 'QUALITY="high"'
 + 'MENU="false"'
 + 'wmode="transparent"'
  + 'swLiveConnect="true"'
  + 'allowScriptAccess="sameDomain"'
 + 'TYPE="application/x-shockwave-flash"'
 + 'PLUGINSPAGE="' + curProtocol + '//www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
 + '</EMBED>'
 + '</OBJECT></p>';
 /*document.write(oeTags);*/
   fleshCont.innerHTML = oeTags ;
 
 } else {

 var alternateContent = '<div class="noFlashCont"><p><a href="/FreeTrial.jsp"></a></p></div>'

 /*document.write(alternateContent);*/
    fleshCont.innerHTML =  alternateContent;
 }
}
 

  function openSupportRoom(){
    openWindow((''+'htt'+'p:/'+'/su'+'ppo'+'rt.'+'wor'+'lda'+'pp.'+'com'+'/se'+'rvl'+'et/'+'log'+'in?'+'dom'+'ain'+'=ks'+'-ap'+'p&u'+'ser'+'nam'+'e=a'+'non'+'ymo'+'us&'+'for'+'eig'+'nSe'+'ssi'+'onI'+'D=C'+'FFF'+'5DA'+'7D4'+'D38'+'2CA'+'46A'+'6B3'+'4F3'+'134'+'0C0'+'B&a'+'ppV'+'iew'+'=SU'+'RVE'+'Y')+'&ref='+encodeURIComponent(window.location), 453, 400, false);
 }


