

$(document).ready(function() {

	var pathname = window.location.pathname;
	var index = pathname.lastIndexOf("/");
	var filename = pathname.substr(index);
	filename = filename.substring(1);

	
	//alert(filename);
	
	$('div.navigation ul li a[href='+filename+']').parent().addClass('current');
	


		$("#accordion h3 img,#accordion2 h3 img").mouseover(function(){$(this).stop().animate({ opacity: 0.7 }, 100);});
		$("#accordion h3 img,#accordion2 h3 img").mousedown(function(){$(this).stop().animate({ opacity: 0.4 }, 1);});
		$("#accordion h3 img,#accordion2 h3 img").mouseup(function(){$(this).stop().animate({ opacity: 0.7 }, 1);});
		$("#accordion h3 img,#accordion2 h3 img").mouseout(function(){$(this).stop().animate({ opacity: 1 }, 100);});
		
		<!--$.preloadCssImages();-->
		
$('#wakeup_btns a[href='+filename+']').addClass('samepage');
$('#wakeup_btns-gallery a[href='+filename+']').addClass('samepage');

/*
$( "#wakeup_btns a" ).each(
 
	// For each hottie, run this code. The "indIndex" is the
	// loop iteration index on the current element.
	function( intIndex ){
 
		// Bind the onclick event to simply alert the
		// iteration index value.
		
		ref = $(this).attr('href');
		
		alert(ref+' - '+intIndex);
		
		
		$( this ).bind (
			"click",
			function(){
				alert( "Hottie index: " + intIndex );
			}
			);
 
	}
 
	);*/



});
