// press page, link list

 $(document).ready( function(){  
			
			
/* =================================================================== */
// style and show/hide news items

	$("#pressItems li h3.hdr").toggle( 
		function() {
			$(this).siblings('ul').show("fast"); 
			$(this).toggleClass("selected"); 
		}
		,function() { 
			$(this).siblings('ul').hide("fast"); 
			$(this).toggleClass("selected"); 
		}
	  );

	  
	  // hide em all to start
	  $("#pressItems li ul").hide();
	  
	  
/* =================================================================== */


	  
	  
/* =================================================================== */
// various link functionality - popups, external, etc

	var anchors = {
		a: Object,
		addBehaviors : function() {
			$('a').each( function() {
				var $a = $(this);
				
				// external links
				if ( ($a.attr('href')) && ($a.attr('rel')=='news') ) {
					$a.click( function() {
						return anchors.openWin(this,"  width=730, scrollbars=yes, resizable=1, menubar=0");
					});
				}
				
			});
		},
		openWin : function(o,params) {
			window.open(o.href, "newwin","" + params + "");
			return false;
		}
	};

	anchors.addBehaviors();	
	
/* =================================================================== */
	

/* =================================================================== */
// style and show/hide news items

	$("a.newsText").click( function() {
		$("#text").show();
		$("#image").hide();
	 } );

	$("a.newsImage").click( function() {
		$("#text").hide();
		$("#image").show();
	 } );
	 
	  // hide em all to start
	  $("#text").hide();
	  
	  
/* =================================================================== */


	  

		
});