﻿$(document).ready(function() {


$(function()
{
	$('.scroll-pane').jScrollPane({scrollbarWidth: 15});
});


$('a[class*=scroll]').click(function() {
	if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
	&& location.hostname == this.hostname) {
	  var $target = $(this.hash);
	  $target = $target.length && $target
	  || $('[name=' + this.hash.slice(1) +']');
	  if ($target.length) {
		var targetOffset = $target.offset().top - 20;
		$('html,body')
		.animate({scrollTop: targetOffset}, 1000);
	   return false;
	  }
	}
  });
  
  $('#investment_summary').hide();
  $('#download').hide();
  $('#location_map').hide();
  $('#investment_potential').hide();
  $('#development_background').hide();
  $('#overview').hide();
  $('#gallery').hide();
  $('#financial').hide();
  $('#introduction').show();
  
  
  $('a.devb').click(function() {
  
  $('div[class*=right_panel]').hide();
  $('#development_background').fadeIn();
return false;
   
  });
  
  
    $('a.gallery').click(function() {
  
  $('div[class*=right_panel]').hide();
  $('#gallery').fadeIn();
return false;
   
  });
  
    $('a.financial').click(function() {
  
  $('div[class*=right_panel]').hide();
  $('#financial').fadeIn();
return false;
   
  });
  
  $('a.introduction').click(function() {
  
  $('div[class*=right_panel]').hide();
  $('#introduction').fadeIn();
return false;
   
  });
  
  
  
   $('a.investments').click(function() {
  
  $('div[class*=right_panel]').hide();
  $('#investment_summary').fadeIn();
return false;
   
  });
  
     $('a.overview').click(function() {
  
  $('div[class*=right_panel]').hide();
  $('#overview').fadeIn();
return false;
   
  });
  
   $('a.investmentp').click(function() {
  
  $('div[class*=right_panel]').hide();
  $('#investment_potential').fadeIn();
return false;
   
  });
  
   $('a.locationm').click(function() {
  
  $('div[class*=right_panel]').hide();
  $('#location_map').fadeIn();
return false;
   
  });
  
   $('a.db').click(function() {
  
  $('div[class*=right_panel]').hide();
  $('#download').fadeIn();
return false;
   
  });
  
 
  


});



