﻿function compDrop() {
    if (document.getElementById('competitionDrop').style.display != "block"){
    document.getElementById('competitionDrop').style.display = "block";
    document.getElementById('p3').style.backgroundPosition = "bottom";
    }else{
    document.getElementById('competitionDrop').style.display = "none";
    document.getElementById('p3').style.backgroundPosition = "top";
    } 
    }

function compHold() {
    document.getElementById('competitionDrop').style.display = "block";
    document.getElementById('p3').style.backgroundPosition = "bottom";
}

function updatesDrop() {
    if (document.getElementById('updatesDrop').style.display != "block"){
    document.getElementById('updatesDrop').style.display = "block";
    document.getElementById('p7').style.backgroundPosition = "bottom";
    }else{
    document.getElementById('updatesDrop').style.display = "none";
    document.getElementById('p7').style.backgroundPosition = "top";
    } 
    }

function updatesHold() {
    document.getElementById('updatesDrop').style.display = "block";
    document.getElementById('p7').style.backgroundPosition = "bottom";
}
    
function venuesDrop() {
    if (document.getElementById('venuesDrop').style.display != "block"){
    document.getElementById('venuesDrop').style.display = "block";
    document.getElementById('p4').style.backgroundPosition = "bottom";
    }else{
    document.getElementById('venuesDrop').style.display = "none";
    document.getElementById('p4').style.backgroundPosition = "top";
    } 
    }
    
function venuesHold() {
    document.getElementById('venuesDrop').style.display = "block";
    document.getElementById('p4').style.backgroundPosition = "bottom";
}

    
function galleryDrop() {
    if (document.getElementById('galleryDrop').style.display != "block"){
    document.getElementById('galleryDrop').style.display = "block";
    document.getElementById('p6').style.backgroundPosition = "bottom";
    }else{
    document.getElementById('galleryDrop').style.display = "none";
    document.getElementById('p6').style.backgroundPosition = "top";
    } 
    }
    
function galleryHold() {
    document.getElementById('galleryDrop').style.display = "block";
    document.getElementById('p6').style.backgroundPosition = "bottom";
}
    
function closeG() {
    if (document.getElementById('galleryDrop').style.height == '500px') {
    document.getElementById('p6').style.backgroundPosition = "top";
    var drop = new Fx.Morph('galleryDrop', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop.start({'height': [500, 0]});
    document.getElementById('g1').style.backgroundPosition = "";
    document.getElementById('g2').style.backgroundPosition = "";
    document.getElementById('g3').style.backgroundPosition = "";
    var drop1 = new Fx.Morph('hidden1', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden2', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden3', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop4 = new Fx.Morph('hidden4', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop5 = new Fx.Morph('hidden5', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop6 = new Fx.Morph('hidden6', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop7 = new Fx.Morph('hidden7', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop8 = new Fx.Morph('hidden8', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop9 = new Fx.Morph('hidden9', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [0, 0]});
    drop2.start({'height': [0, 0]});
    drop3.start({'height': [0, 0]});
    drop4.start({'height': [0, 0]});
    drop5.start({'height': [0, 0]});
    drop6.start({'height': [0, 0]});
    drop7.start({'height': [0, 0]});
    drop8.start({'height': [0, 0]});
    drop9.start({'height': [0, 0]});
    }
}
    
function closeV() {
    if (document.getElementById('venuesDrop').style.height == '240px') {
    document.getElementById('p4').style.backgroundPosition = "top";
    var drop = new Fx.Morph('venuesDrop', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop.start({'height': [240, 0]});}
}

function closeC() {
    if (document.getElementById('competitionDrop').style.height == '1000px') {
    document.getElementById('p3').style.backgroundPosition = "top";
    var drop = new Fx.Morph('competitionDrop', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop.start({'height': [1000, 0]});}
    var drop1 = new Fx.Morph('hidden10', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden11', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden12', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop4 = new Fx.Morph('hidden13', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [0, 0]});
    drop2.start({'height': [0, 0]});
    drop3.start({'height': [0, 0]});
    drop4.start({'height': [0, 0]});
}

function tRestart() {
    timer = setTimeout("closeV()", (1));
}

function tCancel() {
    clearTimeout(timer);
}

function tRestartC() {
    timer = setTimeout("closeC()", (1));
}

function tCancelC() {
    clearTimeout(timer);
}

function tCancelG() {
    clearTimeout(timer);
}

function tRestartG() {
    timer = setTimeout("closeG()", (1));
}

function tCancelG() {
    clearTimeout(timer);
}

function hidden1() {
    if (document.getElementById('hidden1').style.height != '36px') {
    document.getElementById('g1').style.backgroundPosition = "center";
    var drop1 = new Fx.Morph('hidden1', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden2', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden3', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [0, 36]});
    drop2.start({'height': [0, 36]});
    drop3.start({'height': [0, 36]});
    } else {
    document.getElementById('g1').style.backgroundPosition = "";
    var drop1 = new Fx.Morph('hidden1', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden2', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden3', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [36, 0]});
    drop2.start({'height': [36, 0]});
    drop3.start({'height': [36, 0]});
    }
}

function hidden2() {
    if (document.getElementById('hidden4').style.height != '36px') {
    document.getElementById('g2').style.backgroundPosition = "center";
    var drop1 = new Fx.Morph('hidden4', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden5', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden6', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [0, 36]});
    drop2.start({'height': [0, 36]});
    drop3.start({'height': [0, 36]});
    } else {
    document.getElementById('g2').style.backgroundPosition = "";
    var drop1 = new Fx.Morph('hidden4', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden5', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden6', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [36, 0]});
    drop2.start({'height': [36, 0]});
    drop3.start({'height': [36, 0]});
    }
}

function hidden3() {
    if (document.getElementById('hidden7').style.height != '36px') {
    document.getElementById('g3').style.backgroundPosition = "center";
    var drop1 = new Fx.Morph('hidden7', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden8', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden9', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [0, 36]});
    drop2.start({'height': [0, 36]});
    drop3.start({'height': [0, 36]});
    } else {
    document.getElementById('g3').style.backgroundPosition = "";
    var drop1 = new Fx.Morph('hidden7', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden8', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden9', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [36, 0]});
    drop2.start({'height': [36, 0]});
    drop3.start({'height': [36, 0]});
    }
}

function hidden4() {
    if (document.getElementById('hidden10a').style.height != '36px') {
    document.getElementById('g3a').style.backgroundPosition = "center";
    var drop1 = new Fx.Morph('hidden10a', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden11a', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden12a', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [0, 36]});
    drop2.start({'height': [0, 36]});
    drop3.start({'height': [0, 36]});
    } else {
    document.getElementById('g3a').style.backgroundPosition = "";
    var drop1 = new Fx.Morph('hidden10a', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden11a', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden12a', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [36, 0]});
    drop2.start({'height': [36, 0]});
    drop3.start({'height': [36, 0]});
    }
}

function pastEventsDrop() {
    if (document.getElementById('hidden10').style.height != '36px') {
    document.getElementById('c2').style.backgroundPosition = "center";
    var drop1 = new Fx.Morph('hidden10', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden11', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden12', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop4 = new Fx.Morph('hidden13', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop5 = new Fx.Morph('hidden14', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [0, 36]});
    drop2.start({'height': [0, 36]});
    drop3.start({'height': [0, 36]});
    drop4.start({'height': [0, 36]});
    drop5.start({'height': [0, 36]});
    } else {
    document.getElementById('c2').style.backgroundPosition = "";
    var drop1 = new Fx.Morph('hidden10', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop2 = new Fx.Morph('hidden11', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop3 = new Fx.Morph('hidden12', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop4 = new Fx.Morph('hidden13', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    var drop5 = new Fx.Morph('hidden14', {duration: 380, transition: Fx.Transitions.Sine.easeOut});
    drop1.start({'height': [36, 0]});
    drop2.start({'height': [36, 0]});
    drop3.start({'height': [36, 0]});
    drop4.start({'height': [36, 0]});
    drop5.start({'height': [36, 0]});
    }
}

