function toggle(id,gImg) {
	document.getElementById('ph1').style.display = "none";
	document.getElementById('ph2').style.display = "none";
	document.getElementById('ph3').style.display = "none";
	document.getElementById('ph4').style.display = "none";
	
	document.getElementById('gImg1').style.opacity = "0.40";
	document.getElementById('gImg2').style.opacity = "0.40";
	document.getElementById('gImg3').style.opacity = "0.40";
	document.getElementById('gImg4').style.opacity = "0.40";
	
	document.getElementById('gImg1').style.filter="alpha(opacity=40)";
	document.getElementById('gImg2').style.filter="alpha(opacity=40)";
	document.getElementById('gImg3').style.filter="alpha(opacity=40)";
	document.getElementById('gImg4').style.filter="alpha(opacity=40)";
	
	document.getElementById(id).style.display = "block";
	document.getElementById(gImg).style.opacity = "1.0";
	document.getElementById(gImg).style.filter="alpha(opacity=100)";
}

function display(id) {
	document.getElementById(id).style.display='block';
}

function hide(id) {
	document.getElementById(id).style.display='none';
}

function hideme(id) {
	document.getElementById(id).style.display='none';
}

function visible(id) {
	document.getElementById(id).style.bottom='5px';
}

function hidden(id) {
	document.getElementById(id).style.bottom='-50px';
}

function upload(url,path) {
apopWindow = window.open(url + '?path=' + path, 'apopWin', 'width=400,height=300,toolbar=no,location=no,scrollbars=no,status=no')

}

//NAV DROP DOWN
$(document).ready(function () {	

$('#nav li').hover(
    function () {
	    //show its submenu
	    $('ul', this).slideDown(150);

    }, 
    function () {
	    //hide its submenu
	    $('ul', this).slideUp(250);			
    }
);

});

//HOME PAGE HERO ROTATION - AUTOSTART, CYCLE THROUGH, PAGING, PAUSE ON MOUSEOVER
$(function() {
    $('#hero').before('<div id="heropaging" class="heropaging"></div>').cycle({
        //fx: 'scrollDown',
        fx: 'fade',
        timeout: 5500,
        pause: 1,
        //easing: 'easeOutBounce',
        delay: 1000,
        pager: '#heropaging',
        before: function() { if (window.console) console.log(this.src); }
    });
});

$(function() {
    $('.pos1').cycle({
        fx: 'fade',
        timeout: 4859,
        pause: 1,
        delay: -2000,
        before: function() { if (window.console) console.log(this.src); }
    });
});

$(function() {
$('.theheader').cycle({
        fx: 'fade',
        timeout: 4859,
        pause: 1,
        delay: -2000,
        before: function() { if (window.console) console.log(this.src); }
    });
});

function navOn(id) {
document.getElementById(id).style.color='#eee';
document.getElementById(id).style.background='#629fd0';
}

function navOff(id) {
document.getElementById(id).style.color='#fff';
document.getElementById(id).style.background='#727272';
}


function showplay(id) {
    document.getElementById('synopsis').style.display='none';
    document.getElementById('calendar').style.display='none';
    document.getElementById('related').style.display='none';
    document.getElementById('artists').style.display='none';
    document.getElementById('media').style.display='none';
    document.getElementById('press').style.display='none';
	nowshow(id);
}

function nowshow(id) {
	document.getElementById(id).style.display='block';
}

//THUMB DROP DOWN
$(document).ready(function() {

    $('.boxes1').hover(
    function() {
        //show its submenu
        $('.info', this).slideDown(150);

    },
    function() {
        //hide its submenu
        $('.info', this).slideUp(250);
    }
);

});

// jqvideobox
$(document).ready(
function () {
    $(".vidbox").jqvideobox();
}
);
