function preloader() 
{
MenuitemBlock1 = new Image(); 
MenuitemBlock1.src = "http://www.chwaraeteg.com/tinyimages/chwaraeteg-home1_01.jpg";

MenuitemBlock2 = new Image(); 
MenuitemBlock2.src = "http://www.chwaraeteg.com/tinyimages/chwaraeteg-home2_01.jpg";

MenuitemBlock3 = new Image(); 
MenuitemBlock3.src = "http://www.chwaraeteg.com/tinyimages/chwaraeteg-home3_01.jpg";


<!--Welsh set to preload-->

MenuitemBlock4 = new Image(); 
MenuitemBlock4.src = "http://www.chwaraeteg.com/tinyimages/chwaraeteg_1_01a.jpg";

MenuitemBlock5 = new Image(); 
MenuitemBlock5.src = "http://www.chwaraeteg.com/tinyimages/chwaraeteg_1_01b.jpg";

MenuitemBlock6 = new Image(); 
MenuitemBlock6.src = "http://www.chwaraeteg.com/tinyimages/chwaraeteg_1_01c.jpg";


}


function slideSwitch() {
    var $active = $('#slideshow DIV.active');

    if ( $active.length == 0 ) $active = $('#slideshow DIV:last');

    // use this to pull the divs in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        //: $('#slideshow DIV:first');
		: jQuery('#slideshow DIV:first');

    // pull the divs randomly
    //var $sibs  = $active.siblings();
   // var rndNum = Math.floor(Math.random() * $sibs.length );
   // var $next  = $( $sibs[ rndNum ] );

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 3000, function() { //duration of fade + increases
            $active.removeClass('active last-active');
        });
}

jQuery(function() {
//$(function() {
    setInterval( "slideSwitch()", 5000 ); //speed of fade + increases
});
jQuery(document).ready(function(){


preloader();


});