function kiesItem($i) {
	$base = 'http://www.autoinkoop.nl/';
	// $base = 'http://development.drecomm.nl/autoinkoop-v2/webpro/'
	if(getWidth() > 800) {
		switch($i) {
			case 1:  window.location.href = $base+'contantgeld/'; break;
			case 11: window.location.href = $base+'contantgeld/bedrijfsauto/'; break;
			case 2:  window.location.href = $base+'advertentie/plaatsen/'; break;
			case 21: window.location.href = $base+'advertentie/plaatsen/bedrijfsauto/'; break;
			case 3:  window.location.href = $base+'auto/verkopen/'; break;
			case 4:  window.location.href = $base+'bedrijfsauto/verkopen/'; break;
			case 5:  window.location.href = 'http://www.autoverkopen.nl'; break;
			case 6:  window.location.href = $base+'domeinen/'; break;
			case 9:  window.location.href = $base; break;
			case 91:  window.location.href = $base+'sitemap/'; break;
			case 92:  window.location.href = $base+'contact/'; break;
			case 93:  window.location.href = $base+'verkoper/inloggen/'; break;
			
		}
	} else {
		switch($i) {
			case 1:  window.location.href = $base+'contantgeld/?res=800'; break;
			case 11: window.location.href = $base+'contantgeld/bedrijfsauto/?res=800'; break;
			case 2:  window.location.href = $base+'advertentie/plaatsen/?res=800'; break;
			case 21:  window.location.href = $base+'advertentie/plaatsen/bedrijfsauto/?res=800'; break;
			case 3:  window.location.href = $base+'auto/verkopen/?res=800'; break;
			case 4:  window.location.href = $base+'bedrijfsauto/verkopen/?res=800'; break;
			case 5:  window.location.href = 'http://www.autoverkopen.nl'; break;
			case 6:  window.location.href = $base+'domeinen/?res=800'; break;
			case 9:  window.location.href = $base+'home.php'; break;
			case 91:  window.location.href = $base+'sitemap/?res=800'; break;
			case 92:  window.location.href = $base+'contact/?res=800'; break;
			case 93:  window.location.href = $base+'verkoper/inloggen/'; break;
		}
	}
}

var imgs = new Array();
imgs[0] = "images/home01.gif"; 
imgs[1] = "images/home02.gif"; 
imgs[2] = "images/sitemap01.gif"; 
imgs[3] = "images/sitemap02.gif"; 
imgs[4] = "images/contact01.gif"; 
imgs[5] = "images/contact02.gif"; 
imgs[6] = "images/inloggen01.gif"; 
imgs[7] = "images/inloggen02.gif"; 
imgs[8] = "images/contantgeld.gif"; 
imgs[9] = "images/contantgeld02.gif"; 
imgs[10] = "images/vraageenbod.gif"; 
imgs[11] = "images/vraageenbod02.gif"; 
imgs[12] = "images/autoverkopen.gif"; 
imgs[13] = "images/autoverkopen02.gif"; 
imgs[14] = "images/bedrijfsauto.gif"; 
imgs[15] = "images/bedrijfsauto02.gif"; 
imgs[16] = "images/autotekoop.gif"; 
imgs[17] = "images/autotekoop02.gif"; 
imgs[18] = "images/onzedomeinen.gif"; 
imgs[19] = "images/onzedomeinen02.gif"; 
imgs[20] = "images/drecomm.gif";
imgs[21] = "images/drecomm02.gif";


function imgSwap(img, swap) { 
	img.src = imgs[swap].src; 
}

function preload() { 
	var tmp = null; 
	for (var j = 0; j < imgs.length; j++) { 
		tmp = imgs[j]; 
		imgs[j] = new Image(); 
		imgs[j].src = tmp; 
	} 
}

var Pic = new Array()
Pic[0] = 'images/auto1.jpg';
Pic[1] = 'images/auto2.jpg';
var preLoad = new Array()
for (i = 0; i < Pic.length; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

var j = 0;
var slideShowSpeed = 6000;

function runSlideShow() {
   document.getElementById('SlideShow').background = preLoad[j].src;
   j++;
   if (j > (Pic.length-1)) j=0;
   t = setTimeout('runSlideShow()', slideShowSpeed)
}