$(document).ready(function(){

	$(".tooltip").tooltip({
		delay: 0,
		fade: 100,
		track: true,
		showURL: false
	});

});

var tid;

function navOver(){
	clearTimeout(tid);
	$('#flash_header').css('height', '300px');
}

function navOut(confirmed){
	if(confirmed){
		$('#flash_header').css('height', '152px');
	}else{
		tid = setTimeout('navOut(1)', 750);
	}
}

function playVideo(id){
	GB_show("Video", '/video-player/'+ id, 600, 894, 'video_player');
	return false;
}

function openImage(url, width, height){
	var width = (width) ? width : 894;
	var height = (height) ? height : 600;
	GB_show("Image", '/image?url='+ escape(url), height, width, 'image_viewer');
}

function hideGB(){
	var GP_P = parent.parent;
	GP_P.GB_hide();
}
