var hideTop=1;
var sliderLocation=0;
function SLIDERSINIT(){
	$('#extraLinks').hide();
	$("#extraLinks").animate({"top":"-90px"}, "fast");
	hideNews();
	hideLeftSlider();
	hideRightSlider();
	$('#rightSlider').click(function() {
		hideLeftSlider();
		hideRightSlider();
	});
	$('#leftSlider').click(function() {
		hideLeftSlider();
		hideRightSlider();
	});
	$('#topFrame').click(function() {
		hideLeftSlider();
		hideRightSlider();
	});
	$('#Slide').click(function() {
		hideLeftSlider();
		hideRightSlider();
	});
	$('#News').mouseover(function() {
		showNews();
	});
	$('#News').mouseout(function() {
		hideNews();
	});
	$('#News').click(function() {
		newsClick();
	});
//	$('#Slide').click(function() {
//		SLIDE("NEXT");
//	});
	$("#Logo").animate({"top":"0px"}, "slow");

}
function newsClick(){
	SLIDE(1);
}
function showNews(){
	$("#News").animate({"right":"0px", opacity:1}, "slow");
}
function hideNews(){
	$("#News").animate({"right":"-170px", opacity:1}, "slow");//This hides the news (IE SHOW UPDATE) slider! Use -70px to show...
}
function hideLeftSlider(){
	$(".leftSlider").animate({"width":"0px","left":sliderLocation+"px", opacity:0}, "slow");
	$(".leftSliderFront").animate({"width":"0px", opacity:0}, "slow");
}
function showLeftSlider(){
	winWidth=$(window).width();
	sliderLocation=(winWidth/2)-512;
	if(sliderLocation<0)
		sliderLocation=0;
	$(".leftSlider").animate({"width":winWidth/2+"px","left":"0px", opacity:.8}, "slow");
	$(".leftSliderFront").animate({"width":"512px","left":sliderLocation+"px", opacity:1}, "slow");
}
function hideRightSlider(){
	$(".rightSlider").animate({"left":sliderLocation+1024+"px","width": "0px", opacity:0}, "slow");
	$(".rightSliderFront").animate({"left":sliderLocation+1024+"px","width": "0px", opacity:0}, "slow");
}
function showRightSlider(){
	winWidth=$(window).width();
	sliderLocation=(winWidth/2)-512;
	//if(sliderLocation<0)
		//sliderLocation=0;
	$(".rightSlider").animate({"left":sliderLocation+512+"px","width":"512px", opacity:.8}, "slow");
	$(".rightSliderFront").animate({"left":sliderLocation+512+"px","width":"512px", opacity:1}, "slow");
}

function showVideoFrame(vidLocation){
	$("#videoFrame").animate({"height":"500px","top":"10%", opacity:1}, "slow");
	CHANGECONTENT('HTML/'+vidLocation+'.html','videoFrame')
}
function hideVideoFrame(){
	$("#videoFrame").animate({"height":"0px","top":"0px", opacity:0}, "slow");
	CHANGECONTENT('HTML/blank.html','videoFrame')

}
function SCHEDULE(){
	$('#extraLinks').show();
//	CHANGECONTENT('HTML/Schedule.html','extraLinks');
	hideLeftSlider();
	hideRightSlider();
}
function CONTACT(){
	CHANGECONTENT('HTML/Contact.html','leftSliderFront');
}
function PRIVATE(){
	CHANGECONTENT('HTML/Private.html','leftSliderFront');
}
function TROUPES(){
	CHANGECONTENT('HTML/Troupes.html','leftSliderFront');
}
function STAFF(){
	CHANGECONTENT('HTML/Staff.html','leftSliderFront');
}
function PRIVATEEVENTS(){
	CHANGECONTENT('HTML/privateEvents.html','leftSliderFront');
}
function NEWSVIDEO(){
	CHANGECONTENT('HTML/newsVideo.html','leftSliderFront');
}
function SHOWVIDEO(vidName){
	SHOWDARKOVERLAY();
	showVideoFrame(vidName);
}
function SHOWSCHEDULE(){
	SHOWDARKOVERLAY();
	showVideoFrame("scheduleImage");
}
function SHOWEVENTPRICING(){
	SHOWDARKOVERLAY();
	showVideoFrame("pricingEventsImage");
}
function SHOWRENTALPRICING(){
	SHOWDARKOVERLAY();
	showVideoFrame("pricingRentalImage");
}
function SHOWBDAYPRICING(){
	SHOWDARKOVERLAY();
	showVideoFrame("pricingBdayImage");
}
