// no frames
  if (top != self) {
    top.location.href = location.href;
  } 

// handle Details Window event
  function details(url) {
    link = window.open("Details_" + url + ".htm","ShowDetails","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=450,height=450,left=0,top=0");
  }

// handle Weather Window event
  function Weather(url) {
    link = window.open("WX_current.htm","ShowWeather","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=450,height=320,left=0,top=0");
  }

// handle Weather Forecast Window event
  function Forecast(url) {
    link = window.open("WX_forecast.htm","ShowForecast","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=696,height=600,left=0,top=0");
  }

// handle Photo Gallery Window event
  function Photo(img) {
    imgWindow = window.open("Photo.htm?" + img,"ShowPhoto","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=780,height=580,left=0,top=0");
  }

// handle Photo Gallery Window event
  function Photo2(img) {
    imgWindow = window.open("","imgWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=780,height=580,left=0,top=0");
    imgWindow.document.write("<IMG src=../images/photos/" + img + ">");
  }

// handle Print Page event using print.css
  function PrintWindow() {
	  var originalTitle;

    // modify title before printing
  	originalTitle = document.title;
  	document.title = document.title + " by sportPOLO.com";
  
  	// print
  	window.print();
  
    // reset to original value after printing
  	document.title = originalTitle;
}

// handle Add to Favorites event
  function AddToFavs() {
	  var originalTitle;

    // modify title before printing
  	originalTitle = document.title;
  	document.title = document.title + " at sportPOLO.com";
  
  	// add
  	window.external.AddFavorite(location.href, document.title);
  
    // reset to original value after printing
  	document.title = originalTitle;
}