function imgswap(img,ref){
  if (document.images) {
        document.images[img].src = ref;
  }
}

function popUp() {
  var popLeft = (screen.availWidth - popUp.arguments[1]) / 2;
  var popTop = (screen.availHeight - popUp.arguments[2]) / 2;
  if (this.popUpWindow != null) {
    this.popUpWindow.close();
  }
  this.popUpWindow = window.open(
    popUp.arguments[0],
    "",
    "toolbar=no," +
    "location=no," +
    "directories=no," +
    "status=no," +
    "menubar=no," +
    "personalbar=no," +
    "scrollbars=" + popUp.arguments[3] + "," +
    "titlebar=yes," +
    "resizable=no," +
    "left=" + popLeft + "," +
    "top=" + popTop + "," +
    "width=" + popUp.arguments[1] + "," +
    "height=" + popUp.arguments[2]
  );
  return false;
}



/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
    if (window.sidebar) // firefox
	    window.sidebar.addPanel(title, url, "");
    else if(window.opera && window.print){ // opera
	    var elem = document.createElement('a');
	    elem.setAttribute('href',url);
	    elem.setAttribute('title',title);
	    elem.setAttribute('rel','sidebar');
	    elem.click();
    } 
    else if(document.all)// ie
	    window.external.AddFavorite(url, title);
}