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(){ 
	
	if($('#txtnewssearchtext').length > 0){

		var searchText	=	$('#txtnewssearchtext').val();

		$('#txtnewssearchtext').val('search');

		$('#txtnewssearchtext').focus(function(){
			$(this).val('');
			$('#txtnewssearchtext').removeClass('quiet');										  
			}).blur(function(){
				if(searchText=='' || searchText.length < 1 ) {
					$('#txtnewssearchtext').val('search');
					$('#txtnewssearchtext').addClass('quiet');					
				} 			
		});

	}
	// end if header search exists
	
	$('#txtnewssearchtext').addClass('quiet');
	
	
	$("#sibling_link_list li").mouseover(function(){
	   var display_title = $(this).attr('title');
	   $("#sibling_title_display").text(display_title);
	});
	
	$("#sibling_link_list li").mouseout(function(){
	   $("#sibling_title_display").html('&nbsp;');
	});
  

	$(".print").click(function(){ window.print();});
	
	
	// font replacement happens here
	Cufon.replace('.dropdown > li > a');  
	
	
	
	 

//	


});
