/* -------------------------------------------------------------------

	Kunstmaan - JS AUTHOR
	CLIENT
	
	This JavaScript file collects all general functions used
	throughout the site, as well as some smaller specific
	functions.

------------------------------------------------------------------- */

jQuery(document).ready(function(){
// display subnav @ share
	jQuery("ul.nav li").hover(function() {
		jQuery(this).addClass("hover");	
	}, function() {
		jQuery(this).removeClass("hover");
	});
// youtube movie
	jQuery('.youtube').flash(
		{ width: 560, height: 345 },
		{ version: 8 },
		function(htmlOptions) {
			$this = jQuery(this);
			htmlOptions.src = $this.attr('href');
			$this.before($.fn.flash.transform(htmlOptions));						
		}
	);
	
	jQuery('#flashcontent').flash(
		{ src: 'swf/portfolio.swf',
		width: 771,
		height: 300,
		wmode: 'transparent',
		base: 'swf/',
		flashvars: {path_xml:'xml/portfolio.xml'}
		},
		{ version: 8 }
	);

});




// youtube videobar
function LoadVideoBar() {
    var vbr1;
	var vbr2;

    var options = {
      smallResultSet : true,
	  horizontal : true
	  //thumbnailSize : GSvideoBar.THUMBNAILS_SMALL


    }
    vbr1 = new GSvideoBar(
                document.getElementById("videoBar"),
                GSvideoBar.PLAYER_ROOT_FLOATING,
                options
                );
	
    vbr2 = new GSvideoBar(
                document.getElementById("movie"),
				GSvideoBar.PLAYER_ROOT_FLOATING,
                null,
                options
                );

    vbr1.execute("ytchannel:Kunstmaan");
    vbr2.execute("gnOnQF91gVs");
  }
  /**
   * Arrange for LoadVideoBar to run once the page loads.:   GSearch.setOnLoadCallback(LoadVideoBar);
   */

