function printme(theurl) {

  tmpwin=window.open(theurl, "printpage", "scrollbars=1, width=600, height=400");
  return false;
}

function emailme(theurl) {
  tmpwin=window.open(theurl, "emailpage", "scrollbars=1, width=600, height=400");
  return false;
}

function bookmarkme(thetitle) {
  if (document.all) {
    window.external.AddFavorite(self.location.href,thetitle);
  }
return false;
}

function newwin(url) {
  tmpwin=window.open(url, "newwindow", "scrollbars=1, width=600, height=400");
  return false;
}

function downloadvision() {
  tmpwin=window.open("news_events/vision_download.php?<? echo $QUERY_STRING; ?>", "downloadvisionpage", "scrollbars=1, width=600, height=400");
  return false;
}


//publications scripts

function downloadpub(pubid) {
	var tmpwin = window.open("news_events/pubsindex.php?t=d&pubid="+pubid, "downloadpubpage", "scrollbars=yes, width=600, height=400, resizable=yes");
	tmpwin.focus();
  return false;
}

function orderpub(pubid) {
  var tmpwin = window.open("news_events/orderpubform.php?t=o&pubid="+pubid, "downloadpubpage", "scrollbars=yes, width=600, height=400, resizable=yes");
	tmpwin.focus();
  return false;
}

//end publications scripts


function MM_showHideLayers() { //v3.0A Modified by Al Sparber and Massimo Foti for NN6 Compatibility
  var i,p,v,obj,args=MM_showHideLayers.arguments;if(document.getElementById){
   for (i=0; i<(args.length-2); i+=3){ obj=tmt_findObj(args[i]);v=args[i+2];
   v=(v=='show')?'visible':(v='hide')?'hidden':v;
   if(obj)obj.style.visibility=v;}} else{
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function tmt_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("window.parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	
	}else{x=document.getElementById(n)}return x;
}