$(document).ready(function(){				  
  // Show new content onload
	$("div#news").show();					
	
	// create flash object with swfobject.js
	// temp off for testing
	var so = new SWFObject("simplePlayer.swf", "flashPlayer", "910", "27", "8", "#000000");										
	so.write("flashPlayer");//
	
	// perm off - replacing with embedded audio player
	//var mo = new SWFObject("fullPlayer.swf", "fullPlayer", "325", "180", "9", "#CCCCCC");										
	//mo.write("fullPlayer");
	
	var fo = new SWFObject("imageViewer.swf", "imageViewer", "538", "550", "9", "#000000");
	fo.addParam("wmode", "transparent");										
	fo.write("flashPhoto");
	/*var fo = new SWFObject("imageViewer2.swf?hp=photoList.php", "imageViewer2", "538", "550", "9", "#000000");
	fo.addParam("wmode", "transparent");	
	fo.write("flashPhoto");	*/

	/* adding youtube embedded videos
	var vo1 = new SWFObject("videoPlayer.swf", "videoPlayer", "320", "240", "9", "#000000");
	vo1.addVariable("videoPath", "media/video/THINKING PLYERS EPK.flv");						
	vo1.write("video1");
	
	var vo2 = new SWFObject("videoPlayer.swf", "videoPlayer", "320", "240", "9", "#000000");
	vo2.addVariable("videoPath", "media/video/tp picturres rev.flv");						
	vo2.write("video2");				
	*/
	
	// Setup each Nav Link
	$("a#newsNav").click(function(){				 								 
         $("div.content").hide("fast");
    		 $("div#news").show("slow");
    		 return false;
  		 });
	 
	 $("a#bioNav").click(function(){
         $("div.content").hide("fast");
    		 $("div#bio").show("slow");
    		 return false;
  		 });
	 
	 $("a#mediaNav").click(function(){
	 			 return false;
	     });
	 
	 $("a#audioNav").click(function(){
         $("div.content").hide("fast");
    		 $("div#audio").show("slow");
    		 return false;
  		 });
	 
	 $("a#videoNav").click(function(){
         $("div.content").hide("fast");
    		 $("div#video").show("slow");
    		 return false;
  		 });
	 
	 $("a#photoNav").click(function(){
         $("div.content").hide("fast");
    		 $("div#photo").show("slow");
    		 return false;
  		 });
	 
	 $("a#tourNav").click(function(){
         $("div.content").hide("fast");
    		 $("div#tour").show("slow");
    		 return false;
  		 });
	 
	 $("a#merchNav").click(function(){
         $("div.content").hide("fast");
    		 $("div#merch").show("slow");
    		 return false;
  		 });
	 
	 $("a#pressNav").click(function(){
         $("div.content").hide("fast");
    		 $("div#press").show("slow");
    		 return false;
  		 });
	
	/*		 
	 $("a#reviewsNav").click(function(){
         $("div.content").hide("fast");
    		 $("div#review").show("slow");
    		 return false;
  		 });		 
	 */
	 
	 $("a#contactNav").click(function(){
         $("div.content").hide("fast");
    		 $("div#contact").show("slow");
    		 return false;
  		 });

		// Tour links
    $("a#oldTourAtag").click(function(){
           $("div.content").hide("fast");
      		 $("div#oldTour").show("slow");
      		 return false;
    		 });
			 
	 $("a#newTourAtag").click(function(){
         $("div.content").hide("fast");
    		 $("div#tour").show("slow");
    		 return false;
  		 });
	
	// Setup the media menu rollover behavior
	$("a#mediaNav").hover(function(){
         $("div#mediaLinks").show();
       },function(){
         return false;
       });
	 
	 $("div#mediaLinks").hover(function(){
         return false;
       },function(){
         $(this).hide();
       });
			 
	// set up footer links
	$("a#newsFoot").click(function(){				 								 
         $("div.content").hide("fast");
    		 $("div#news").show("slow");
    		 return false;
  		 });
	 
	 $("a#bioFoot").click(function(){
         $("div.content").hide("fast");
    		 $("div#bio").show("slow");
    		 return false;
  		 });
	 
	 $("a#audioFoot").click(function(){
         $("div.content").hide("fast");
    		 $("div#audio").show("slow");
    		 return false;
  		 });
	 
	 $("a#videoFoot").click(function(){
         $("div.content").hide("fast");
    		 $("div#video").show("slow");
    		 return false;
  		 });
	 
	 $("a#photoFoot").click(function(){
         $("div.content").hide("fast");
    		 $("div#photo").show("slow");
    		 return false;
  		 });
	 
	 $("a#tourFoot").click(function(){
         $("div.content").hide("fast");
    		 $("div#tour").show("slow");
    		 return false;
  		 });
	 
	 $("a#merchFoot").click(function(){
         $("div.content").hide("fast");
    		 $("div#merch").show("slow");
    		 return false;
  		 });
	 
	 $("a#pressFoot").click(function(){
         $("div.content").hide("fast");
    		 $("div#press").show("slow");
    		 return false;
  		 });
	/*		 
	 $("a#reviewsFoot").click(function(){
         $("div.content").hide("fast");
    		 $("div#review").show("slow");
    		 return false;
  		 });		 
	 */
	 $("a#contactFoot").click(function(){
         $("div.content").hide("fast");
    		 $("div#contact").show("slow");
    		 return false;
  		 });
});