// JavaScript Document
        //<![CDATA[
$(document).ready(function(){
	$('#CustomSlideshow').slideshow({
	width:850,      // width in px
	height:230,     // height in px
	index:0,        // start from frame number N
	time:4000,      // time out beetwen slides
	title:false,     // show title
	panel:false,     // show controls panel
	play:false,     // play slideshow
	loop:true,      // looping
	effect:'fade',  // aviable fade, scrollUp/Down/Left/Right, zoom, zoomFade, growX, growY
	effecttime:2000,// aviable fast,slow,normal and any valid fx speed value
	filter:true,    // remove <br/>, empty <div>, <p> and other stuff
	nextclick:false,      // bind content click next slide
	playclick:false,      // bind content click play/stop
	playhover:false,      // bind content hover play/stop
	playhoverr:false,     // bind content hover stop/play (reverse of playhover)
	playframe:false,       // show frame "Play Now!"
	imgresize:false,      // resize image to slideshow window
	imgcenter:true,       // set image to center // TODO
	imgajax:true,         // load images from links
	linkajax:false,       // load html from links
	
	controls :{         // show/hide controls elements
	  'hide':true,    // show controls bar on mouse hover
	  'first':true,   // goto first frame
	  'prev':true,    // goto previouse frame (if it first go to last)
	  'play':true,    // play slideshow
	  'next':true,    // goto next frame (if it last go to first)
	  'last':true,    // goto last frame
	  'help':true,    // show help message
	  'counter':false  // show slide counter
	}
	}).playSlide();
  
	$(".header a").hover(function() {
		$(this).next("em").animate({opacity: "show", top: "-65"}, "slow");
		}, function() {
		$(this).next("em").animate({opacity: "hide", top: "-85"}, "fast");
	});
		
	$("a#sr_video").fancybox({
		'zoomSpeedIn':	0, 
		'zoomSpeedOut':	0,
		'overlayShow':true,
		'frameWidth': 526,
		'frameHeight': 316
	});
	
	$("a#gapscrown").fancybox({
		'overlayShow':true
	});
	
});

