
function careerOpportunity(op) {


    if (op == 0) {
        for (i = 1; i <= 5; i++) {
            document.getElementById("oppCareer" + i).style.display = "none"
        }
    }

    else


        var i = 1;
    for (i = 1; i <= 5; i++) {


        if (i == op) {
            document.getElementById("oppCareer" + i).style.display = "block"
        } else
            document.getElementById("oppCareer" + i).style.display = "none"
    }
}

function rotate() {
    //Get the first image
    var current = ($('div.rotator ul li.show') ? $('div.rotator ul li.show') : $('div.rotator ul li:first'));

    if (current.length == 0) current = $('div.rotator ul li:first');

    //Get next image, when it reaches the end, rotate it back to the first image
    var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('div.rotator ul li:first') : current.next()) : $('div.rotator ul li:first'));

    //Set the fade in effect for the next image, the show class has higher z-index
    next.css({ opacity: 0.0 })
	        .addClass('show')
	        .animate({ opacity: 1.0 }, 1000);

    //Hide the current image
    current.animate({ opacity: 0.0 }, 1000)
	        .removeClass('show');

};

$(document).ready(function () {
    //Load the slideshow
    theRotator();
    $('div.rotator').fadeIn(1000);
    $('div.rotator ul li').fadeIn(1000); // tweek for IE
});
	
	
	
	
	

