function displayBanner(id,paths,types,urls,width,height)
{
	 if(bannerCpt[id]>=paths.length) bannerCpt[id] = 0;
	 if(types[bannerCpt[id]] == 'swf')
	 {
	 	var so = new SWFObject(paths[bannerCpt[id]],id+'_flash', width, height, 7);
	    so.addParam("wmode", "transparent");
    	so.write(id);
	 }
	 else
	 {
		document.getElementById(id).innerHTML = '<a href="http://'+urls[bannerCpt[id]]+'"><img src="'+paths[bannerCpt[id]]+'" width="'+width+'" height="'+height+'"></a>';
	 }
	 bannerCpt[id]++; 
	 setTimeout(function(){
			displayBanner(id,paths,types,urls,width,height);
	 },17000);
}