
if(location.href.substr(location.href.length - 5, 5) != '.html')location.href = 'index.html';   

jQuery(function( $ ){
	jQuery('div.pane').scrollTo( 0 );
	jQuery.scrollTo( 0 );
	
	var $paneTarget = jQuery('#pane-target');
	
	jQuery('#section1').click(function(){
		$paneTarget.stop().scrollTo( 'li:eq(0)', 600 );
	});
	
	jQuery('#section2').click(function(){
		$paneTarget.stop().scrollTo( 'li:eq(1)', 600 );
	});
	
	jQuery('#section3').click(function(){
		$paneTarget.stop().scrollTo( 'li:eq(2)', 600 );
	});
	
	jQuery('#section4').click(function(){
		$paneTarget.stop().scrollTo( 'li:eq(3)', 600 );
   });

   jQuery('#section22').click(function() {
      $paneTarget.stop().scrollTo('li:eq(1)', 600);
   });

   jQuery('#section33').click(function() {
      $paneTarget.stop().scrollTo('li:eq(2)', 600);
   });

   jQuery('#section44').click(function() {
      $paneTarget.stop().scrollTo('li:eq(3)', 600);
   });

         // overlay
         $("a[rel]").overlay({ expose: '#000', effect: 'apple' }); 
	
			// news Ticker
			$('#news').newsTicker();
	
	
		    $("#srt-text img[title]").tooltip({ 
        		// use single tooltip element for all tips 
		        tip: '#demotip',  

		        // tweak the position 
		        offset: [40, 20], 

		        // use "slide" effect 
		        effect: 'toggle' 

		    // add dynamic plugin  
		    }).dynamic( { 

		        // customized configuration on bottom edge 
		        bottom: { 
		            direction: 'down',  
		            bounce: true 
		        } 
		    });
	
		
});