function preloader() {
     // counter
     var i = 0;
     // create object
     imageObj = new Image();
     // set image list
     images = new Array();
	 images[0]="/images/bgall.jpg"
     images[1]="/images/bgcolor.jpg"
	 images[2]="/images/img1.jpg"
	 images[3]="/images/img2.jpg"
	 images[4]="/images/img3.jpg"
	 images[5]="/images/img4.jpg"
	 images[6]="/images/img5.jpg"
	 images[7]="/images/intro3.jpg"
	 images[8]="/images/intro4.jpg"
	 images[9]="/images/intro5.jpg"
	 images[10]="/images/intro6.jpg"
	 images[11]="/images/intro7.jpg"
	 images[12]="/images/intro8.jpg"
	 images[13]="/images/intro9.jpg"
	 images[14]="/images/intro10.jpg"
	 images[15]="/images/intro11.jpg"
	 images[16]="/images/logo.jpg"
     // start preloading
     for(i=0; i<=16; i++) 
     {
          imageObj.src=images[i];
     }
} 


var count=1;
/*** 
    Simple jQuery Slideshow Script
    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)
***/var rinki
function slideSwitch() {
    var $active = $('#slideshow DIV.active');
		
		count=count+1;
		
		if(count==18)
		{
			clearInterval(rinki);
			window.location="http://www.praube.com/?page_id=451";
			
		}
		
    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');
    // uncomment below to 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}, 1000, function() {
         $active.removeClass('active last-active');
        });
	
}


	function setInterval1() {
    									
					 rinki= setInterval( "slideSwitch()", 1500 );
						
						}

setInterval1();


