this.tooltip = function(){			
		xOffset = 5;
		yOffset = 10;			
	$(".frame").hover(function(e){											  
		this.t = $(this).attr('rel');
		this.title = "";									  
		$("body").append("<p id='tooltip'><img src='"+ 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();
    });	
	$(".frame").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			};

function vimeo(objectID, videoWidth, videoHeight, videoID) {
	swfobject.embedSWF("http://www.vimeo.com/moogaloop_local.swf?ver=20109", objectID, videoWidth, videoHeight, "8.0.0", "", 
					{
						   clip_id:videoID,
						   server:'vimeo.com',
						   fullscreen:'1',
						   show_title:'0',
						   md5:'',
						   show_byline:'0',
						   context:"user:521583",
						   autoplay:"1",
						   multimoog:'',
						   force_embed:'0',
						   force_local:'1',
						   context_id:'',
						   hd_off:'0',
						   show_portrait:'0',
						   color:'ffffff'
					}, {
							allowfullscreen:"true",
							scale:"showAll",
							quality:"high"
					}, {
						wmode:"transparent"
					
					});
}

 

$(window).ready(function(){
	
	tooltip();
	
        $('.lightbox').lightBox({fixedNavigation:true});

	$('#posts table').each(function(){
           $('tr', this).each(
             function(i){
              if ((i%2) == 0){
		this.className += this.className +' even';
              } else {
		this.className += this.className +' odd';	
              }
           });	
        });
	
	jQuery('.frame').hover(
		function(){jQuery('.frame').not(this).addClass('frame_hovered')},
		function(){jQuery('.frame').removeClass('frame_hovered')}
        );
});