<!--
//************ Start Default 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 getQuery(val){
  var querystring = location.search.substring(1,location.search.length);
  var o = "";
  var tSec = querystring.indexOf(val+"=");
  var tStr = querystring.substring( (tSec+(val.length+1)),querystring.length);
  
  if(tSec != -1){
    if(tStr.indexOf('&') != -1){
      o = tStr.substring(0,tStr.indexOf('&'));
    } else {
      o = tStr;
    }
  }
  return o;
}
function replaceSubstring(s,f,w){
  rtn = "";
  flg = 0;
  
  for(i = 0; i < s.length; i++){
    if(s.substr(i,f.length) == f){
      rtn += w;
      i += (f.length - 1);
    } else {
      rtn += s.charAt(i);
    }
  }
  
  return (rtn);
}
function goPage(u){
  location.href = u;
}
function writeFlash(fName,bg,w,h){
  if( (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) <= 4) ){
    document.write('<embed src="' + fName + '" menu="false" quality="high" bgcolor="#' + bg + '" WIDTH="' + w + '" HEIGHT="' + h + '" NAME="header" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" />');
  } else {
    document.write('<OBJECT data="' + fName + '" width="' + w + '" height="' + h + '" id="header" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" codetype="application/x-shockwave-flash">');
    document.write(' <PARAM NAME="movie" VALUE="' + fName + '" />');
    document.write(' <PARAM NAME="quality" VALUE="high" />');
    document.write(' <PARAM NAME="menu" VALUE="false" />');
    document.write(' <PARAM NAME="bgcolor" VALUE="#' + bg + '" />');
    document.write('</OBJECT>');
  }
}
function openPopup(URL,id,width,height){
  window.open(URL, id, "toolbar=no,location=no,width="+width+",height="+height+",status=yes,scrollbars=yes,scrolling=yes,menubar=no,resizable=yes");
}
function openPopupLocked(URL,id,width,height){
  window.open(URL, id, "toolbar=no,location=no,width="+width+",height="+height+",status=yes,scrollbars=yes,scrolling=yes,menubar=no,resizable=no");
}
function openCalLocked(URL,id,width,height){
  window.open(URL, id, "toolbar=no,location=no,width="+width+",height="+height+",status=yes,scrollbars=yes,scrolling=yes,menubar=no,resizable=no");
}
function openPopupTB(URL,id,width,height){
  window.open(URL, id, "toolbar=yes,location=no,width="+width+",height="+height+",status=yes,scrollbars=yes,scrolling=yes,menubar=no,resizable=yes");
}
  
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 = "/80256EDD006B8954/" + graphic + "_dn.gif" } }
  if(state==0){ if (version == "js") { document[graphic].src = "/80256EDD006B8954/" + graphic + "_up.gif" } }
}
function jpgover(graphic,state) {
  if(state==1){ if (version == "js") { document[graphic].src = "/80256EDD006B8954/" + graphic + "_dn.jpg" } }
  if(state==0){ if (version == "js") { document[graphic].src = "/80256EDD006B8954/" + graphic + "_up.jpg" } }
}
function imageover(graphic,filename,state) {
  if(state==1){ if (version == "js") { document[graphic].src = "/80256EDD006B8954/" + filename } }
  if(state==0){ if (version == "js") { document[graphic].src = "/80256EDD006B8954/" + filename } }
}
//************ End Default Commands ************
function getCookie(Name){ 
  var search = Name + "=" 
  if(document.cookie.length > 0){
    offset = document.cookie.indexOf(search);
    if(offset != -1){
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if(end == -1){ end = document.cookie.length; }
      return unescape(document.cookie.substring(offset, end)) ;
    }
  } 
} 
function setActCookie(name, value) {
  var today = new Date(); 
  expires = new Date(); 
  expires.setTime(today.getTime() + 1000*60*60*24*1);
  document.cookie = name + "=" + value + ";path=/;expires=" + expires.toGMTString();
}
function setCookie(){
  if( (location.href == "") || (location.href.indexOf('?') == -1) ){
    var tmpUrl = "/80256EE60057F2B7/(httpHomepages)/5562355D4417A43F80256F04007174DB?OpenDocument";
  } else {
    var tmpUrl = location.href;
  }
  if(isNS4) {
    var tmpCode = document.forms[0].LanguagePicker.selectedIndex;
    var langcode = "";
    if(tmpCode == 0){ langcode = "en" }
    if(tmpCode == 1){ langcode = "fr" }
    if(tmpCode == 2){ langcode = "es" }
  } else {
    var langcode = document.forms[0].LanguagePicker.value;
  }
  location.href = "/80256EE60057F2B7/setLanguageCookie?OpenAgent&langcode="+langcode+"&url="+tmpUrl;
}
function closePrint(){
  if(getQuery("print") == "yes"){
    window.close();
  }
}
function setupNavigation(){
  if(getQuery("print") == "yes"){
    window.print();
  }

  if(document.getElementById){
    initializemarqueela();
    var c = document.getElementById('event_container');
    if(c){
      InitialiseAutoScrollArea();
    }
    var d = document.getElementById('dl_nav');
    if(!d) return;
    var trs = d.getElementsByTagName('dt');
    
    for(j = 0; j < trs.length; j++){
      if(trs[j].className == 'dt_level1'){
        trs[j].onmouseover=function(){this.className = "dt_level1_over";return false}
        trs[j].onmouseout=function(){this.className = "dt_level1";return false}
      }
    }
  }
}
function setItem(t){
  if(document.getElementById){
    var trs = document.getElementsByTagName('div');
    
    for(j = 0; j < trs.length; j++){
      if(trs[j].className == "item_" + t){
        trs[j].onmouseover=function(){this.className = "item_" + t + "_dn";return false}
        trs[j].onmouseout=function(){this.className = "item_" + t;return false}
      }
    } 
  }
}
function printPage(){
  var domain = "/";
  if(location.href == domain){
    openPopupTB('/80256EE60057F2B7/httpHomepage?ReadForm&print=yes','print','640','480');
  } else {
    if(location.href.indexOf('#') > 0){
      var url = location.href.substring(0,location.href.indexOf('#'));
      openPopupTB(url + '&print=yes','print','640','480');
    } else {
      openPopupTB(location.href + '&print=yes','print','640','480');
    }
  }
}
function launchCalendar(y,m,d,v){
  var sec = document.forms[0].Section.value;
  var currentDB = "80256EE600586F34";
  var archiveDB = "802576330045C35F";
  var today = new Date();
  today.setDate(today.getDate()-730);
  var pass = new Date();
  pass.setFullYear(y,(m-1),d);
  if(getQuery('type') != ""){
    var type = getQuery('type');
  } else if(sec == "news_and_media"){
    var type = "media";
  } else if(sec == "cultural_activities"){
    var type = "cultural";
  } else if(sec == "disarmament"){
    var type = "disarmament";
  } else if(sec == "wisp_v"){
    var type = "disarmament";
  } else if(sec == "library_archives"){
    var type = "cultural";
  } else {
    var type = "";
  }
  if(document.forms[0].location){
    var loc = document.forms[0].location.value;
  } else {
    var loc = "";
  }
  if(loc == "external"){
    var form = "httpCalendarExternal";
  } else if(loc == "internal"){
    var form = "httpCalendarInternal";
  } else if(loc == "externallogin"){
    var form = "httpCalendarExternal_Login";
  } else if(loc == "internallogin"){
    var form = "httpCalendarInternal_Login";
  } else if(loc == "special"){
    var form = "httpCalendarSpecialObservances";
  } else if(sec == "the_director-general"){
    var form = "httpCalendarSpecialObservances";
    v = "special";
  } else {
    var form = "httpCalendarInternal";
  }
  if(pass <= today){
    var url = "/" + archiveDB + "/" + form + "?ReadForm&day=" + d + "&month=" + m + "&year=" + y + "&view=" + v + "&type=" + type;
  } else {
    var url = "/" + currentDB  + "/" + form + "?ReadForm&day=" + d + "&month=" + m + "&year=" + y + "&view=" + v + "&type=" + type;
  }
  window.open(url,'calendar',"toolbar=0,location=0,width=1000,height=700,status=1,scrollbars=1,menubar=0,resizable=1");
}
/*
function verifyCompatibleBrowser(){ 
  this.ver=navigator.appVersion 
  this.dom=document.getElementById?1:0 
  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
  this.ie4=(document.all && !this.dom)?1:0; 
  this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
  this.ns4=(document.layers && !this.dom)?1:0; 
  this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
  return this 
} 
bw=new verifyCompatibleBrowser()
lstart=247
loop=true
speed=40
pr_step=1
function ConstructObject(obj,nest){ 
  nest=(!nest) ? '':'document.'+nest+'.' 
  this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; 
  this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; 
  this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight 
  this.newsScroll=newsScroll; 
  this.moveIt=b_moveIt; this.x; this.y; 
  this.obj = obj + "Object" 
  eval(this.obj + "=this") 
  return this 
} 
function b_moveIt(x,y){ 
  this.x=x;this.y=y 
  this.css.left=this.x 
  this.css.top=this.y 
} 
//Makes the object scroll up 
function newsScroll(speed){ 
  if(this.y>-this.scrollHeight){ 
    this.moveIt(0,this.y-pr_step) 
    setTimeout(this.obj+".newsScroll("+speed+")",speed) 
  } else if(loop) { 
    this.moveIt(0,lstart) 
    eval(this.obj+".newsScroll("+speed+")") 
  }
} 
//Makes the object 
function InitialiseAutoScrollArea(){ 
  objContainer=new ConstructObject('event_container') 
  objContent=new ConstructObject('event_list','event_container') 
  objContent.moveIt(0,lstart) 
  objContent.newsScroll(speed)
} 
*/
var marqueespeed = 1;
var pauseit = 1;
var copyspeed = marqueespeed;
var pausespeed=(pauseit==0)? copyspeed: 0;
var actualheight='';
function scrollmarquee(){
  if(parseInt(cross_marquee.style.top)>((actualheight*(-1)+4))/2){ //if scroller hasn't reached the end of its height
    cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"; //move scroller upwards
  } else {
    cross_marquee.style.top="2px"; //else, reset to original position
  }
}
function InitialiseAutoScrollArea(){
  if(document.getElementById){
    if(document.getElementById("event_list")){
  cross_marquee=document.getElementById("event_list")
  cross_marquee.style.top=0
  marqueeheight=document.getElementById("event_container").offsetHeight
  actualheight=cross_marquee.offsetHeight //height of marquee content (much of which is hidden from view)
  if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
    cross_marquee.style.height=marqueeheight+"px"
    cross_marquee.style.overflow="scroll"
    return
  }
  setTimeout('lefttime=setInterval("scrollmarquee()",50)', 2000);
    }
  }
}
function openGallery(u){
  openPopup(u,'gallery','640','480');
}
function categoryClick(n){
  var u = location.href;
  var d = u.substring(0,u.indexOf('?'));
  var e = getQuery('expand');
  if(e == n){
    if(n.indexOf('.') == -1){
      location.href = (d + '?OpenDocument&count=10000');
    } else {
      location.href = (d + '?OpenDocument&expand=' + n.substring(0,n.lastIndexOf('.')) + '&count=10000#' + n);
    }
  } else if(u.indexOf('&expand=') == -1){
    location.href = (u + '&expand=' + n + '&count=10000#' + n);
  } else {
    location.href = (u.substring(0,u.indexOf('&expand=')) + '&expand=' + n + '&count=10000#' + n);
  }
}
function singleCategoryClick(n){
  var u = location.href;
  var d = u.substring(0,u.indexOf('?'));
  var e = getQuery('expand');
  var num = n.substring(n.indexOf('.')+1, n.length);
  if(u.indexOf('&expand=') == -1){
    location.href = (u + '&expand=' + num + '&count=10000#' + n);
  } else {
    if(e != num){
      location.href = (u.substring(0,u.indexOf('&expand=')) + '&expand=' + num + '&count=10000#' + n);
    } else {
      if(num.indexOf('.') == -1){
        location.href = (d + '?OpenDocument&count=10000');
      } else {
        location.href = (d + '?OpenDocument&expand=' + num.substring(0,num.lastIndexOf('.')) + '&count=10000#' + n);
      }
    }
  }
}
function missionsClick(n){
  var u = location.href;
  var d = u.substring(0,u.indexOf('?'));
  var e = getQuery('expand');
  if(e == n){
    if(n.indexOf('.') == -1){
      location.href = (d + '?OpenDocument&count=10000');
    } else {
      location.href = (d + '?OpenDocument&expand=' + n.substring(0,n.lastIndexOf('.')) + '&count=10000#' + n);
    }
  } else if(u.indexOf('&expand=') == -1){
    location.href = (u + '&expand=' + n + '&count=10000#' + n);
  } else {
    location.href = (u.substring(0,u.indexOf('&expand=')) + '&expand=' + n + '&count=10000#' + n);
  }
}
function briefingsClick(n){
  var u = location.href;
  var d = u.substring(0,u.indexOf('?'));
  var e = getQuery('expand');
  if(e == n){
    if(n.indexOf('.') == -1){
      location.href = (d + '?ReadForm&count=10000');
    } else {
      location.href = (d + '?ReadForm&expand=' + n.substring(0,n.lastIndexOf('.')) + '&count=10000#' + n);
    }
  } else if(u.indexOf('&expand=') == -1){
    location.href = (u + '&expand=' + n + '&count=10000#' + n);
  } else {
    location.href = (u.substring(0,u.indexOf('&expand=')) + '&expand=' + n + '&count=10000#' + n);
  }
}
function setupMissionsView(){
  var e = getQuery('expand');
  if(e != ""){
    if(document.getElementById('mis_' + ((e*1)+1) )){
      document.getElementById('mis_' + ((e*1)+1) ).className = "missions_level1_top";
      document.getElementById('mis_level1_' + ((e*1)+1) ).className = "missions_level1_img";
    }
    if(version == "js"){ document['mis_img_' + e].src = "/80256EDD006B8954/pm02.gif"; }
  }
}
function setupFAQ(){
  var faq = "faq" + getQuery('expand');
  if(document.getElementById(faq)){
    document.getElementById(faq).className = "a_faq_dn";
  }
}
function openServices(u){
  openPopup(u,'services','500','400');
}
function openDisclaimer(u){
  openPopup(u,'disclaimer','500','400');
}
function submitSimpleSearch(lang){
  var doc = document.forms['search_form'];
  var query = doc.Query.value;
  if(query != ""){
     doc.submit();
  } else {
    if(lang == "en"){
      alert('You must enter a search query');
    } else {
      alert('Vous devez indiquer un critère de recherche');
    }
  }
}
function showAdvanced(){
  location.href = "/80256EE60057F2B7/(httpPages)/CCF4901732A1357480256F05005DB4B7?OpenDocument&advanced=yes";
}
function setupSpecialRows(tab){
  if(document.getElementById){
    var table = document.getElementById(tab);
    if(table){
      var trs=table.getElementsByTagName('tr');
      for(i = 0; i < trs.length; i++){
        if(trs[i].id != ""){
          if(i % 2 == 1){
            trs[i].className = tab + "_row_odd";
          } else {
            trs[i].className = tab + "_row_even";
          }
        }
      }
    }
  }
}
function setupRows(tab){
  if(document.getElementById){
    var table = document.getElementById(tab);
    if(table){
      var trs=table.getElementsByTagName('tr');
      for(i = 0; i < trs.length; i++){
        if(trs[i].id != ""){
          var lbl = trs[i].id.substring(0,trs[i].id.indexOf('_'));
          if(i % 2 == 1){
            trs[i].className = lbl + "_row_odd";
          } else {
            trs[i].className = lbl + "_row_even";
          }
        }
      }
    }
  }
}
function pressreleasesClick(n){
  var u = location.href;
  var d = u.substring(0,u.indexOf('?'));
  var e = getQuery('expand');
  var unid = document.forms[0].unid.value;
  var num = n.substring(n.indexOf('.')+1, n.length);
  if(u.indexOf('&expand=') == -1){
    location.href = (u + '&expand=' + num + '&count=10000&unid=' + unid + '#' + n);
  } else {
    if(e != num){
      location.href = (u.substring(0,u.indexOf('&expand=')) + '&expand=' + num + '&count=10000&unid=' + unid + '#' + n);
    } else {
      if(num.indexOf('.') == -1){
        location.href = (d + '?OpenDocument&count=10000&unid=' + unid);
      } else {
        location.href = (d + '?OpenDocument&expand=' + num.substring(0,num.lastIndexOf('.')) + '&count=10000&unid=' + unid + '#' + n);
      }
    }
  }
}
function pressreleaseYear(){
  var u = location.href;
  var year = document.forms[0].press_years.options[document.forms[0].press_years.selectedIndex].value;
  if(year != ""){
    if(year.indexOf('http://') > -1){
      window.open(year);
    } else {
      if(u.indexOf('&year=') == -1){
        location.href = (u + '&year=' + year);
      } else {
        location.href = (u.substring(0,u.indexOf('&year=')) + '&year=' + year);
      }
    }
  }
}
function submitNews(lang){
  if(document.forms[0].searchQuery.value != ""){
    document.forms["search_news"].Query.value = document.forms[0].searchQuery.value;
    document.forms["search_news"].submit();
  } else {
    if(lang == "en"){
      alert('You must enter a search query');
    } else {
      alert('Vous devez indiquer un critère de recherche');
    }
  }
}
function submitCalendar(lang){
  if( (document.forms["search_news"].Query.value == "") && (document.forms['search_news'].Organization.selectedIndex <= 0) ){
    if(lang == "en"){
      alert('You must enter a search query');
    } else {
      alert('Vous devez indiquer un critère de recherche');
    }
  } else {
    document.forms["search_news"].submit();
  }
}
function listenClick(n){
  var u = location.href;
  var num = n.substring(n.indexOf('.')+1, n.length);
  var type= getQuery('type');
  if(u.indexOf('&expand=') == -1){
    location.href = (u + '&expand=' + num + '&count=1000' + '#' + n);
  } else {
    location.href = (u.substring(0,u.indexOf('&expand=')) + '&expand=' + num + '&count=1000' + '#' + n);
  }
}
function openPublication(url){
  location.href = url + "&unid=" + document.forms[0].unid.value;
}
function openBasket(url,l,t){
  if(document.getElementById('attributes')){
    var att = "&att=" + replaceSubstring(document.getElementById('attributes').options[document.getElementById('attributes').selectedIndex].value,' ','+');
    
    if( document.getElementById('attributes').selectedIndex > 0){
      openPopup(url + att,'basket','640','480');
    } else {
      if(l == "en"){
        alert('Please choose a ' + t);
      } else {
        alert('Sélectionner ' + t);
      }
    }
  } else {
    openPopup(url,'basket','640','480');
  }
}
function openBasketPub(url,l,t){
  openPopup(url,'basket','640','480');
}
function recalcBasket(){
  var doc = document.forms[0];
  var strUnids = doc.SelectedUNIDS.value;
  var unids = strUnids.split(';');
  var strQty = "";
  for(i = 0; i < unids.length; i++){
    strQty += doc.elements['qty_' + unids[i]].value + ";";
  }
  doc.SelectedQuantities.value = strQty.substring(0,(strQty.length - 1));
  doc.submit();  
}
function viewBasket(url,l){
  if(document.forms[0].basketid != ""){
    openPopup(url,'basket','640','480');
  } else {
    if(l == "en"){
      alert("There are currently no items in your basket");
    } else {
      alert("Votre panier ne contient rien");
    }
    location.href = location.href;
  }
}
function launchQuickLinks(t){
  if(t.selectedIndex > 0){
    location.href = t.options[t.selectedIndex].value;
  }
}
function openAlert(){
  var doc = document.forms[0];
  var url = doc.url.value;
  var lang = doc.language.value;
  var uid = doc.uid.value;
  var w = doc.width.value;
  var h = doc.height.value;
  
  if(url != ""){
    openPopup(url,uid,w,h);
    if(lang == "fr") {
      location.href = "http://www.unog.ch/80256EE60057F2B7/setLanguageCookie?OpenAgent&langcode=fr&url=http://www.unog.ch/80256EE60057F2B7/(httpHomepages)/5562355D4417A43F80256F04007174DB?OpenDocument";
    } else {
      location.href = "http://www.unog.ch";
    }
  } else {
    if(lang == "fr") {
      location.href = "http://www.unog.ch/80256EE60057F2B7/setLanguageCookie?OpenAgent&langcode=fr&url=http://www.unog.ch/80256EE60057F2B7/(httpHomepages)/5562355D4417A43F80256F04007174DB?OpenDocument";
    } else {
      location.href = "http://www.unog.ch";
    }
  }
  
}
function launchEvent(u,t){
  if(u != ""){
    if(t == "OpenForm"){
      openCalLocked(u+"?"+t,'event','580','520');
    } else {
      openPopupLocked(u+"?"+t,'event','750','580');
    }
  }
}
function deleteEvent(u){
  if(confirm('Are you sure?')){
    location.href = ("/80256EE600586F34/(DeleteEventOrMeeting)?OpenAgent&unid=" + u + "&url=" + location.href);
  }
}
function submitAdvancedSearch(lang){
  var doc = document.forms['search_form'];
  var query = doc.Query.value;
  if(query != ""){
    var checkName = doc.SearchSections;
    var str = "";
    for(i = 0; i < checkName.length; i++){
      if(checkName[i].checked == true){
        str = "yes";
	  break;
      } else {
        str = "no";
      }
    }
    if(str == "yes"){
      doc.submit();
    } else {
      if(lang == "en"){
        alert('Please select at least one section');
      } else {
        alert('Veuillez cocher au moins une section');
      }
    }
  } else {
    if(lang == "en"){
      alert('You must enter a search query');
    } else {
      alert('Vous devez indiquer un critère de recherche');
    }
  }
}
//************ Announcements Functions ************
var la_marqueespeed = 1;
var la_pauseit = 1;
var la_copyspeed = la_marqueespeed;
var la_pausespeed=(la_pauseit==0)? la_copyspeed: 0;
var la_actualheight='';
function scrollmarqueela(){
  if(parseInt(la_cross_marquee.style.top)>((la_actualheight*(-1)+4))/2){ //if scroller hasn't reached the end of its height
    la_cross_marquee.style.top=parseInt(la_cross_marquee.style.top)-la_copyspeed+"px"; //move scroller upwards
  } else {
    la_cross_marquee.style.top="2px"; //else, reset to original position
  }
}
function initializemarqueela(){
  if(document.getElementById){
    if(document.getElementById("press_list")){
  la_cross_marquee=document.getElementById("press_list")
  la_cross_marquee.style.top=0
  la_marqueeheight=document.getElementById("press_container").offsetHeight
  la_actualheight=la_cross_marquee.offsetHeight //height of marquee content (much of which is hidden from view)
  if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
    la_cross_marquee.style.height=marqueeheight+"px"
    la_cross_marquee.style.overflow="scroll"
    return
  }
  setTimeout('lefttime=setInterval("scrollmarqueela()",50)', 2000);
    }
  }
}
function limitText(limitField, limitNum) {
	if (limitField.value.length > limitNum) {
 		limitField.value = limitField.value.substring(0, limitNum);
	} 
}

function postHeadSearch(f,d){
  if(d == ""){ d = "0"; }
  var doc = document.forms[d];
  if(doc.elements[f].value != ""){
    document.forms['QuickSearch'].Query.value = doc.elements[f].value;
    document.forms['QuickSearch'].submit();
  } else {
    alert('You must enter a search query');
  }
}
function openURL(url){
  if( (url.indexOf('http:') > -1) || (url.indexOf('https:') > -1) ){
    window.open(url);
  } else {
    location.href = url;
  }
}
//-->
