$(document).ready(function(){
	 
	//Larger thumbnail preview 
	 
	$("div.nwrap a").hover(function() {
		$(this).css({'z-index' : '100000'});	
		$(this).find('img').stop()
		.animate({
		marginTop: '-39px', 
		marginLeft: '-39px', 
		top: '50%', 
		left: '50%', 
		width: '81px', 
		height: '81px',
		padding: '0px'
		}, 200);

	} , function() {
		$(this).css({'z-index' : '0'});
		$(this).find('img').stop()
		.animate({
			marginTop: '0px', 
			marginLeft: '0px',
			top: '0', 
			left: '0', 
			width: '55px', 
			height: '55px', 
			padding: '1px'
		}, 400);
	});
});                        
d = document;

function showCapt(capt){
  //if (capt != "null") d.getElementById('capt').innerHTML = '<BR>'+capt;
   //     else d.getElementById('capt').innerHTML = '<BR>';
}

function showDirectLink(movieID){
  if (movieID != "null") d.getElementById('directLink').innerHTML = '<div style="width:228px;height:42px;background-color:#ddd;font-size:11px;text-align:center;"><div style="padding:3px;">Copy Link to Share:&nbsp;&nbsp;&nbsp;<input type="text" size="42" value="http://www.meetjoefrancis.com/press/?play='+movieID+'" id="directLinkInput" onClick="this.focus();this.select();" style="width:218px;height:18px;font-size:9px;" /></div></div><br />';
		else d.getElementById('directLink').innerHTML = '<BR>';
		//alert(movieID);
}

function getMovieName(movieName){
		if (window.d[movieName]){
				return window.d[movieName];
		}
		if (navigator.appName.indexOf("Microsoft Internet")==-1){
				if (d.embeds && d.embeds[movieName]) return d.embeds[movieName];
		} else {
				return d.getElementById(movieName);
		}
}

function gotoFrame(frameNum){
		var movieName = getMovieName("container");
		movieName.GotoFrame(frameNum);
}

