		
$(function()
			{

				$('#gallery_panel_overflow').jScrollPane({scrollbarWidth:11, scrollbarMargin:10});
				//$('#scroller_area_2').jScrollPane({scrollbarWidth:11, scrollbarMargin:10});
				//$('#scroller_area_3').jScrollPane({scrollbarWidth:11, scrollbarMargin:10});
				//$('#pane2').jScrollPane({showArrows:true});
				//$('#pane3, #pane4').jScrollPane({scrollbarWidth:20, scrollbarMargin:10});
                
		
			});

			
	function activeLink(id){


	for(i = 0; i <5; i++){

		if(id ==i){

			document.getElementById('lst'+id).className='t';

		}else if(id !=i){

			document.getElementById('lst'+i).className='f';
		}

	}

}


var nextTitle;


function fadePageTitleIn(){

if(nextTitle ==1){
nextTitle =2;
}else{
nextTitle =1;
}
$('#title_'+nextTitle).fadeIn('slow');


}

function fadePageTitle(){

	if(nextTitle == undefined){
		nextTitle =1;
		}

		$('#title_'+nextTitle).fadeOut('slow');
		setTimeout(fadePageTitleIn,600);
	

}

function delayTimer(){
	
	
	
	var timer = setInterval(fadePageTitle,8000)
}
