$(document).ready(function() { 
     $("div.noscript").hide(); 
	 $("img.mthumb").css('opacity', 0.3);	
	 $("div#med-mask").show();
	 
	 $.fn.locomplete = function(){			
	    $("div#med-mask").delay(1000, function(){$("div#med-mask").fadeOut(300);});		        
		Cufon.replace('h2');
		Cufon.replace('h3');
		Cufon.replace('h4');
		Cufon.replace('h5');
		Cufon.replace('h6');		
	 }	
	 
	 $.fn.navsub1 = function(divcheck,defload,ns2,ns3,setloc,preb,nexb,mpname,mzone,thiszone){
	  if($(divcheck).is(":visible")) {}	else {
		$("div#med-mask").show();
		$("div#mp-tnav").show();		
		$(mzone).hide();	
		$(thiszone).show(); 
		$("a#top-pr").removeClass().addClass(preb);
		$("a#top-nx").removeClass().addClass(nexb);		
		$("div.mp-head").empty().html(mpname);
		$("div#med-content").empty().load(defload, function() {$(this).locomplete();$("div#med-content img").removeClass().addClass(nexb);});		
		$("a.navsub2").removeClass('subactive');
		$(ns2).addClass('subactive');
		$("a.navsub3").removeClass('subactive2');
		$("img.gtthumb").removeClass('subactive2');
		$(ns3).addClass('subactive2');
		$("img.mthumb").css('opacity', 0.3);
		if($("div.media-loc").is(":visible")) {$("div.media-loc").hide();};	
		$(setloc).css('opacity', 1);	  	 	  	      
	    if ($.browser.msie){$("div.galsubnav").hide();}else{$("div.galsubnav").fadeOut(300);}
	    if ($.browser.msie){$(divcheck).show();}else{$(divcheck).fadeIn(300);}		
	  }	  
	 }

	 $.fn.navsub2 = function(submenu,area,linhi,preb2,nexb2,mpname2){
		if($(submenu).is(":visible")) {}	else {				
		$("a.navsub2").removeClass('subactive');
		$(this).addClass('subactive');
		$("a.navsub3").removeClass('subactive2');		
		$(linhi).addClass('subactive2');			 	      
		$("div.gtsubnav-cell").hide();
		$(submenu).show();
		$("div#med-mask").show();		
		$("a#top-pr").removeClass().addClass(preb2);
		$("a#top-nx").removeClass().addClass(nexb2);		
		$("div.mp-head").empty().html(mpname2);
		$("div#med-content").empty().load(area, function() {$(this).locomplete();$("div#med-content img").removeClass().addClass(nexb2);});		
		}
     }	  	
		
	 $.fn.navsub3 = function(area2,linhi2,preb3,nexb3,mpname3){
		$("div#med-mask").show();		
		$("a#top-pr").removeClass().addClass(preb3);
		$("a#top-nx").removeClass().addClass(nexb3);		
		$("div.mp-head").empty().html(mpname3);
		$("a.navsub3").removeClass('subactive2');
		$("img.gtthumb").removeClass('opaque');
		$(linhi2).addClass('subactive2');
		$("div#med-content").empty().load(area2, function() {$(this).locomplete();$("div#med-content img").removeClass().addClass(nexb3);});				
     }
	 
      $("img#explore").live('click', function(){
	   $(this).navsub1("div#gtnav","http://www.otherguystheatre.ca/ajax/media/otherguys/images/image06.html","a#la-gtnav-images","a#bottom","img#gt-thumb","la-pic18","la-pic2",'<span class="mp-header">Good Timber Images - Cast Shot</span>',"div.gtsubnav-cell","div#gtnav-images");
	           $("img.gtthumb").removeClass('opaque');
			   $("img#og-pic1").addClass('opaque');
			   $("div.mhmask").hide();
     });
	 
     $("a#launch-gt").live('click', function(){
	   $(this).navsub1("div#gtnav","http://www.otherguystheatre.ca/ajax/media/otherguys/images/image06.html","a#la-gtnav-images","a#bottom","img#gt-thumb","la-pic18","la-pic2",'<span class="mp-header">Good Timber Images - Cast Shot</span>',"div.gtsubnav-cell","div#gtnav-images");
	           $("img.gtthumb").removeClass('opaque');
			   $("img#og-pic1").addClass('opaque');
     });
	          
			 $("a#la-gtnav-images").live('click', function(){    
			   $(this).navsub2("div#gtnav-images","http://www.otherguystheatre.ca/ajax/media/otherguys/images/image06.html","a#bottom","la-pic18","la-pic2",'<span class="mp-header">Good Timber Images - Cast Shot</span>');
			   $("img.gtthumb").removeClass('opaque');
			   $("img#og-pic1").addClass('opaque');
			 });
			  
					   $('.la-pic1').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image06.html","a#bottom","la-pic18","la-pic2",'<span class="mp-header">Good Timber Images - Cast Shot</span>');
						 $("img#og-pic1").addClass('opaque');
					   });	
					   
					   $('.la-pic2').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image02.html","a#bottom","la-pic1","la-pic3",'<span class="mp-header">BC Archives Images - D_04875</span>');
						 $("img#og-pic2").addClass('opaque');
					   });
					   
					   $('.la-pic3').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image03.html","a#bottom","la-pic2","la-pic5",'<span class="mp-header">BC Archives Images - B_06972</span>');
						 $("img#og-pic3").addClass('opaque');
					   });						   
					                         
					   $('.la-pic5').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image01.html","a#bottom","la-pic4","la-pic6",'<span class="mp-header">Good Timber Images - Cast Shot</span>');
						 $("img#og-pic5").addClass('opaque');
					   });	
					   
					   $('.la-pic6').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image04.html","a#bottom","la-pic5","la-pic7",'<span class="mp-header">Good Timber Images - Cast Shot</span>');
						 $("img#og-pic6").addClass('opaque');
					   });	
					   
					   $('.la-pic7').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image07.html","a#bottom","la-pic6","la-pic8",'<span class="mp-header">Good Timber Images - Cast Shot</span>');
						 $("img#og-pic7").addClass('opaque');
					   });	
					   
					   $('.la-pic8').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image08.html","a#bottom","la-pic7","la-pic9",'<span class="mp-header">BC Archives Images - I_68761</span>');
						 $("img#og-pic8").addClass('opaque');
					   });	
					   
					   $('.la-pic9').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image09.html","a#bottom","la-pic8","la-pic10",'<span class="mp-header">BC Archives Images - D_07291</span>');
						 $("img#og-pic9").addClass('opaque');
					   });	
					   
					   $('.la-pic10').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image10.html","a#bottom","la-pic9","la-pic11",'<span class="mp-header">Good Timber Images - Cast Shot</span>');
						 $("img#og-pic10").addClass('opaque');
					   });	
					   
					   $('.la-pic11').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image11.html","a#bottom","la-pic10","la-pic12",'<span class="mp-header">BC Archives Images - D_04949</span>');
						 $("img#og-pic11").addClass('opaque');
					   });	
					   
					   $('.la-pic12').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image12.html","a#bottom","la-pic11","la-pic13",'<span class="mp-header">Good Timber Images - Cast Shot</span>');
						 $("img#og-pic12").addClass('opaque');
					   });	
					   
					   $('.la-pic13').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image13.html","a#bottom","la-pic12","la-pic14",'<span class="mp-header">BC Archives Images - C_04909</span>');
						 $("img#og-pic13").addClass('opaque');
					   });	
					   
					   $('.la-pic14').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image14.html","a#bottom","la-pic13","la-pic15",'<span class="mp-header">Good Timber Images - Cast Shot</span>');
						 $("img#og-pic14").addClass('opaque');
					   });	
					   
					   $('.la-pic15').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image15.html","a#bottom","la-pic14","la-pic16",'<span class="mp-header">BC Archives Images - C_04533</span>');
						 $("img#og-pic15").addClass('opaque');
					   });	
					   
					   $('.la-pic16').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image16.html","a#bottom","la-pic15","la-pic17",'<span class="mp-header">BC Archives Images - E_00797</span>');
						 $("img#og-pic16").addClass('opaque');
					   });	
					   
					   $('.la-pic17').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image17.html","a#bottom","la-pic16","la-pic18",'<span class="mp-header">Good Timber Images - Cast Shot</span>');
						 $("img#og-pic17").addClass('opaque');
					   });
					   
					    $('.la-pic18').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/images/image18.html","a#bottom","la-pic17","la-pic1",'<span class="mp-header">BC Archives Images - D_05051</span>');
						 $("img#og-pic18").addClass('opaque');
					   });
					   		
					   
					   		  
			  
			 $("a#la-gtnav-press").live('click', function(){
			   $(this).navsub2("div#gtnav-press","http://www.otherguystheatre.ca/ajax/media/otherguys/press/page1.html","a#og-pp1","la-press4","la-press2",'<span class="mp-header">Good Timber Press Release (Page 01)</span>');			  
			 });
			 
					   $('a.la-press1').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/press/page1.html","a#og-pp1","la-press4","la-press2",'<span class="mp-header">Good Timber Press Release (Page 01)</span>');
					   });
					   
					   $("a.la-press2").live('click', function(){     
						 $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/press/page2.html","a#og-pp2","la-press1","la-press3",'<span class="mp-header">Good Timber Press Release (Page 02)</span>');
					   });
					   
					   $("a.la-press3").live('click', function(){    
						 $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/press/page3.html","a#og-pp3","la-press2","la-press4",'<span class="mp-header">Good Timber Press Release (Page 03)</span>');
					   });
					   
					   $("a.la-press4").live('click', function(){     
						 $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/press/page4.html","a#og-pp4","la-press3","la-press1",'<span class="mp-header">Good Timber Press Release (Page 04)</span>');
					   });
			 
			 
			 $("a#la-gtnav-gloss").live('click', function(){
			   $(this).navsub2("div#gtnav-gloss","http://www.otherguystheatre.ca/ajax/media/otherguys/gloss/page1.html","a#og-lg1","la-gloss5","la-gloss2",'<span class="mp-header">Good Timber Logger\'s Dictionary (Page 01)</span>');
			 });
			 
					   $('a.la-gloss1').live('click', function(){					    						    
                          $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/gloss/page1.html","a#og-lg1","la-gloss4","la-gloss2",'<span class="mp-header">Good Timber Logger\'s Dictionary (Page 01)</span>');
					   });
					   
					   $("a.la-gloss2").live('click', function(){     
						 $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/gloss/page2.html","a#og-lg2","la-gloss1","la-gloss3",'<span class="mp-header">Good Timber Logger\'s Dictionary (Page 02)</span>');
					   });
					   
					   $("a.la-gloss3").live('click', function(){    
						 $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/gloss/page3.html","a#og-lg3","la-gloss2","la-gloss4",'<span class="mp-header">Good Timber Logger\'s Dictionary (Page 03)</span>');
					   });
					   
					   $("a.la-gloss4").live('click', function(){     
						 $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/gloss/page4.html","a#og-lg4","la-gloss3","la-gloss5",'<span class="mp-header">Good Timber Logger\'s Dictionary (Page 04)</span>');
					   });	
					   
					   $("a.la-gloss5").live('click', function(){
						 $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/otherguys/gloss/page5.html","a#og-lg5","la-gloss4","la-gloss1",'<span class="mp-header">Good Timber Logger\'s Dictionary (Page 05)</span>');
					   });
			 
			 
			 $("a#la-gtnav-video").click(function () {     
			   if($("div#gtnav-video").is(":visible")) {}	else { 
			  $("a.navsub2").removeClass('subactive');
			  $('div.gtsubnav-cell').addClass('dno');	
		      $("div#gtnav-video").removeClass('dno');
			  $(this).addClass('subactive');
			  $("img#og-v1").removeClass('opaque');
			  $("a.navsub3").removeClass('subactive2');					 	      
			  $("div.gtsubnav-cell").hide();
			  $("div#gtnav-video").show();			  	
			  $("a#top-pr").removeClass();
			  $("a#top-nx").removeClass();
			  $("a#bot-pr").removeClass();
			  $("a#bot-nx").removeClass();
			  $("div#med-content").empty();	
			  $("div#med-content").empty().load("http://www.otherguystheatre.ca/ajax/media/otherguys/video/video01.html", function() {$(this).locomplete();});		  
			   $("div.mp-head").empty().html('<span class="mp-header">Good Timber Production/Background Video</span>');	
			    $("img#og-v1").addClass('opaque'); 			  		  
			  }			   
			 });
			 
			             
 
	 
	 $("a#launch-jp").live('click', function(){
	   $(this).navsub1("div#jpnav","http://www.otherguystheatre.ca/ajax/media/jimpane/images/image01.html","a#la-jpnav-images","a#bottom","img#jp-thumb","la-jppic3","la-jppic2",'<span class="mp-header">The Ballad of Jim Pane - Zach Stevenson</span>',"div.gtsubnav-cell","div#jpnav-images");
	           $("img.gtthumb").removeClass('opaque');
			   $("img#jp-pic1").addClass('opaque');
     });
	          
			 $("a#la-jpnav-images").live('click', function(){
			   $(this).navsub2("div#jpnav-images","http://www.otherguystheatre.ca/ajax/media/jimpane/images/image01.html","a#bottom","la-jppic2","la-jppic3",'<span class="mp-header">The Ballad of Jim Pane - Zach Stevenson</span>');
			   $("img.gtthumb").removeClass('opaque');
			   $("img#jp-pic1").addClass('opaque');
			 });
			  
					   $('.la-jppic1').live('click', function(){
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/jimpane/images/image01.html","a#bottom","la-jppic3","la-jppic2",'<span class="mp-header">The Ballad of Jim Pane - Zach Stevenson</span>');
						 $("img.gtthumb").removeClass('opaque');
						 $("img#jp-pic1").addClass('opaque');
					   });
					   
					   $('.la-jppic2').live('click', function(){
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/jimpane/images/image02.html","a#bottom","la-jppic1","la-jppic3",'<span class="mp-header">The Ballad of Jim Pane - Zach Stevenson</span>');
						 $("img.gtthumb").removeClass('opaque');
						 $("img#jp-pic2").addClass('opaque');
					   });
					   
					   $('.la-jppic3').live('click', function(){
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/jimpane/images/image03.html","a#bottom","la-jppic2","la-jppic1",'<span class="mp-header">The Ballad of Jim Pane - Zach Stevenson</span>');
						 $("img.gtthumb").removeClass('opaque');
						 $("img#jp-pic3").addClass('opaque');
					   });
	$("a#la-jpnav-audio").click(function () {     
			   if($("div#jpnav-audio").is(":visible")) {}	else { 
			  $("a.navsub2").removeClass('subactive');
			  $('div.gtsubnav-cell').addClass('dno');	
		      $("div#jpnav-audio").removeClass('dno');
			  $(this).addClass('subactive');			  
			  $("a.navsub3").removeClass('subactive2');					 	      
			  $("div.gtsubnav-cell").hide();
			  $("div#jpnav-audio").show();			  	
			  $("a#top-pr").removeClass();
			  $("a#top-nx").removeClass();
			  $("a#bot-pr").removeClass();
			  $("a#bot-nx").removeClass();
			  $("div#med-content").empty();
			  $("div#med-content").empty().load("http://www.otherguystheatre.ca/ajax/media/jimpane/audio/audio.html", function() {$(this).locomplete();});
			 $("div.mp-head").empty().html('<span class="mp-header">Audio from the Ballad of Jim Pane with Zach Stevenson</span>');		  
			  }			   
			 });
			 
	 $("a#la-jpnav-video").click(function () {     
			   if($("div#jpnav-video").is(":visible")) {}	else { 
			  $("a.navsub2").removeClass('subactive');
			  $('div.gtsubnav-cell').addClass('dno');	
		      $("div#jpnav-video").removeClass('dno');
			  $(this).addClass('subactive');			  
			  $("a.navsub3").removeClass('subactive2');					 	      
			  $("div.gtsubnav-cell").hide();
			  $("div#jpnav-video").show();			  	
			  $("a#top-pr").removeClass();
			  $("a#top-nx").removeClass();
			  $("a#bot-pr").removeClass();
			  $("a#bot-nx").removeClass();
			  $("div#med-content").empty();	
			  $("div#med-content").empty().load("http://www.otherguystheatre.ca/ajax/media/jimpane/video/video01.html", function() {$(this).locomplete();});	  
			  $("div.mp-head").empty().html('<span class="mp-header">Ballad of Jim Pane Production/Background Video</span>');			  			  		  
			  }			   
			 });	
			            			   
	 
	 
	 $("a#launch-mv").live('click', function(){
	   $(this).navsub1("div#mvnav","http://www.otherguystheatre.ca/ajax/media/moody/images/image01.html","a#la-mvnav-images","a#bottom","img#mv-thumb","la-mvpic9","la-mvpic2",'<span class="mp-header">Moodyville Tales</span>',"div.gtsubnav-cell","div#mvnav-images");
	           $("img.gtthumb").removeClass('opaque');
			   $("img#mv-pic1").addClass('opaque');
     });
	 
	 $("a#la-mvnav-images").live('click', function(){    
			   $(this).navsub2("div#mvnav-images","http://www.otherguystheatre.ca/ajax/media/moody/images/image01.html","a#bottom","la-mvpic9","la-mvpic2",'<span class="mp-header">A. Iredale, C.  Moddle, J. Gogo, C. Eccleston</span>');
			   $("img.gtthumb").removeClass('opaque');
			   $("img#mv-pic1").addClass('opaque');
			 });
			  
					   $('.la-mvpic1').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/moody/images/image01.html","a#bottom","la-mvpic9","la-mvpic2",'<span class="mp-header">A. Iredale, C.  Moddle, J. Gogo, C. Eccleston</span>');
						 $("img#mv-pic1").addClass('opaque');
					   });	
					   
					   $('.la-mvpic2').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/moody/images/image02.html","a#bottom","la-mvpic1","la-mvpic3",'<span class="mp-header">Colleen Eccleston</span>');
						 $("img#mv-pic2").addClass('opaque');
					   });
					   
					   $('.la-mvpic3').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/moody/images/image03.html","a#bottom","la-mvpic2","la-mvpic4",'<span class="mp-header">J Craig Moddle</span>');
						 $("img#mv-pic3").addClass('opaque');
					   });	
					   	   
					   $('.la-mvpic4').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/moody/images/image04.html","a#bottom","la-mvpic3","la-mvpic5",'<span class="mp-header">John Gogo</span>');
						 $("img#mv-pic4").addClass('opaque');
					   });
					   
					   $('.la-mvpic5').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/moody/images/image05.html","a#bottom","la-mvpic4","la-mvpic6",'<span class="mp-header">Mark Hellman and Company</span>');
						 $("img#mv-pic5").addClass('opaque');
					   });	
					   
					   $('.la-mvpic6').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/moody/images/image06.html","a#bottom","la-mvpic5","la-mvpic7",'<span class="mp-header">Patricia Leger and Kelt Eccleston</span>');
						 $("img#mv-pic6").addClass('opaque');
					   });	
					   
					   $('.la-mvpic7').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/moody/images/image07.html","a#bottom","la-mvpic6","la-mvpic8",'<span class="mp-header">John Gogo</span>');
						 $("img#mv-pic7").addClass('opaque');
					   });	
					   
					   $('.la-mvpic8').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/moody/images/image08.html","a#bottom","la-mvpic7","la-mvpic9",'<span class="mp-header">Moodyville Tales Historical Shot</span>');
						 $("img#mv-pic8").addClass('opaque');
					   });	
					   
					   $('.la-mvpic9').live('click', function(){					    						    
                         $(this).navsub3("http://www.otherguystheatre.ca/ajax/media/moody/images/image09.html","a#bottom","la-mvpic8","la-mvpic1",'<span class="mp-header">Full Company</span>');
						 $("img#mv-pic9").addClass('opaque');
					   });	
					   
					   
	 
	  $("a#la-mvnav-video").click(function () {     
			   if($("div#mvnav-video").is(":visible")) {}	else { 
			  $("a.navsub2").removeClass('subactive');
			  $('div.gtsubnav-cell').addClass('dno');	
		      $("div#mvnav-video").removeClass('dno');
			  $(this).addClass('subactive');			  
			  $("a.navsub3").removeClass('subactive2');					 	      
			  $("div.gtsubnav-cell").hide();
			  $("div#mvnav-video").show();			  	
			  $("a#top-pr").removeClass();
			  $("a#top-nx").removeClass();
			  $("a#bot-pr").removeClass();
			  $("a#bot-nx").removeClass();
			  $("div#med-content").empty();	
			  $("div#med-content").empty().load("http://www.otherguystheatre.ca/ajax/media/moody/video/video01.html", function() {$(this).locomplete();});		  
			   $("div.mp-head").empty().html('<span class="mp-header">Moodyville Production/Background Video</span>');	
			    $("img#mv-v1").addClass('opaque'); 			  		  
			  }			   
			 });
		 $("a#la-mvnav-press").live('click', function(){
			   $(this).navsub2("div#mvnav-press","http://www.otherguystheatre.ca/ajax/media/moody/press/page1.html","a#bottom","mv-press4","mv-press2",'<span class="mp-header">Moodyville Tales Press Release</span>');			  
			 });	 
			 
			 
	 
	 $("a#launch-vd").live('click', function(){
	   $(this).navsub1("div#vdnav","http://www.otherguystheatre.ca/ajax/media/vinedressers/images/image01.html","a#la-vdnav-images","a#bottom","img#vd-thumb","la-vdpic3","la-vdpic2",'<span class="mp-header">The Vinedressers</span>',"div.gtsubnav-cell","div#vdnav-images");
	           $("img.gtthumb").removeClass('opaque');
			   $("img#vd-pic1").addClass('opaque');
     });
	 
	     $("a#la-vdnav-images").live('click', function(){    
			   $(this).navsub2("div#vdnav-images","http://www.otherguystheatre.ca/ajax/media/vinedressers/images/image01.html","a#bottom","la-vdpic3","la-vdpic2",'<span class="mp-header">The Vinedressers</span>');
			   $("img.gtthumb").removeClass('opaque');
			   $("img#vd-pic1").addClass('opaque');
			 });	
	 
	 $("a#la-vdnav-audio").click(function () {     
			   if($("div#vdnav-audio").is(":visible")) {}	else { 
			  $("a.navsub2").removeClass('subactive');
			  $('div.gtsubnav-cell').addClass('dno');	
		      $("div#vdnav-audio").removeClass('dno');			  
			  $(this).addClass('subactive');			  			  
			  $("a.navsub3").removeClass('subactive2');	
			  $("div.gtsubnav-cell").hide();
			  $("div#vdnav-audio").show();		  			  	
			  $("a#top-pr").removeClass();
			  $("a#top-nx").removeClass();			  		  
			  $("div#med-content").empty().load("http://www.otherguystheatre.ca/ajax/media/vinedressers/audio/audio01.html", function() {$(this).locomplete();});		  
			   $("div.mp-head").empty().html('<span class="mp-header">Vinedressers Audio Excerpt</span>');	   		  		  
			  }			   
			 }); 
	 
	 
	 	 
	 function showgthover(){
		   if($("div.galsubnav").is(":visible")) {}	else {$("div#gt-hover").fadeIn(300);}
		   if($("div.mhmask").is(":visible")) {$("div.mhmask").hide();};
	       if($("div#gtnav").is(":visible")) {}	else {$(this).stop().animate({opacity: 1}, 300);}}
	 function hidegthover(){
		   if($("div.galsubnav").is(":visible")) {}	else {$("div#gt-hover").fadeOut(300);}
		   if($("div#gtnav").is(":visible")) {}	else {$(this).stop().animate({opacity: 0.3}, 300);}}
	  var displaygthover = {
		   interval: 100,
		   sensitivity: 7,
		   over: showgthover,
		   timeout: 0,
		   out: hidegthover
	  };
	 $("img#gt-thumb").hoverIntent(displaygthover)
	 
	 function showjphover(){
		   if($("div.galsubnav").is(":visible")) {}	else {$("div#jp-hover").fadeIn(300);}
		   if($("div.mhmask").is(":visible")) {$("div.mhmask").hide();};
		   if($("div#jpnav").is(":visible")) {}	else {$(this).stop().animate({opacity: 1}, 300);}}
	 function hidejphover(){
		   if($("div.galsubnav").is(":visible")) {}	else {$("div#jp-hover").fadeOut(300);}
		   if($("div#jpnav").is(":visible")) {}	else {$(this).stop().animate({opacity: 0.3}, 300);}}
	  var displayjphover = {
		   interval: 100,
		   sensitivity: 7,
		   over: showjphover,
		   timeout: 0,
		   out: hidejphover
	  };
	 $("img#jp-thumb").hoverIntent(displayjphover)
	 
	 function showmvhover(){
		   if($("div.galsubnav").is(":visible")) {}	else {$("div#mv-hover").fadeIn(300);}
		   if($("div.mhmask").is(":visible")) {$("div.mhmask").hide();};
		   if($("div#mvnav").is(":visible")) {}	else {$(this).stop().animate({opacity: 1}, 300);}}
	 function hidemvhover(){
		   if($("div.galsubnav").is(":visible")) {}	else {$("div#mv-hover").fadeOut(300);}
		   if($("div#mvnav").is(":visible")) {}	else {$(this).stop().animate({opacity: 0.3}, 300);}}
	  var displaymvhover = {
		   interval: 100,
		   sensitivity: 7,
		   over: showmvhover,
		   timeout: 0,
		   out: hidemvhover
	  };
	 $("img#mv-thumb").hoverIntent(displaymvhover)
	 
	 function showvdhover(){
		   if($("div.galsubnav").is(":visible")) {}	else {$("div#vd-hover").fadeIn(300);}
		   if($("div.mhmask").is(":visible")) {$("div.mhmask").hide();};
		   if($("div#vdnav").is(":visible")) {}	else {$(this).stop().animate({opacity: 1}, 300);}}
	 function hidevdhover(){
		   if($("div.galsubnav").is(":visible")) {}	else {$("div#vd-hover").fadeOut(300);}
		   if($("div#vdnav").is(":visible")) {}	else {$(this).stop().animate({opacity: 0.3}, 300);}}
	  var displayvdhover = {
		   interval: 100,
		   sensitivity: 7,
		   over: showvdhover,
		   timeout: 0,
		   out: hidevdhover
	  };
	 $("img#vd-thumb").hoverIntent(displayvdhover)	 
	 
});

$(document).ready(function() {	 
	 $("div#med-mask").delay(2000, function(){$("div#med-mask").fadeOut(300);});	 
   });

$(window).load(function() {	
	$("div#med-mask").fadeOut(300);		
});
