//Show and Hide the Forms

$("#guestlist").click(function () {
$(".event_page_form").slideUp("medium");
$("#gotl_form").slideDown("medium");
});

$("#vip").click(function () {
$(".event_page_form").slideUp("medium");
$("#vip_form").slideDown("medium");
});

$("#ticket").click(function () {
$(".event_page_form").slideUp("medium");
$("#ticket_form").slideDown("medium");
});



//Animate the Buttons

$("#guestlist").mouseenter(function () {
timeoutId = setTimeout(function() {
$("#gotl_button").hide();
$("#gotl_button_hover").show();
}, 1);
});

$("#guestlist").mouseleave(function () {
clearTimeout(timeoutId);
$("#gotl_button").show();
$("#gotl_button_hover").hide();
});

$("#vip").mouseenter(function () {
timeoutId = setTimeout(function() {
$("#vip_button").hide();
$("#vip_button_hover").show();
}, 1);
});

$("#vip").mouseleave(function () {
clearTimeout(timeoutId);
$("#vip_button").show();
$("#vip_button_hover").hide();
});

$("#ticket").mouseenter(function () {
timeoutId = setTimeout(function() {
$("#ticket_button").hide();
$("#ticket_button_hover").show();
}, 1);
});

$("#ticket").mouseleave(function () {
clearTimeout(timeoutId);
$("#ticket_button").show();
$("#ticket_button_hover").hide();
});


//Label First and Last Name Fields GOTL

$(document).ready(function() {
$('#gotl_first_name').focus(function (){
if($('#gotl_first_name').val() == ' First') {
$('#gotl_first_name').val('');
$('#gotl_first_name').css('color','#354e7b');
}
});
$('#gotl_first_name').blur(function (){
if($('#gotl_first_name').val() == '') {
$('#gotl_first_name').val(' First');
$('#gotl_first_name').css('color','#727272');
}
});
});

$(document).ready(function() {
$('#gotl_last_name').focus(function (){
if($('#gotl_last_name').val() == ' Last') {
$('#gotl_last_name').val('');
$('#gotl_last_name').css('color','#354e7b');
}
});
$('#gotl_last_name').blur(function (){
if($('#gotl_last_name').val() == '') {
$('#gotl_last_name').val(' Last');
$('#gotl_last_name').css('color','#727272');
}
});
});


$(document).ready(function() {
$('#gotl_first_name1').focus(function (){
if($('#gotl_first_name1').val() == ' First') {
$('#gotl_first_name1').val('');
$('#gotl_first_name1').css('color','#354e7b');
}
});
$('#gotl_first_name1').blur(function (){
if($('#gotl_first_name1').val() == '') {
$('#gotl_first_name1').val(' First');
$('#gotl_first_name1').css('color','#727272');
}
});
});

$(document).ready(function() {
$('#gotl_last_name1').focus(function (){
if($('#gotl_last_name1').val() == ' Last') {
$('#gotl_last_name1').val('');
$('#gotl_last_name1').css('color','#354e7b');
}
});
$('#gotl_last_name1').blur(function (){
if($('#gotl_last_name1').val() == '') {
$('#gotl_last_name1').val(' Last');
$('#gotl_last_name1').css('color','#727272');
}
});
});

$(document).ready(function() {
$('#gotl_first_name2').focus(function (){
if($('#gotl_first_name2').val() == ' First') {
$('#gotl_first_name2').val('');
$('#gotl_first_name2').css('color','#354e7b');
}
});
$('#gotl_first_name2').blur(function (){
if($('#gotl_first_name2').val() == '') {
$('#gotl_first_name2').val(' First');
$('#gotl_first_name2').css('color','#727272');
}
});
});

$(document).ready(function() {
$('#gotl_last_name2').focus(function (){
if($('#gotl_last_name2').val() == ' Last') {
$('#gotl_last_name2').val('');
$('#gotl_last_name2').css('color','#354e7b');
}
});
$('#gotl_last_name2').blur(function (){
if($('#gotl_last_name2').val() == '') {
$('#gotl_last_name2').val(' Last');
$('#gotl_last_name2').css('color','#727272');
}
});
});

$(document).ready(function() {
$('#gotl_first_name3').focus(function (){
if($('#gotl_first_name3').val() == ' First') {
$('#gotl_first_name3').val('');
$('#gotl_first_name3').css('color','#354e7b');
}
});
$('#gotl_first_name3').blur(function (){
if($('#gotl_first_name3').val() == '') {
$('#gotl_first_name3').val(' First');
$('#gotl_first_name3').css('color','#727272');
}
});
});

$(document).ready(function() {
$('#gotl_last_name3').focus(function (){
if($('#gotl_last_name3').val() == ' Last') {
$('#gotl_last_name3').val('');
$('#gotl_last_name3').css('color','#354e7b');
}
});
$('#gotl_last_name3').blur(function (){
if($('#gotl_last_name3').val() == '') {
$('#gotl_last_name3').val(' Last');
$('#gotl_last_name3').css('color','#727272');
}
});
});

$(document).ready(function() {
$('#gotl_first_name4').focus(function (){
if($('#gotl_first_name4').val() == ' First') {
$('#gotl_first_name4').val('');
$('#gotl_first_name4').css('color','#354e7b');
}
});
$('#gotl_first_name4').blur(function (){
if($('#gotl_first_name4').val() == '') {
$('#gotl_first_name4').val(' First');
$('#gotl_first_name4').css('color','#727272');
}
});
});

$(document).ready(function() {
$('#gotl_last_name4').focus(function (){
if($('#gotl_last_name4').val() == ' Last') {
$('#gotl_last_name4').val('');
$('#gotl_last_name4').css('color','#354e7b');
}
});
$('#gotl_last_name4').blur(function (){
if($('#gotl_last_name4').val() == '') {
$('#gotl_last_name4').val(' Last');
$('#gotl_last_name4').css('color','#727272');
}
});
});

$(document).ready(function() {
$('#gotl_first_name5').focus(function (){
if($('#gotl_first_name5').val() == ' First') {
$('#gotl_first_name5').val('');
$('#gotl_first_name5').css('color','#354e7b');
}
});
$('#gotl_first_name5').blur(function (){
if($('#gotl_first_name5').val() == '') {
$('#gotl_first_name5').val(' First');
$('#gotl_first_name5').css('color','#727272');
}
});
});

$(document).ready(function() {
$('#gotl_last_name5').focus(function (){
if($('#gotl_last_name5').val() == ' Last') {
$('#gotl_last_name5').val('');
$('#gotl_last_name5').css('color','#354e7b');
}
});
$('#gotl_last_name5').blur(function (){
if($('#gotl_last_name5').val() == '') {
$('#gotl_last_name5').val(' Last');
$('#gotl_last_name5').css('color','#727272');
}
});
});

//Show and Hide "Add Your Friends" Section

var stop_show=0;

$("#gotl_myentourage_button").mouseenter(function () {
if (stop_show==0) {
	timeoutId = setTimeout(function() {
	$("#gotl_myentourage").slideDown("medium");
	$("#gotl_myentourage_hide").show("medium");
	}, 400);
}
});

$("#gotl_myentourage_button").mouseleave(function () {
clearTimeout(timeoutId);
stop_show=0;
});

$("#gotl_myentourage_button").click(function () {
$("#gotl_myentourage").slideDown("medium");
$("#gotl_myentourage_hide").show("medium");
});

$("#gotl_myentourage_hide").click(function () {
$("#gotl_myentourage").slideUp();
$("#gotl_myentourage_hide").hide();
});

$("#gotl_myentourage_hide").mouseleave(function () {
stop_show=1;
});


//Show and Hide Ticket Description




//Label First and Last Name Fields VIP

$(document).ready(function() {
$('#vip_first_name').focus(function (){
if($('#vip_first_name').val() == ' First') {
$('#vip_first_name').val('');
$('#vip_first_name').css('color','#354e7b');
}
});
$('#vip_first_name').blur(function (){
if($('#vip_first_name').val() == '') {
$('#vip_first_name').val(' First');
$('#vip_first_name').css('color','#727272');
}
});
});

$(document).ready(function() {
$('#vip_last_name').focus(function (){
if($('#vip_last_name').val() == ' Last') {
$('#vip_last_name').val('');
$('#vip_last_name').css('color','#354e7b');
}
});
$('#vip_last_name').blur(function (){
if($('#vip_last_name').val() == '') {
$('#vip_last_name').val(' Last');
$('#vip_last_name').css('color','#727272');
}
});
});
