/*
*file name: sitejs.js
*site: mybluepanel.com
*date created: 11/18/2010
*
*Description: 
*	This file contains custom javascript programming for mybluepanel.com
*   JavaScript Missing Manual, by David McFarland, copyright 2008, first edition was used as main resource,
*	all pg shown in comments below are for this book.
*
*
*Edits
* 11/18/2010: added superfish horizontal navigation pop-up menus
* 02/18/2011: adding floaty code
*
*
*
*******************************************************************************************************************************/

$(document).ready(function()
{
	/* Superfish pop-up menu,pg 304 of js missing manual */
	$('.horizontal_nav_general').superfish ({ delay:300 });  	//adjusts time it takes for pop-up menu to disappear
	$('.horizontal_nav_controller').superfish ({ delay:300 });  	//adjusts time it takes for pop-up menu to disappear
	$('.horizontal_nav_general li:has(ul)').find('a:first').addClass('sub');//add down arrow if pop up menu exists
	$('.horizontal_nav_controller li:has(ul)').find('a:first').addClass('sub');//add down arrow if pop up menu exists
	
	/* floaty youtube video, http://floaty.byasp.net/*/
	$('a.Floaty').Floaty(
	{
		vWidth:445,
		vHeight:364,
		imgClose: 'javascript/floaty/images/close.png',
		BgOpacity: .9
		
	});
	
	/* nivo image slider, http://nivo.dev7studios.com/*/
	$('#slider').nivoSlider(
	{		
		captionOpacity:.6,
		effect: 'random'
	});
	
	
});//end jquery ready function, pg 218
