
$(document).ready(function() {        
		$("#ft ul li#navVIII a").addClass("highlight");
		$("#ft ul li#navIX a").addClass("first");
	
	    initLightbox();
	    	
		$("#photoclick").click(function() {    		    
            $(this).next("a").click();
	    });
});

function initLightbox() {
    $("#divphoto a:not(:first)").lightBox();
}

function openPopup(id) {
    width = 380;
    height = 290;
    leftVal = (screen.width) / 4;
    topVal = (screen.height) / 4;

    if (deployJava.versionCheck('1.4.0_10+') == false) {                           
        userInput = confirm("You need the Java(TM) Runtime Environment. Would you like to install now?");                
        if (userInput == true) { 
            deployJava.returnPage = location.href;
            //deployJava.installLatestJRE();
            window.open('http://java.sun.com/webapps/getjava/BrowserRedirect?host=java.com', 'installjava',"left=" + leftVal + ",top=" + topVal + ",menubar=yes,resizable=yes,scrollbars=1,width=700,height=600"); 
        }
    }else{
        window.open('ipix.aspx?id='+id, 'Map', "left=" + leftVal + ",top=" + topVal + ",menubar=no,resizable=no,scrollbars=1,width=" + width + ",height=" + height + ""); 
    }
    
}


