// JavaScript Document

DD_belatedPNG.fix('img');

//Gallery Fading
$(document).ready(function(){
$('.thumb').fadeTo(0,0.65);
$(".thumb").hover(function(){
$(this).stop(true);
$(this).fadeTo(200, 1);
},function(){
$(this).stop(true);
$(this).fadeTo(200, 0.65);
});
});



/*					  var y = z*.5-225
					  if (z<750)
$('.content_test').css('top','125px');		
else
$('.content_test').css('top',y); */

	/*	  var y = z*.5-225
		  if (z<725)
	$('.content_test').css('top','125px');		
	else
	$('.content_test').css('top',y);*/

$(document).ready(function(){
						  var z = $(window).height();
						  var h = z-165;
	$('div.scrollable').css('height',h + "px");
	$('#press_inner_right').css('height',h + "px");
	$('#music_right').css('height',h + "px");
	$('#bio').css('height',h + "px");
});

$(window).resize(function(){
				var resize_z = $(window).height();
				var resize_h = resize_z-165;
	$('div.scrollable').css('height',resize_h + "px");
	$('#press_inner_right').css('height',resize_h + "px");
	$('#music_right').css('height',resize_h + "px");
	$('#bio').css('height',resize_h + "px");	
});








// Controls mist fading
//var mist_config = {    
//     sensitivity: 1,   
//     interval: 100,   
//     over: function(){$(this).stop(true);$(this).fadeTo(3000, .5);},   
//     timeout: 3000,  
//     out: function(){$(this).stop(true);$(this).fadeTo(3000, 0.95);}
//};


// Controls nav fading
$(document).ready(function(){
//$(".button").fadeTo(0, 1);
//$(".slash").fadeTo(0, 1);
$(".button").hover(function(){
//							if ($(this).hasClass("press_select")==true||$(this).hasClass("music_select")==true)
	//						{
		//						$(this).stop(true);
			//					$(this).fadeTo(0,1);
				//			}
							if ($(this).hasClass("music_select")==false&&
												 $(this).hasClass("press_select")==false&&
												 $(this).hasClass("current")==false&&
												 $(this).hasClass("bio_photo_select")==false
												 )
							{
$(this).stop(true);
$(this).fadeTo(200, 0.7);
}
							}
,function(){
$(this).stop(true);
$(this).fadeTo(200, 1);
});
});

$(document).ready(function(){
$(".button").click(function(){
$(this).stop(true);
$(this).fadeTo(0, 1);	

							  });
						   });


// execute your scripts when DOM is ready. this is a good habit 
$(function() {         
         
    // initialize scrollable  
    $("div.scrollable").scrollable({ 
        vertical:true,  
        size: 5,
		easing:"swing",
		prevPage:".prev_headings",
		nextPage:".next_headings"
    });     
     
}); 

// perform JavaScript after the document is scriptable. 
$(function() { 
    // setup ul.tabs to work as tabs for each div directly under div.panes 
    $("ul.tabs").tabs("div.panes > div");
});

// perform JavaScript after the document is scriptable. 
$(function() { 

$(".headlines").tabs(".article_class", { 

	current: 'press_select',
	tabs: 'head',
});
});

$(function() { 

$(".music_tab").tabs(".music_pane", { 

	current: 'music_select',
	tabs: 'm_tab'
});
});

$(function() { 

$(".bio_photo_tab").tabs(".bio_photo_pane", { 

	current: 'bio_photo_select',
	tabs: 'bp_tab'
});
});

$(function() { 

$("ul.thumb_tabs").tabs(".gallery_image", { 

	current: 'gallery_select',
	tabs: 'thumb'
});
});