// JavaScript Document
// Major Section Navigation
$(function(){

$('#Link_Home').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != HN){
		sectionNumber = HN;
		IndexTransition(bgHome,bgHome,homeContent,navHome)
		window.location.hash = '';
	}
});

/* Footer Links */

// Link To Latest article in press section
$('.linknewsreleaselatest').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != PA){
		if(sectionNumber != PPR){
			sectionNumber = PA;
			SectionTransition(bgPress,olPress,pressArticle,navPress);
			window.location.hash = 'PressRelease003'
		}
		else{
			sectionNumber = PA;
			SubSectionTransition(pressArticle)
			window.location.hash = 'PressRelease003'
		}
	}
});

$('.linknewsreleasemenu').live('click',function(event){
	event.preventDefault();
	if(sectionNumber!=PPR){
		if(sectionNumber != PA){
			sectionNumber = PPR;
			SectionTransition(bgPress,olPress,pressPressReleases,navPress);
			window.location.hash = 'PressPressRelease'
		}
		else{
			sectionNumber = PPR;
			SubSectionTransition(pressPressReleases)
			window.location.hash = 'PressPressRelease'
		}
	}
});

// Main Company Section Event
$('.linkCompanySection').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != CI && sectionNumber != CMV && sectionNumber != CLT && sectionNumber != CC){
		sectionNumber = CI;
		SectionTransition(bgCompany,olCompany,companyIntro,navCompany);
		window.location.hash = 'CompanyIntroduction';
	}
});

// Main Contact Section Link
$('.linkContactSection').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != CN){
		sectionNumber = CN;
		SectionTransition(bgContact, olContact, contactIntro, navContact);
		window.location.hash = 'ContactSection';
	}
});

$('.Link_The_Akoo_Experience').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != EI && sectionNumber != EAVC && sectionNumber != EP && sectionNumber != ETS && sectionNumber != EAR && sectionNumber != ED){
		sectionNumber = EI;
		SectionTransition(bgExperience,olExperience,ExperienceIntro,navExperience);
		window.location.hash = 'AkooExperienceIntroduction';
	}
});

$('.Link_Audience_Section').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != AA && sectionNumber != AEV && sectionNumber != ANVD){
		sectionNumber = AA;
		SectionTransition(bgAudience,olAudience,audienceAudience,navAudience);
		window.location.hash = 'AudienceNationalAudience';
	}
});

$('.Link_Solutions').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != SIN && sectionNumber != SCSX && sectionNumber != SCSM && sectionNumber != SMSBE && sectionNumber != SMSPR && sectionNumber != SMSBO && sectionNumber != SMSPS && sectionNumber != SMSMM){
		sectionNumber = SIN;
		SectionTransition(bgSolutions,olSolutions,BEAASSolutionsIntroduction,navSolutions);
		window.location.hash = 'BrandSolutionsIntroduction';
	}
});
// Company Sub Navigation Events
//Company Section Introduction Event
$('#Link_Company_Introduction').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != CI){
		SubSectionTransition(companyIntro);
		sectionNumber = CI;
		window.location.hash = 'CompanyIntroduction';
	}
})

//Company Section Mission & Values Event
$('#Link_Company_Mission_Value').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != CMV){
		SubSectionTransition(companyMissionValue);
		sectionNumber = CMV;
		window.location.hash = 'CompanyMissionValues';
	}
});

//Company Section Leadership Event
$('#Link_Company_Leadership_Team').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != CLT){
		sectionNumber = CLT;
		SubSectionTransition(companyLeadership);
		window.location.hash = 'CompanyLeadershipTeam';
	}
});

//Company Section Careers Event
$('#Link_Company_Careers').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != CC){
		sectionNumber = CC;
		SubSectionTransition(companyCareer);
		window.location.hash = 'CompanyCareers';
	}
});

// Audience Sub Navigation Events
$('#Link_Audience_National_Audience').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != AA){
		sectionNumber = AA;
		SubSectionTransition(audienceAudience);
		window.location.hash = 'AudienceNationalAudience';
	}
});

$('#Link_Audience_Engaged_Viewers').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != AEV){
		sectionNumber = AEV;
		SubSectionTransition(audienceEngaged);
		window.location.hash = 'AudienceEngagedViewers';
	}
});

$('#Nav_Audience_Viewer_Demographics').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != ANVD){
		sectionNumber = ANVD;
		SubSectionTransition(audienceViewers);
		window.location.hash = 'AudienceViewerDemographics';
	}
});

// The Akoo Experience Sub Navigation Events

$('#Link_Experience_Introduction').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != EI){
		sectionNumber = EI;
		SubSectionTransition(ExperienceIntro);
		window.location.hash = 'AkooExperienceIntroduction';
	}
});

$('#Link_Experience_AV_Immersion').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != EAVC){
		sectionNumber = EAVC;
		SubSectionTransition(ExperienceAV);
		window.location.hash = 'AkooExperienceAVImmersion';
	}
});

$('#Link_Experience_Programming').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != EP){
		sectionNumber = EP;
		SubSectionTransition(ExperienceProgramming);
		window.location.hash = 'AkooExperienceProgramming';
	}
});

$('#Link_Experience_Text_Selection').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != ETS){
		sectionNumber = ETS;
		SubSectionTransition(ExperienceTextSelection);
		window.location.hash = 'AkooExperienceTextSelection';
	}
});

$('#Link_Experience_Akoo_Remote').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != EAR){
		sectionNumber = EAR;
		SubSectionTransition(ExperienceAkooRemote);
		window.location.hash = 'AkooExperienceAkooRemote';
	}
});

$('#Link_Experience_Discovery').live('click', function(event){
	event.preventDefault();
	if (sectionNumber != ED){
		sectionNumber = ED;
		SubSectionTransition(ExperienceDiscovery);
		window.location.hash = 'AkooExperienceDiscovery';
	}
});

// LightBox Videos
$('#LinkExperienceProgrammingWatchVideo').live('click',function(event){
	event.preventDefault();
	VideoLightBox(ProgrammingVideo);
});

$('#LinkExperienceTextSelectionWatchVideo').live('click',function(event){
	event.preventDefault();
	VideoLightBox(TextSelectionVideo);
});

$('#LinkExperienceAkooRemoteWatchVideo').live('click',function(event){
	event.preventDefault();
	VideoLightBox(AkooRemoteVideo);
});

$('#LinkExperienceDiscoveryWatchVideo').live('click',function(event){
	event.preventDefault();
	VideoLightBox(DiscoveryVideo);
});

$('.linkRequestMusicVideos').live('click',function(event){
	event.preventDefault();
	VideoLightBox(TextSelectionVideo);
});

$('.linkTheAkooRemote').live('click',function(event){
	event.preventDefault();
	VideoLightBox(AkooRemoteVideo);
});

$('.linkDiscoverNewMusic').live('click',function(event){
	event.preventDefault();
	VideoLightBox(DiscoveryVideo);
});


//Branded Entertainment And Advertising Solutions SubNavigation
$('#Link_Solutions_Introduction').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SIN){
		sectionNumber = SIN;
		SubSectionTransition(BEAASSolutionsIntroduction);
		window.location.hash = 'BrandSolutionsIntroduction';
	}
});

$('#Link_Solutions_Marketing_Solutions').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SMSBE && sectionNumber != SMSPR && sectionNumber != SMSBO && sectionNumber != SMSPS && sectionNumber != SMSMM){
		sectionNumber = SMSBE;
		SubSectionTransition(BEAASMarketingSolutions);
		window.location.hash = 'BrandSolutionsBrandedEntertainment'
	}
});

$('#Link_Solutions_Case_Study').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SCS){
		sectionNumber = SCS;
		SubSectionTransition(BEAASCaseStudy);
		window.location.hash = 'BrandSolutionsCaseStudy';
	}
});

$('.linkcasestudyintroduction').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SCS){
		sectionNumber = SCS;
		SubSectionTransition(BEAASCaseStudy);
		window.location.hash = 'BrandSolutionsCaseStudy';
	}
});

$('#Link_Solutions_CaseStudy_XBOX').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SCSX){
		sectionNumber = SCSX;
		SubSectionTransition(BEAASCaseStudyXBOX);
		window.location.hash = 'BrandSolutionsCaseStudyXBOX';
	}
});

$('#Link_Solutions_Case_Study_McDonalds').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SCSM){
		sectionNumber = SCSM;
		SubSectionTransition(BEAASCaseStudyMcDonalds);
		window.location.hash = 'BrandSolutionsCaseStudyMcdonalds';
	}
});

$('#Link_Solutions_Case_Study_Fox').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SCSF){
		sectionNumber = SCSF;
		SubSectionTransition(BEAASCaseStudyFox);
		window.location.hash = 'BrandSolutionsCaseStudyFox';
	}
});

$('#Link_Solutions_Case_Study_Best_Buy').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SCSBB){
		sectionNumber = SCSBB;
		SubSectionTransition(BEAASCaseStudyBestBuy);
		window.location.hash = 'BrandSolutionsCaseStudyBestBuy';
	}
});

$('#Link_Solutions_Case_Study_Clear').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SCSC){
		sectionNumber = SCSC;
		SubSectionTransition(BEAASCaseStudyClear);
		window.location.hash = 'BrandSolutionsCaseStudyClear';
	}
});

//Branded Solutions Case Studies Graphs and Videos

$('#LinkSolutionsXBOXResults').live('click',function(event){
	event.preventDefault();
	GalleryLightBox(BEAASCaseStudyXBOXGraphs);
});

$('.Solutions_Case_Study_Link_Video_Sample_XBOX').live('click',function(event){
	event.preventDefault();
	VideoLightBox(CaseStudyXboxVideo);
});

$('#LinkSolutionsMcDonaldsResults').live('click',function(event){
	event.preventDefault();
	GalleryLightBox(BEAASCaseStudyMcDonaldsGraphs);
});

$('.Solutions_Case_Study_Link_Video_Sample_McDonalds').live('click',function(event){
	event.preventDefault();
	VideoLightBox(CaseStudyMcdonaldsVideo);
});

$('#LinkSolutionsFoxResults').live('click',function(event){
	event.preventDefault();
	GalleryLightBox(BEAASCaseStudyFoxGraphs);
});

$('.Solutions_Case_Study_Link_Video_Sample_Fox').live('click',function(event){
	event.preventDefault();
	VideoLightBox(CaseStudyFoxVideo);
});

$('#LinkSolutionsBestBuyResults').live('click',function(event){
	event.preventDefault();
	GalleryLightBox(BEAASCaseStudyBestBuyGraphs);
});

$('.Solutions_Case_Study_Link_Video_Sample_Best_Buy').live('click',function(event){
	event.preventDefault();
	VideoLightBox(CaseStudyBestBuyVideo);
});

$('#LinkSolutionsClearResults').live('click',function(event){
	event.preventDefault();
	GalleryLightBox(BEAASCaseStudyClearGraphs);
});

$('.Solutions_Case_Study_Link_Video_Sample_Clear').live('click',function(event){
	event.preventDefault();
	VideoLightBox(CaseStudyClearVideo);
});

//Branded Entertainment Marketing Solutions Sub Navigation
$('#Solutions_Link_Branded_Entertainment').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SMSBE){
		sectionNumber = SMSBE;
		SolutionsSubSectionTransition(BEAASSubBrandedEntertainment);
		window.location.hash = 'BrandSolutionsBrandedEntertainment'
	}
});

$('#Solutions_Link_Pre_Roll').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SMSPR){
		sectionNumber = SMSPR;
		SolutionsSubSectionTransition(BEAASSubPreRollAudioVideo);
		window.location.hash = 'BrandSolutionsPreRollAdvertising'
	}
});

$('#Solutions_Link_Brand_Overlays').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SMSBO){
		sectionNumber = SMSBO;
		SolutionsSubSectionTransition(BEAASSubBrandOverlays);
		window.location.hash = 'BrandSolutionsBrandOverlays'
	}
});

$('#Solutions_Link_Programming_Segment').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SMSPS){
		sectionNumber = SMSPS;
		SolutionsSubSectionTransition(BEAASSubProgramSegment);
		window.location.hash = 'BrandSolutionsProgramSegment'
	}
});

$('#Solutions_Link_Mobile_Marketing').live('click',function(event){
	event.preventDefault();
	if (sectionNumber != SMSMM){
		sectionNumber = SMSMM;
		SolutionsSubSectionTransition(BEAASSubMobileMarketing);
		window.location.hash = 'BrandSolutionsMobileMarketing'
	}
});
// Press Section Navigation
$('#Link_Press_Releases').live('click',function(event){
	event.preventDefault();
	if(sectionNumber!=PPR){
		sectionNumber = PPR;
		SubSectionTransition(pressPressReleases)
		window.location.hash = 'PressPressRelease'
	}
});

$('.linkpressrelease001').live('click',function(event){
	event.preventDefault();
	if(sectionNumber!=PA){
		sectionNumber = PA;
		SubSectionTransition(pressArticle)
		window.location.hash = 'PressRelease001'
	}
});

$('.linkpressrelease002').live('click',function(event){
	event.preventDefault();
	if(sectionNumber!=PA){
		sectionNumber = PA;
		SubSectionTransition(pressArticle)
		window.location.hash = 'PressRelease002'
	}
});

$('.linkpressrelease003').live('click',function(event){
	event.preventDefault();
	if(sectionNumber!=PA){
		sectionNumber = PA;
		SubSectionTransition(pressArticle)
		window.location.hash = 'PressRelease003'
	}
});

$('.linkpressrelease004').live('click',function(event){
	event.preventDefault();
	if(sectionNumber!=PA){
		sectionNumber = PA;
		SubSectionTransition(pressArticle)
		window.location.hash = 'PressRelease004'
	}
});
$('.linkpressrelease005').live('click',function(event){
	event.preventDefault();
	if(sectionNumber!=PA){
		sectionNumber = PA;
		SubSectionTransition(pressArticle)
		window.location.hash = 'PressRelease005'
	}
});

});