// open win code //////////////////////////////
function openSmallWin(url, myWidth, myHeight){
myWindow = window.open( url, "theWindow", "toolbar=no,menubar=no,scrollbars=yes,resizable=yes,status=yes,location=no,width=" + myWidth + ",height=" + myHeight);
myWindow.moveTo(10,10);
myWindow.focus();
}
function openWin(url, myWidth, myHeight){
   myWindow = window.open( url, "theWindow", "toolbar=no,menubar=yes,scrollbars=yes,resizable=yes,status=no,location=no,width=" + myWidth + ",height=" + myHeight);
   myWindow.focus();
}

//rollover
    var imgPath = '';
function imgToggle(imgObjectName, imgObjectState) {
    imgObject = new Object();
    imgObject = imgObjectName;
    imgObject.src = imgPath + imgObjectState;
}
function Toggle (id, newsrc){
    img = document.getElementById(id);
        img.src = newsrc;
}
// code for dropdown
function dropdown(element) {
      whichOne = element.selectedIndex;
      document.location = element.options[whichOne].value; }

// code for archive links

function sprout_story(url) {
 popWindow = window.open(url,"feature","toolbar=yes,location=yes,directories=yes,status=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=480,height=500");

        }
// code for press release pop ups
function portPop(URL,width,height,scroll) {
    if (!window.bWindow) {
        // has not yet been defined
        bWindow = window.open(URL,'Chart','width= '+ width +',height=' + height +',resizable=yes,location=yes, menubar=yes, top=0,left=0,scrollbars=' + scroll + ' ');
    }
    else {
        // has been defined
        if (!bWindow.closed) {
            // still open
			bWindow.focus(); bWindow.location = URL;
        }
        else {
            bWindow = window.open(URL,'Chart','width= '+ width +',height=' + height +', resizable=yes,location=yes, menubar=yes,top=0,left=0,scrollbars=' + scroll + ' ');
        }
    }
}		
// for pdfs
function openPdf(url, myWidth, myHeight){
   myWindow = window.open( url, "theWindow", "toolbar=no,menubar=yes,scrollbars=yes,resizable=yes,status=no,left=100,screenX=100,top=0,screenY=0,width=" + myWidth + ",height=" + myHeight);
   myWindow.focus();
}
// code for new windows
function new_window(url) {
  window.open(url, 'newwindow', 'width=800,height=550,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes'); 
  return false;
}
// code for bio pop ups
function popupbio(url) {
  win = window.open(url, 'popupwindow', 'width=435,height=350,top=0,left=0,resizable=yes,menubar=yes,scrollbars=yes'); 
  win.focus()
  return false;
}
// code for interview pop ups
function popupinterview(url) {
  win = window.open(url, 'popupwindow', 'width=600,height=600,top=0,left=0,resizable=yes,menubar=yes,scrollbars=yes'); 
  win.focus()
  return false;
}