 saveWidth=0;
 saveHeight=0;
 imageParishHall = "images/ParishHall.jpg";
 imageYellowBlueSign = "images/HistoricSign.gif";

 var mainImg=null;

function PreloadImages() {
    if (document.images) // && mainImg!=null)
    {
       // alert('Preload');
        // Load Images
    	over0 = new Image();
    	over0.src = imageParishHall;
    	over1 = new Image();
    	over1.src = imageYellowBlueSign;
    	over2 = new Image();
    	over2.src = "images/greenTreesChurchFront.jpg";
    	over3 = new Image();
    	over3.src = "images/freeLunchSign.gif";
        
    	normal0 = new Image();
    	normal0.src = "images/blueSkyChurchFront.jpg";
	saveMain = new Image();
	saveMain = normal0;	 
        mainImg = saveMain;	    	
        if (document.images['mainImg']) {
            saveWidth=document.images['mainImg'].width;
            saveHeight=document.images['mainImg'].height;    
        } // if

        over100 =  normal0;
    } 
 } // end function PreloadImages


 function mOver(num) {

    if (document.images && mainImg!=null) 
    {
        document.images['mainImg'].src = eval('over' + num).src;
        switch (num) {
        	case 0:
        	document.images['mainImg'].width = 300;
        	document.images['mainImg'].height = 225;
        	break;
        	
        	case 1:	// sign
		document.images['mainImg'].width = 225;
        	document.images['mainImg'].height = 169;        	
        	break;
        	
        	case 2: // greenTreesChurchFront
        	case 3: // freeLunchSign
        	document.images['mainImg'].width = 225;
        	document.images['mainImg'].height = 300;        	
        	break;
        	


        	default:
        	document.images['mainImg'] = saveMain;
        	break;
        } // switch
    }
}

function mOut(num)
    {
        if (document.images && mainImg!=null)
        {
        	document.images['mainImg'].src = saveMain.src;
        	document.images['mainImg'].width = saveMain.width;
        	document.images['mainImg'].height = saveMain.height;
        }
    }

    