function sm(n) {
	var l=document.getElementById(n).getElementsByTagName("A");
	for (i=0;i<l.length;i++) {
		l[i].onmouseover=function() { this.parentNode.className="on"; }
		l[i].onmouseout=function() { this.parentNode.className=""; }
	}
}

(function($) {
	$.fn.shVideo=function() {
		var obj=$("#video-intro"); var btn=$(this); var cbtn=$(obj).find(".close"); var over=("#over-video");
		return this.each(function() {
			$(btn).click(function() {
				$(over).css({display:"block",height:$(document).height(),width:$(document).width()});
				$(obj).css({left:($(document).width()-$(obj).width())/2,top:(($(window).height()-$(obj).height())/2)+$(document).scrollTop()});
			});
			$(cbtn).click(function() { jwplayer("video").stop(); $(obj).css({left:-1000+"px"}); $(over).css({display:"none"}); });
		});
	}
})(jQuery);
