//--------------------------
// lavalamp functions
	function loadLamps(easing) {
		$('#lavaLampBasicImage').lavaLamp({
			fx: 'easeIn'+easing,
			speed: 400,
			homeTop: -1,
			homeLeft:500
		});

	}
// end lavalamp functions

//carousel functions
function mycarousel_initCallback(carousel)
  {
      // Disable autoscrolling if the user clicks the prev or next button.
      carousel.buttonNext.bind('click', function() {
          carousel.startAuto(0);
      });
  
      carousel.buttonPrev.bind('click', function() {
          carousel.startAuto(0);
      });
  
      // Pause autoscrolling if the user moves with the cursor over the clip.
      carousel.clip.hover(function() {
          carousel.stopAuto();
      }, function() {
          carousel.startAuto();
      });
  };
//carousel

//--------------------------------------------	
$(document).ready(function(){
 
 //lavalamp
   
  var query = new Object();
	window.location.search.replace(
	new RegExp( "([^?=&]+)(=([^&]*))?", 'g' ),
		function( $0, $1, $2, $3 ){
			query[ $1 ] = $3;
		}
	);
	easing = query['e'] || 'Expo';
	
	
	$(function() {

		loadLamps(easing);

	});
	
 //end lavalamp		
 
 //slidebox
 $(".slideBox").hover(function(){
	$(this).find("img").stop().animate({
		top:-280
	}, 500);
}, function(){
	$(this).find("img").stop().animate({
		top:0
	}, 500);
});
 //end slidebox
 
 //carousel
      jQuery('#mycarousel').jcarousel({
          auto: 2,
          scroll: 1,
          wrap: 'last',
          initCallback: mycarousel_initCallback
      });
 //end - carousel
    
    //toooltip
    $(".trigger").tooltip(
     { 
      position:  	['center', 'center'],
      opacity: 0.6 ,
      effect: 'fade',
      offset:  	[-1, 0]
     }
    
    );   
    //end tooltip
    
    $(".webref").hover(
      function(){
       $(this).css("border-bottom","2px solid #fff");
       $(this).css("border-top","2px solid #fff");
      },
      function(){
       $(this).css("border","2px solid black");
      }
    
    );
       
     });
     
//-----------------------------------------------     