
// Mouseovers and Preloader

// IE3 safe image switching code
var goodBrowser = 0;

if(document.images){
        // enable rollovers
        goodBrowser = 1;
        
        //image preloading stuff
        //put your images that will be used into a comma delimited
        //list on the next line... follow the example =)
        var preLoad = new Array('/images/nav_employment_over.gif','/images/nav_about_over.gif','/images/nav_portfolio_over.gif','/images/nav_services_over.gif','/images/nav_contact_over.gif','/images/btn_viewAll_over.gif','/images/nav_home_over.gif','/images/solutions_docImage_over.jpg','/images/solutions_wegmans_over.jpg','/images/solutions_uofr_over.jpg','/images/solutions_corning_over.jpg');

        //don't touch this (it does the pre-loading for you)
        for(var i = 0; i < preLoad.length;i++){
                var k = new Image();
                k.src = preLoad[i];
        }
        
}

function flipper(){
        if(goodBrowser == 1){
                for(var i = 0; i < flipper.arguments.length; i += 2){
                document.images[flipper.arguments[i]].src = flipper.arguments[i+1];
                }
        }

}




// Popup Window Option 1: all pop-up windows are same size
function popImage(imgWidth, imgHeight, imgSrc){
        //fix for margins\\
        if(navigator.appName == 'Netscape'){imgWidth += 10;imgHeight += 10;}else{imgWidth += 20;imgHeight += 50;}       
        bob = window.open(imgSrc,"bob",'resizable=no,toolbar=no,scrollbars=yes,directories=no,menubar=no,status=no,width=' + imgWidth + ',height=' + imgHeight + "'");
        bob.focus();
        //IE code
        if(navigator.appName != 'Netscape'){bob.resizeTo(imgWidth,imgHeight)}
}



