function simple_popup( url, w, h  ) {
	
	var window_specs = "location=no, menubars=no, toolbars=no, resizable=yes, scrollbars=yes, left=0, top=0, width=" + w +", height="+h;
		
	popup_window = window.open(url, "simple_popup", window_specs);
	popup_window.focus();

} // end simple_popup


function toggle_element(id, speed){
	

	if($("#el_show_" + id).length > 0){
	   $("#el_show_" + id).toggle(speed); 
	}
	
	if($("#el_hide_" + id).length > 0){
	   $("#el_hide_" + id).toggle(speed); 
	}
	
	$("#" + id).toggle(speed);
	
}
// end toggle element



$(document).ready(function(){

$(".navigation ul li ").mouseover(function(){
	$(this).addClass('hover_main');
	$(this).next().addClass('hover_main_nav_sibling');	
});

$(".navigation ul li ").mouseout(function(){
	$(this).removeClass('hover_main');
	$(this).next().removeClass('hover_main_nav_sibling');	
});


$(".homepage_news_feed ul li").mouseover(function(){ 
   $(".homepage_video ." + $(this).attr('class')).siblings('div').hide();
});

$(".homepage_news_feed ul li").mouseout(function(){ 
   $(".homepage_video ." + $(this).attr('class')).siblings('div').show();
});


if($("#homepage_video").length != 0){
    
	$.modal.defaults.closeHTML = "<a class='modalCloseImg' title='Close'><span>close</span></a>";
	$.modal.defaults.containerId = "modal-holder";
	
	$("#modal-holder").addClass("video_modal");
	
	$("#homepage_video").click(function(){
		$("#modal-holder").empty();
		$("#modal-holder").load('meta_html/uclb:_an_introduction_-_flash_embed.html');
		$("#modal-holder").modal();
	});
	
}
  

$(".print").click(function(){ window.print();})

//	


});
