/*
 * Tooltip script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */
 


this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 10;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	$("a.tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		$("#tooltip").remove();
    });	
	$("a.tooltip").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};


$(document).ready(function(){
	tooltip();

$('.passive').hover(function(){$(this).stop().switchClass('passive','roll',500);}, function(){$(this).stop().switchClass('roll','passive',500);}); 



});

            $(function() {
                $('#container-1').tabs();
            });

$(document).ready(function(){
	$("#contactform").validate();
$(".vimeo").colorbox();

});



	$.localScroll.defaults.axis = 'xy';

	$.localScroll.hash({
		target: 'html', // Could be a selector or a jQuery object too.
		queue:true,
		duration:1000,
	});

	$.localScroll({
		target: 'html', // could be a selector or a jQuery object too.
		queue:false,
		duration:1000,
		hash:true,
		stop: true,
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}

	});

var params = {


};
		swfobject.embedSWF("player.swf", "mp3", "140", "15", "9.0.0");

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-16650901-3']);
  _gaq.push(['_trackPageview']);
		// LOAD TWEETS
  (function() {
     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
  window.fbAsyncInit = function() {
    FB.init({appId: 'f1fa2050393a17ba8388966bc91b965e', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
    jQuery(document).ready(function($) {
        $("#userandquery").tweet({
          count: 3,
          query: "from:latimercreative kim",
          loading_text: "loading news..."
        });
      })

