if(window.addEventListener){
	window.addEventListener('load', imgGenerate, false);
}
else{
	window.attachEvent('onload', function()	{
	imgGenerate();
	});
}

//			::: START BREAK OUT OF FRAMES :::

	if (window != top) top.location.href = location.href;

//			::: END BREAK OUT OF FRAMES :::



//			::: START MAIN MENU IMAGE GENERATOR :::

	function imgGenerate() {
	if (document.getElementById) {
		rnd = String(Math.floor(Math.random() * 2) + 1);
		document.getElementById('header').style.backgroundImage = 'url(http://www.uleth.ca/prospective/international/images/index/0' + rnd + '.jpg)';
	}
}


    //<![CDATA[

    function onLoad() {
      // Show a custom info window above marker by listening to the click
      // event for each marker. 
      
      // Center the map on the University of Lethbridge
      var map = new GMap(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      map.centerAndZoom(new GPoint(-112.86409378051758, 49.677875974094086), 16);

    
      // Creates a marker whose info window displays the given number
      function createMarker(point, number) {
        var marker = new GMarker(point);
      
        // Show this marker's html information in the info window when it is clicked
        var html = "University of Lethbridge";
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
      
        return marker;
      }
      
      // Add 1 markers in the map viewport
      for (var i = 0; i < 1; i++) {
        var point = new GPoint(-112.86409378051758, 49.677875974094086);
        var marker = createMarker(point, i + 1);
        map.addOverlay(marker);
      }
    }

    //]]>