﻿
var tailDown = false;
function doSlide() {

    if (tailDown == false)
    {
    
        var winWidth = $(window).width();
        var showLayer = $("#divRollOver");
        var layerWidth = $("#divRollOver").css("width").replace("px", "");
        
        var newLeft = ((winWidth - layerWidth) / 2);
        
        var thisTarget = $("#work");
        var offset = thisTarget.offset();
        
        $(showLayer).css("top", offset.top + "px");
        $(showLayer).css("left", newLeft + "px");        
       
        //$("#work").hide();
        $(showLayer).show();
        
    }

}

function backUp() {

        $("#divRollOver").hide();
        tailDown = false;

}



$(document).ready(function(){

    $('#frontPageRotate').cycle();

});