// The following will run as soon as the page is loaded and the DOM is ready, but images might still be loading.


jQuery(document).ready(function() { 





















$('#mainnav').animate({"top": "-=190px"}, 2000);





$('span.navAlt').hide();
$('#mainnav .normal a').hoverIntent(function() {
	 
	$(this).children('span.navStart').slideUp(200);   
	$(this).children('span.navAlt').slideDown(200);      
	}, function() {
	$(this).children('span.navAlt').slideUp(200); 
	$(this).children('span.navStart').slideDown(200); 
});





$('.normal .subNav .normal a').hover(function() {
	$(this).stop().animate({"color": "#FFFFFF"}, 200);            
	}, function() {
	$(this).stop().animate({"color" : "#8e9093"}, 200);
});

$('.white .subNav .normal a').hover(function() {
	$(this).stop().animate({"color": "#000000"}, 200);            
	}, function() {
	$(this).stop().animate({"color": "#8e9093"}, 200);
});

		   

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};


    jQuery('#mycarousel').jcarousel({
        auto: 4,
		scroll: 2,
		animation: 'slow',
        wrap: 'both',
        initCallback: mycarousel_initCallback
    });



$('ul.quickNav li ul li:even').addClass("alt");

$("img.menu_head").click(function () {
$("ul.quickNav").slideToggle();
});

$('ul.quickNav li a').mouseover(function () {
	$(this).animate({ paddingLeft: "10px" }, 50 );
});
$('ul.quickNav li a').mouseout(function () {
	$(this).animate({ paddingLeft: "5px" }, 50 );
});



$('a.lightbox').lightBox(); // Select all links with lightbox class
$('a.lightbox355').lightBox(); // Select all links with lightbox class
$('a.lightbox356').lightBox(); // Select all links with lightbox class
$('a.lightbox357').lightBox(); // Select all links with lightbox class
$('a.lightbox358').lightBox(); // Select all links with lightbox class
$('a.lightbox359').lightBox(); // Select all links with lightbox class
$('a.lightbox360').lightBox(); // Select all links with lightbox class
$('a.lightbox361').lightBox(); // Select all links with lightbox class
$('a.lightbox362').lightBox(); // Select all links with lightbox class


//begin showhide builder

$('#mycarousel li a').mouseout(function () {
	$('.title').hide(0);
});
// showhidebuilder 326
$('#mycarousel li a#tID326').mouseover(function () {
	$('#title326').show();
});
// end showhidebuilder 326
// showhidebuilder 327
$('#mycarousel li a#tID327').mouseover(function () {
	$('#title327').show();
});
// end showhidebuilder 327
// showhidebuilder 328
$('#mycarousel li a#tID328').mouseover(function () {
	$('#title328').show();
});
// end showhidebuilder 328
// showhidebuilder 329
$('#mycarousel li a#tID329').mouseover(function () {
	$('#title329').show();
});
// end showhidebuilder 329
// showhidebuilder 330
$('#mycarousel li a#tID330').mouseover(function () {
	$('#title330').show();
});
// end showhidebuilder 330
// showhidebuilder 331
$('#mycarousel li a#tID331').mouseover(function () {
	$('#title331').show();
});
// end showhidebuilder 331
// showhidebuilder 332
$('#mycarousel li a#tID332').mouseover(function () {
	$('#title332').show();
});
// end showhidebuilder 332
// showhidebuilder 333
$('#mycarousel li a#tID333').mouseover(function () {
	$('#title333').show();
});
// end showhidebuilder 333
// showhidebuilder 334
$('#mycarousel li a#tID334').mouseover(function () {
	$('#title334').show();
});
// end showhidebuilder 334
// showhidebuilder 335
$('#mycarousel li a#tID335').mouseover(function () {
	$('#title335').show();
});
// end showhidebuilder 335
// showhidebuilder 336
$('#mycarousel li a#tID336').mouseover(function () {
	$('#title336').show();
});
// end showhidebuilder 336
// showhidebuilder 337
$('#mycarousel li a#tID337').mouseover(function () {
	$('#title337').show();
});
// end showhidebuilder 337
// showhidebuilder 338
$('#mycarousel li a#tID338').mouseover(function () {
	$('#title338').show();
});
// end showhidebuilder 338
// showhidebuilder 339
$('#mycarousel li a#tID339').mouseover(function () {
	$('#title339').show();
});
// end showhidebuilder 339
// showhidebuilder 365
$('#mycarousel li a#tID365').mouseover(function () {
	$('#title365').show();
});
// end showhidebuilder 365
// showhidebuilder 340
$('#mycarousel li a#tID340').mouseover(function () {
	$('#title340').show();
});
// end showhidebuilder 340
// showhidebuilder 342
$('#mycarousel li a#tID342').mouseover(function () {
	$('#title342').show();
});
// end showhidebuilder 342
// showhidebuilder 343
$('#mycarousel li a#tID343').mouseover(function () {
	$('#title343').show();
});
// end showhidebuilder 343
// showhidebuilder 344
$('#mycarousel li a#tID344').mouseover(function () {
	$('#title344').show();
});
// end showhidebuilder 344
// showhidebuilder 347
$('#mycarousel li a#tID347').mouseover(function () {
	$('#title347').show();
});
// end showhidebuilder 347
// showhidebuilder 364
$('#mycarousel li a#tID364').mouseover(function () {
	$('#title364').show();
});
// end showhidebuilder 364
// showhidebuilder 373
$('#mycarousel li a#tID373').mouseover(function () {
	$('#title373').show();
});
// end showhidebuilder 373
// showhidebuilder 348
$('#mycarousel li a#tID348').mouseover(function () {
	$('#title348').show();
});
// end showhidebuilder 348
// showhidebuilder 366
$('#mycarousel li a#tID366').mouseover(function () {
	$('#title366').show();
});
// end showhidebuilder 366
// showhidebuilder 367
$('#mycarousel li a#tID367').mouseover(function () {
	$('#title367').show();
});
// end showhidebuilder 367
// showhidebuilder 369
$('#mycarousel li a#tID369').mouseover(function () {
	$('#title369').show();
});
// end showhidebuilder 369
// showhidebuilder 352
$('#mycarousel li a#tID352').mouseover(function () {
	$('#title352').show();
});
// end showhidebuilder 352
// showhidebuilder 368
$('#mycarousel li a#tID368').mouseover(function () {
	$('#title368').show();
});
// end showhidebuilder 368
// showhidebuilder 354
$('#mycarousel li a#tID354').mouseover(function () {
	$('#title354').show();
});
// end showhidebuilder 354
// showhidebuilder 374
$('#mycarousel li a#tID374').mouseover(function () {
	$('#title374').show();
});
// end showhidebuilder 374
// showhidebuilder 375
$('#mycarousel li a#tID375').mouseover(function () {
	$('#title375').show();
});
// end showhidebuilder 375

// new ones

// showhidebuilder 404
$('#mycarousel li a#tID404').mouseover(function () {
	$('#title404').show();
});
// end showhidebuilder 404

// showhidebuilder 405
$('#mycarousel li a#tID405').mouseover(function () {
	$('#title405').show();
});
// end showhidebuilder 405

// showhidebuilder 406
$('#mycarousel li a#tID406').mouseover(function () {
	$('#title406').show();
});
// end showhidebuilder 406

// showhidebuilder 407
$('#mycarousel li a#tID407').mouseover(function () {
	$('#title407').show();
});
// end showhidebuilder 407

// showhidebuilder 408
$('#mycarousel li a#tID408').mouseover(function () {
	$('#title408').show();
});
// end showhidebuilder 408

// showhidebuilder 409
$('#mycarousel li a#tID409').mouseover(function () {
	$('#title409').show();
});
// end showhidebuilder 409

// showhidebuilder 410
$('#mycarousel li a#tID410').mouseover(function () {
	$('#title410').show();
});
// end showhidebuilder 410

// showhidebuilder 412
$('#mycarousel li a#tID412').mouseover(function () {
	$('#title412').show();
});
// end showhidebuilder 412

// showhidebuilder 395
$('#mycarousel li a#tID395').mouseover(function () {
	$('#title395').show();
});
// end showhidebuilder 395

// showhidebuilder 394
$('#mycarousel li a#tID394').mouseover(function () {
	$('#title394').show();
});
// end showhidebuilder 394

// showhidebuilder 391
$('#mycarousel li a#tID391').mouseover(function () {
	$('#title391').show();
});
// end showhidebuilder 391

// showhidebuilder 389
$('#mycarousel li a#tID389').mouseover(function () {
	$('#title389').show();
});
// end showhidebuilder 389

// showhidebuilder 388
$('#mycarousel li a#tID388').mouseover(function () {
	$('#title388').show();
});
// end showhidebuilder 388

// showhidebuilder 392
$('#mycarousel li a#tID392').mouseover(function () {
	$('#title392').show();
});
// end showhidebuilder 392

// showhidebuilder 390
$('#mycarousel li a#tID390').mouseover(function () {
	$('#title390').show();
});
// end showhidebuilder 390




// showhidebuilder 423
$('#mycarousel li a#tID423').mouseover(function () {
	$('#title423').show();
});
// end showhidebuilder 423
// showhidebuilder 445
$('#mycarousel li a#tID445').mouseover(function () {
	$('#title445').show();
});
// end showhidebuilder 445
// showhidebuilder 424
$('#mycarousel li a#tID424').mouseover(function () {
	$('#title424').show();
});
// end showhidebuilder 424
// showhidebuilder 447
$('#mycarousel li a#tID447').mouseover(function () {
	$('#title447').show();
});
// end showhidebuilder 447
// showhidebuilder 448
$('#mycarousel li a#tID448').mouseover(function () {
	$('#title448').show();
});
// end showhidebuilder 448
// showhidebuilder 422
$('#mycarousel li a#tID422').mouseover(function () {
	$('#title422').show();
});
// end showhidebuilder 422
// showhidebuilder 446
$('#mycarousel li a#tID446').mouseover(function () {
	$('#title446').show();
});
// end showhidebuilder 446
// showhidebuilder 425
$('#mycarousel li a#tID425').mouseover(function () {
	$('#title425').show();
});
// end showhidebuilder 425




















// our story builder
$('#mycarousel li img').mouseout(function () {
	$('.title').hide();
	}); 

// ourstorybuilder os1
$('#mycarousel li img.os1').mouseover(function () {
	$('#ourstory1').fadeIn(300);
	});
// ourstorybuilder os2
$('#mycarousel li img.os2').mouseover(function () {
	$('#ourstory2').fadeIn(300);
	});
// ourstorybuilder os3
$('#mycarousel li img.os3').mouseover(function () {
	$('#ourstory3').fadeIn(300);
	});
// ourstorybuilder os4
$('#mycarousel li img.os4').mouseover(function () {
	$('#ourstory4').fadeIn(300);
	});
// ourstorybuilder os5
$('#mycarousel li img.os5').mouseover(function () {
	$('#ourstory5').fadeIn(300);
	});
// ourstorybuilder os6
$('#mycarousel li img.os6').mouseover(function () {
	$('#ourstory6').fadeIn(300);
	});
// ourstorybuilder os7
$('#mycarousel li img.os7').mouseover(function () {
	$('#ourstory7').fadeIn(300);
	});
// ourstorybuilder os8
$('#mycarousel li img.os8').mouseover(function () {
	$('#ourstory8').fadeIn(300);
	});
// ourstorybuilder os9
$('#mycarousel li img.os9').mouseover(function () {
	$('#ourstory9').fadeIn(300);
	});
// ourstorybuilder os10
$('#mycarousel li img.os10').mouseover(function () {
	$('#ourstory10').fadeIn(300);
	});
// ourstorybuilder os11
$('#mycarousel li img.os11').mouseover(function () {
	$('#ourstory11').fadeIn(300);
	});
// ourstorybuilder os12
$('#mycarousel li img.os12').mouseover(function () {
	$('#ourstory12').fadeIn(300);
	});
// ourstorybuilder os13
$('#mycarousel li img.os13').mouseover(function () {
	$('#ourstory13').fadeIn(300);
	});
// ourstorybuilder os14
$('#mycarousel li img.os14').mouseover(function () {
	$('#ourstory14').fadeIn(300);
	});
// ourstorybuilder os15
$('#mycarousel li img.os15').mouseover(function () {
	$('#ourstory15').fadeIn(300);
	});
// ourstorybuilder os16
$('#mycarousel li img.os16').mouseover(function () {
	$('#ourstory16').fadeIn(300);
	});
// ourstorybuilder os17
$('#mycarousel li img.os17').mouseover(function () {
	$('#ourstory17').fadeIn(300);
	});
// ourstorybuilder os18
$('#mycarousel li img.os18').mouseover(function () {
	$('#ourstory18').fadeIn(300);
	});
// ourstorybuilder os19
$('#mycarousel li img.os19').mouseover(function () {
	$('#ourstory19').fadeIn(300);
	});
// ourstorybuilder os20
$('#mycarousel li img.os20').mouseover(function () {
	$('#ourstory20').fadeIn(300);
	});




// people builder
$('h2 span.htitle').hide();

// peoplebuilder 355
$('#mycarousel li.pGall a').mouseover(function () {
	$('h2 span.default').hide();
	$(this).children('.swapimage').hide();
});
$('#mycarousel li.pGall a').mouseout(function () {
	$(this).children('.swapimage').show();
	$('h2 span.default').show();
	$('h2 span.htitle').hide();
});



// peoplebuilder 355
$('#mycarousel li#pg355 a').hoverIntent(function () {
	$('#title355').show();
	$('h2 span#htitle355').show();
	}, function() {
	$('.title').hide();
});
// peoplebuilder 356
$('#mycarousel li#pg356 a').hoverIntent(function () {
	$('#title356').show();
	$('h2 span#htitle356').show();
	}, function() {
	$('.title').hide();
});
// peoplebuilder 357
$('#mycarousel li#pg357 a').hoverIntent(function () {
	$('#title357').show();
	$('h2 span#htitle357').show();
	}, function() {
	$('.title').hide();
});
// peoplebuilder 358
$('#mycarousel li#pg358 a').hoverIntent(function () {
	$('#title358').show();
	$('h2 span#htitle358').show();
	}, function() {
	$('.title').hide();
});
// peoplebuilder 359
$('#mycarousel li#pg359 a').hoverIntent(function () {
	$('#title359').show();
	$('h2 span#htitle359').show();
	}, function() {
	$('.title').hide();
});
// peoplebuilder 360
$('#mycarousel li#pg360 a').hoverIntent(function () {
	$('#title360').show();
	$('h2 span#htitle360').show();
	}, function() {
	$('.title').hide();
});
// peoplebuilder 361
$('#mycarousel li#pg361 a').hoverIntent(function () {
	$('#title361').show();
	$('h2 span#htitle361').show();
	}, function() {
	$('.title').hide();
});
// peoplebuilder 362
$('#mycarousel li#pg362 a').hoverIntent(function () {
	$('#title362').show();
	$('h2 span#htitle362').show();
	}, function() {
	$('.title').hide();
});





$("#mycarousel li").hover(function() {
		$(this).addClass('onstate');
	}, function() {
		$(this).removeClass('onstate');
	});

});



$(window).unload(function() { 


                var COOKIE_NAME = 'test_cookie';
                var options = { path: '/', expires: 10 };
                $.cookie(COOKIE_NAME, 'CSet', options);
                // set cookie by number of days



} );



