function reload()
	{
	var str = new Array(20);
	// insert target URLs between quote marks in array items below.
	// To add or remove the total number items in the array, add
	// lines to or remove lines from the array below and
	// modify the number in "Array()" above and "strI" below to
	// be one greater than the last "str[]" value below.
	str[0]   = "http://carfail.com/";
	str[1]   = "http://carfail.com/page/2/";
	str[2]   = "http://carfail.com/2009/05/";
	str[3]   = "http://carfail.com/2009/06/20/";
	str[4]   = "http://carfail.com/2009/04/08/got-down/";
	str[5]   = "http://carfail.com/page/11/";
	str[6]   = "http://carfail.com/category/strange-crashes/";
	str[7]   = "http://carfail.com/2009/05/01/hollywood-crash-in-china/";
	str[8]   = "http://carfail.com/2009/01/08/spate-of-car-burning-ends-2008/";
	str[9]   = "http://carfail.com/2009/02/15/bmw-320-on-pole/";
	str[10]  = "http://carfail.com/2009/03/09/helo-im-going-home/";
	str[11]  = "http://carfail.com/2009/04/04/four-car-failed-the-ground-in-moscow/";
	str[12]  = "http://carfail.com/page/3/";
	str[13]  = "http://carfail.com/page/4/";
	str[14]  = "http://carfail.com/page/5/";
	str[15]  = "http://carfail.com/page/6/";
	str[16]  = "http://carfail.com/page/7/";
	str[17]  = "http://carfail.com/page/8/";
	str[18]  = "http://btpromosoft.com/about/";
	str[19]  = "http://kingsizetour.com/about/";
			
	URL=str[Math.round(Math.random()*20)];
	document.location.href=URL;

	var intNumber=Math.round(Math.random()*45000);
	if(intNumber<5000){intNumber=intNumber+5000;}
	setTimeout("reload()",intNumber);
	}
			
function createCookie(name,value,days) 
	{
	if (days) 
		{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
		}
	else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}

function readCookie(name) 
	{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) 
		{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
	return null;
	}
	
