// JavaScript Document


jQuery(document).ready( function($) {

	$("div.scrollable").scrollable({ 
        size: 1,
		clickable: false,
		loop: true
		});
	

	//$("a.lbox").click(function() { alert("click") }); 
	$("a.ibox").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': false }); 
	
	$("a.vbox").fancybox(); 
	
	/*$("a.yt").mouseover(function(){
		var player = ytbox.replace( /ytlink/g , this.title );
		$("#ytbox").html(player);
		alert(this);
		})*/
	
	$(".yt").fancybox({ 
			 'zoomSpeedIn': 300, 
			 'zoomSpeedOut': 300, 
			 'hideOnContentClick': false,
			 'overlayShow': true 
			 }); 
	
	/*$("a.yt").fancybox().close();*/
	
	/*$("a.yt").fancybox({
		onStart: function() { $('#ytbox').show(); },
	 	onClosed: function() { $('#ytbox').hide(); }
	  });*/
});

	/*var ytbox = "<object width='425' height='344'><param name='movie' value='ytlink'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='ytlink' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='425' height='344'></embed></object>"
	*/
	/*var ytbox = '<iframe width="500px" height="400 px" src="ytlink" frameborder="0" allowfullscreen></iframe>'
        

	function RenderVideos(data) {
		
	  var feed = data.feed;
	  var entries = feed.entry || [];
	  var html = ['<ul class="doublecolumn">'];
	  for (var i = 0; i < entries.length; i++) {
		var entry = entries[i];
		var title = entry.title.$t;
		var description = entry.content.$t;
	
	    var thumbnailUrl = entries[i].media$group.media$thumbnail[3].url;
		var playerUrl = entries[i].media$group.media$content[0].url;
		//var description = entries[i].media$group.media$description[0];

		html.push('<li><h3>',title,'</h3><p>',description,'</p><a class="yt" href="#ytbox" title="' ,  playerUrl, '"><img width="250" src="', thumbnailUrl,  '"></a></li>');
		
		
	  }
	  html.push('</ul>');
  	  html.push('<div id="ytbox" style="display:none;"></div>');
	  document.getElementById('yt').innerHTML = html.join('');
	}*/



          

