
onerror=errorHandler;

/*
	// assign rollon() to handle onMouseOver events
	document.onmouseover = rollon;
	// assign rolloff() to handle onMouseOut events
	document.onmouseout = rolloff;
*/

var browsertype = 'other';

var msg =  '                                                                          ';
msg += 'Who killed Carol Park? Where? When? Why? What do you know? A VW Beetle was '; 
msg += 'sighted the day Carol disappeared. Who was the driver? Why hasnt he come ';
msg += 'forward? Carol was sighted on southbound M6 services. Where was she going? ';
msg += 'Statements from 1976 went missing. The eyewitness account from the trial was ';
msg += '1.25 miles away. Can you see a person or a boat from this far at all? ';
msg += 'The police approached a convict with learning difficulties and ';
msg += 'crimes for dishonesty to testify. He is ‘suggestible’ yet the police suggested ';
msg += ' things to him during interview. The interview tapes were turned off several ';
msg += 'times then his story changed dramatically. The other convict has used cannabis ';
msg += '15 times a day for 14 years. He suffers memory loss and hears voices. Their ';
msg += 'prison records went missing but not Gordon’s. Who received the Crime-Stoppers ';
msg += '£5000 reward? The rock could have come from anywhere; the diver didn’t remember ';
msg += 'recovering it. Was it ever in the lake? Why did the police use 3 knot ';
msg += 'experts? Why did the 3rd retract his conclusions after getting to court? The ';
msg += 'knots are common in the Lake District. The rope fibres didnt match. The lead ';
msg += 'piping didnt match. The hammer didnt match. Whose were the clothes? Why attract ';
msg += 'interest and move a boat from Windermere to Coniston? What was the killers ';
msg += 'motive? Jealousy? Another lover would be another suspect. Who? There is no ';
msg += 'evidence of violence from Gordon Park. There are several other suspects. There '; 
msg += 'is no time / place of death or murder weapon. ';
msg += 'Who killed Carol Park? Where? When? Why? What do you know? ';
msg += 'Please pass information to solicitor Mr Rob Rode on 01132 460 622';


var msglen = msg.length;
var i = msglen - 1;
var msgleft = "";
var msgright = "";
var cd = new Date(2005, 0, 28, 15, 45);
var cdplusoneyear = new Date(2006, 0, 28, 15, 45);
var died = new Date(2010, 0, 25, 9, 5);

function errorHandler(msg, url, line)
{
	//alert('error: ' + msg + ' - ' + url + ' - at line ' + line);
	return true;
}


function last2(str)
{
	if (str.toString().length==1)
	{ 
		return '0' + str;
	} 
	else
	{ 
		return str;
	}
}

function showconvictiontime()
{
	var dd = died - cd;
	var cv = new Date(dd);
	var timestring = '<p><b>';
	
	
	timestring += cv.getYear() - 70 + ' Years<br/>';
	timestring += cv.getMonth() + ' Months<br/>';
	timestring += cv.getDate() + ' Days<br/>';
	timestring += last2(cv.getHours()) + ':';
	timestring += last2(cv.getMinutes()) + ':';
	timestring += last2(cv.getSeconds());
	timestring += '</b></p>';
	     
	if (browsertype == 'ie') 
	{
		document.all.convictiontime.innerHTML = timestring;
	}
	else
	{
		document.getElementById("convictiontime").innerHTML = timestring;
	} 
}

function detectbrowser()
{
	browsertype = 'unknown';

	//alert(navigator.userAgent);

	// get the browser details
	var browser = navigator.userAgent;

	//test it
	if (browser.match(/MSIE/)) {browsertype = 'ie';}
	if (browser.match(/[Ss]afari/)) {browsertype = 'safari';}
	if (browser.match(/[Ff]irefox/)) {browsertype = 'firefox';}
	if (browser.match(/[Oo]pera/)) {browsertype = 'opera';}

	//alert(browsertype);
}

function setcontentstableheight()
{

	if (browsertype=='ie')
	{
		//alert(screen.height); 
		document.all.contentspane.height = screen.height - 320;
	}

	if (browsertype=='opera')
	{
		//alert(top.window.innerHeight); 
		document.all.contentspane.height = top.window.innerHeight - 170;
	}

	if (browsertype=='firefox')
	{
		//alert(top.window.innerHeight); 
		document.getElementById('contentspane').height = top.innerHeight - 170; 
	}

	if (browsertype=='safari')
	{
		//alert(top.innerHeight);
		document.getElementById('contentspane').height = top.innerHeight - 160; 
	}

	if (browsertype=='unknown')
	{
		//alert(top.innerHeight);
		document.getElementById('contentspane').height = top.innerHeight - 170; 
	}

}


function onpageload()
{
	//alert('onpageload');
	detectbrowser();
	setcontentstableheight();
	//linkClicked('homelink');
}

