/* BON JOVI */
/* Header Javascript Triggers and Custom Functions
----------------------------------------------------------------------------- */


	$(window).load(function() {


		$('div#network ul.menu strong, div#network li.joinus strong, div#network li.store strong').click(function() {
		
			if ($(this).parent().hasClass('joinus')) {
				var $menu = $(this).parent();
			} else if ($(this).parent().hasClass('store')){
				var $menu = $(this).parent();
			} else {
				var $menu = $(this).parent().parent().parent();
			}

			var $bar = $menu.parent();
			var original = $bar.css('width');

			$bar.animate({ width: '50px' }, 'fast', function() {

				if ($menu.hasClass('open')) {
					$menu.removeClass('open');
					$menu.siblings('li').show();
				} else {
					$menu.siblings('li').hide();
					$menu.addClass('open');
				}

				$bar.animate({ width: original }, 'fast');

			});
			
			return false;

		});

		$('div#header div.media.photos ul.photos').cycle({ fx: 'scrollLeft', speed: 400, timeout: 3000 });

		if ($('#videos_button').length > 0) {

			var so = new SWFObject(asset_host + '/2/images/header/videos.swf', 'videos_button', '100', '50', '9', '#000000');
			so.write('videos_button');

		}

		/* if (section != "messageboard" && section != "checkout" & section != "thecircletour") {

			$('a.launch, li.chat a').click(function() {
	
				window.open( site_host + $(this).attr('href'),'Chat','width=980,height=675,resizable=0,scrollbars=0,toolbar=0,location=0,directories=0,status=0,menubar=0');
				return false;
	
			});

		}*/

	});
