
var urlarray= new Array(
		"http://www.Crystaldawn.co.uk",
      		"http://www.derekhaden.com/G4WXN",
		"http://www.swaffhammotorcycles.co.uk",
		"http://www.brandoncop.org.uk",
		"http://www.derekhaden.com",
		"http://www.derekhaden.com/weddings.htm",
		"http://www.derekhaden.com/weddings.htm",
		"http://www.everydaycycling.co.uk",
		"http://www.sustransrangers.org.uk",
		"http://www.suffolk.great-british-pages.co.uk",
		"http://www.each.org.uk"
		  
	  					);
	  

var bannerarray= new Array(
						"http://www.derekhaden.com/random-banners/crystaldawnbanner.jpg",
						"http://www.derekhaden.com/random-banners/G4WXNlogo.jpg",
						"http://www.derekhaden.com/random-banners/swaffhammc.jpg",
						"http://www.derekhaden.com/random-banners/bcpbanner.jpg",
						"http://www.derekhaden.com/random-banners/dhcombanner.jpg",
						"http://www.derekhaden.com/random-banners/weddingphotographernorfolk.jpg",
						"http://www.derekhaden.com/random-banners/weddingphotographersuffolk.jpg",
						"http://www.derekhaden.com/random-banners/everydaycycling.jpg",
	  					"http://www.derekhaden.com/random-banners/sustransbanner.jpg",
						"http://www.derekhaden.com/random-banners/suffolkpagesbanner.jpg",
						"http://www.derekhaden.com/random-banners/each.jpg"					
						);

randomno=Math.floor((Math.random()*urlarray.length));
//declare variables
g_target=" target=";
g_blank="_blank";
g_ahref="<a href=";
g_imgsrc="<img src=";
g_width=" width=";
g_height=" Height=";
g_quote="\"";
g_h="70";
g_w="300";
g_border=" border=";
g_endbit=">";
g_endahref="</A>";

urlstr=g_ahref;  
urlstr+=g_quote;

urlstr+=urlarray[randomno];
urlstr+=g_quote;
urlstr+=g_target;
urlstr+=g_quote;
urlstr+=g_blank;
urlstr+=g_quote;
urlstr+=g_endbit;
urlstr+=g_imgsrc;
urlstr+=g_quote;
urlstr+=bannerarray[randomno];
urlstr+=g_quote;
urlstr+=g_width;
urlstr+=g_quote;
urlstr+=g_w;
urlstr+=g_quote;
urlstr+=g_height;
urlstr+=g_quote;
urlstr+=g_h;
urlstr+=g_quote;
urlstr+=g_border;
urlstr+="\"0\"";
urlstr+=g_endbit;
urlstr+=g_endahref;

document.write (urlstr);
