﻿$(document).ready(function(){ 
		
		$(document).pngFix();
        
		$.preloadCssImages();
		
		$(".button").each(function() 
		{
            $(this).mouseover(function() 
            {
               imgsrc = $(this).attr("src");
                
               matches = imgsrc.match(/_down/);
                
                if (!matches) 
                {
					imgsrcON = imgsrc.replace(/.gif$/ig,"_down.gif");
					$(this).attr("src", imgsrcON);
				}
           });
           
           $(".button").mouseout(function()
           {
				$(this).attr("src", imgsrc);
			});
        });
		
		$('.galleryimages').cycle({
			fx: 'wipe',
			clip:   'r2l',
			speed:    1000, 
    		timeout:  6000
		});

    }); 
