// JavaScript Document
$(document).ready(function () {

		$("#secondaryLinks > div").click(function(){

			window.location=$(this).find("a").attr("href");

			return false;

		});



		// cycle

		$('.slideshow').each(function(index) {

			$(this).cycle({

				fx: 'fade',

				timeout: 5000,

				speed: 2500,

				sync: false,

				pager: '#heroPagination',

				cleartypeNoBg: true,

				pagerAnchorBuilder: function(i) {

					if (index == 0)

						// for first slideshow, return a new anchor

						return '<a href="#">'+(i+1)+'</a>';

						// for 2nd slideshow, select the anchor created previously

						return '#heroPagination a:eq('+i+')';

				}

			});

		});



		$('#promotionsSlider').cycle({ 

			fx:    'scrollHorz', 

			speed:  2000,

			timeout: 0,

			next: '#nextArrow',

			prev: '#prevArrow'

		 });

	});

    Cufon.replace('#secondaryLinks h2,#communityPanel h2', { fontFamily: 'Swiss924Fox', textShadow: '1px 1px rgba(0,0,0,0.85)' });

    Cufon.now();
