sfHover = function() {
	var sfEls = document.getElementById("topnav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
/*
$(function (){
	$('a.lbpModal').each(function (){
		$(this).attr('href', '/youtube.php?v='+$(this).attr('href'));
	});
	
	$('img.size-thumbnail').each(function (){
		$(this).wrap('<div class="'+$(this).attr('class')+'" />').attr('class', '');
	});
	$('.collapse thead tr').click(function (){
		$(this).closest('div.collapse').toggleClass('open');
	});
	
	$('input[type="text"]').focus(function() {
		if(this.value == this.defaultValue){
			this.value = '';
		}
		if(this.value != this.defaultValue){
			this.select();
		}
	});
	
	$('input[type="text"]').blur(function() {
		if (this.value == ''){
			this.value = this.defaultValue;
		}
	});
	
	$('#map-select').change(function (){
		var c = $(this).val().split(',');
		if(c.length == 3) {
			map.setCenter(new GLatLng(c[0], c[1]), parseInt(c[2]));
		};
	});
	
	$('#left_navigation li').hover(function (){
		$(this).addClass('hover');
	}, function (){
		$(this).removeClass('hover');
	});
	
	$('.portfolio_cell, .portfolio_featured_cell').hover(function (){
		$(this).addClass('portfolio_hover');
	}, function (){
		$(this).removeClass('portfolio_hover');
	});
});
*/
