// JavaScript Document
function hbDone(){
	  $('.spane').jScrollPane({animateTo:true});
	  	  $('#home_topright .more').show();
  }

function htDone(){
	  $('.spane').jScrollPane({animateTo:true});
	   $('#home_bottomright .more').show();
  }
 
		  function fadeBGS(){
		var fade1=1200;
		 $('#main_holder').fadeIn(fade1);
		 $('#home_rightcol').fadeIn(fade1);
		 $('#footer_wrapper').fadeIn(fade1);
		  }
		  
		  function fadeTXTS(){
			  var fade2=1200;
		$('.text_wrapper').fadeIn(fade2);
		 $('.text_wrapper1').fadeIn(fade2);
		 $('.titlepic').fadeIn(fade2);
		  $('.menu_object').fadeIn(fade2);
		  $('#footer_content').fadeIn(fade2);
		  }
  

						  
	$(document).ready(function() {
							   var fadeYes=$(document).getUrlParam("fade");
							   if(fadeYes=="0"){
							   }else{

		 $('#main_holder').hide();
		 $('#home_rightcol').hide();
		 $('#footer_wrapper').hide();
		 
		 $('.text_wrapper').hide();
		 $('.text_wrapper1').hide();
		 $('.titlepic').hide();
		  $('.menu_object').hide();
		  $('#footer_content').hide();
		    $(window).load(function(){  
						    setTimeout('fadeBGS()',1000);
		  setTimeout('fadeTXTS()',2000);
						  });
							   }
		   $('#home_topright .more').hide();
		
  
 
  $('#home_bottomright .more').click(function(){
											  
		  $('#home_bottomright').animate({ "height" : "437px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'});
		  $('#home_bottomright .text_wrapper').animate({ "height" : "325px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'});
		  $('#home_bottomright .text_holder').animate({ "height" : "325px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'}).addClass('spane');
		  
		  $('#home_topright').animate({ "height" : "193px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'});
		  $('#home_topright .text_wrapper').animate({ "height" : "100px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'});
		  $('#home_topright .text_holder').animate({ "height" : "100px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'}).removeClass('spane');
  
		  setTimeout('hbDone()',560);
		  $(this).hide();
		  $('#home_topright div.arrows_wrapper').css('visibility','hidden');
		  
											  });
   $('#home_topright .more').click(function(){					  
		  $('#home_bottomright').animate({ "height" : "222px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'});
		  $('#home_bottomright .text_wrapper').animate({ "height" : "100px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'});
		  $('#home_bottomright .text_holder').animate({ "height" : "100px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'}).removeClass('spane');
		  
		  $('#home_topright').animate({ "height" : "408px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'});
		  $('#home_topright .text_wrapper').animate({ "height" : "324px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'});
		  $('#home_topright .text_holder').animate({ "height" : "324px"} ,{ queue : false , duration : 550 , easing : 'easeOutCubic'}).addClass('spane');
  			$(this).hide();
			
		  setTimeout('htDone()',560);
		  
		  $('#home_bottomright div.arrows_wrapper').css('visibility','hidden');
		  
											  });
							   });

