		// MAIN MENU code for IE because it doesnt know :hover
        sfHover = function() {
            var sfEls = document.getElementById("glbMainNav").getElementsByTagName("li");     
            for (var i=0; i<sfEls.length; i++) {
                sfEls[i].onmouseover=function() {
                    this.className+=" sfhover";
                }
                sfEls[i].onmouseout=function() {
                    this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
                }     
            } 
        } 
        if (window.attachEvent) window.attachEvent("onload", sfHover);
		
		
		function hiLightEventRow(whichRow)
		{
			whichRow.style.background='#73be1e';
			whichRow.style.color='#ffffff';
			whichRow.getElementsByTagName('a')[0].style.color = '#ffffff';
			whichRow.getElementsByTagName('a')[1].style.color = '#ffffff';
			whichRow.getElementsByTagName('img')[0].src = 'images/hm_events_RollImg.gif';	
		}
		function revertEventRow(whichRow)
		{
			whichRow.style.background='';
			whichRow.style.color='';
			whichRow.getElementsByTagName('a')[0].style.color = '';
			whichRow.getElementsByTagName('a')[1].style.color = '';
			whichRow.getElementsByTagName('img')[0].src = 'images/hm_events_img.gif';
		}
		function hiLightBlogRow(whichRow)
		{
			whichRow.style.background='#2e304b';
		}
		function revertBlogtRow(whichRow)
		{
			whichRow.style.background='';
		}
		
		function loadMovie(whichMovie)
		{
			frames['ifrmVideo'].location.href = 'http://96.0.29.136/flash/video/rbc_videoplayer.aspx?video=' + whichMovie;
		}
		
		
		
		function getVideo(url) {
			$.getScript(oEmbedEndpoint + '?url=' + url + '&width=300&callback=' + oEmbedCallback);
		}
		
		function setupGallery(videos) {
			
			// Set the user's thumbnail and the page title
			$('#stats').prepend('<img id="portrait" src="' + videos[0].user_portrait_medium + '" />');
			$('#stats h2').text(videos[0].user_name + "'s Videos");
			
			// Load the first video
			getVideo(videos[0].url);
			
			// Add the videos to the gallery
			for (var i = 0; i < videos.length; i++) {
				var html = '<li><a href="' + videos[i].url + '"><img src="' + videos[i].thumbnail_medium + '" class="thumb" />';
				html += '<p>' + videos[i].title + '</p></a></li>';
				$('#thumbs ul').append(html);
			}
			
			// Switch to the video when a thumbnail is clicked
			$('#thumbs a').click(function(event) {
				event.preventDefault();
				getVideo(this.href);
				return false;
			});
			
		}
		
		function switchVideo(video) {
			$('#embed').html(unescape(video.html.replace(/height="(\d+)"/, 'height="230"')));
		}