var
	bAdMode = false;

var
	theight		= 24,
	transtime	= 5000,
	borderw		= 0,
	pad_top		= 0,
	pad_top2	= 0,
	pad_left	= 0,
	pad_left2	= 0,
	borderd		= '',
	text_alignt	= 'left',
	text_alignh	= 'center',
	text_decort	= 'none',
	text_decorh	= 'none',
	fstylet		= 'normal',
	fstyleh		= 'normal',
	fweightt	= 'normal',
	fweighth	= 'bold',
	fontn		= 'Tahoma',
	bgcol		= '',
	bgcolh		= '#990000',
	txtcol		= 'blue',
	txthicol	= '#FF3030',
	txtcolh		= '#E9E9E9',
	border_color_str = '#000000',
	nstheight	= 0,
	nst2width	= 0;

var
	text = new Array(),
	header = new Array(),
	linka = new Array(),
	targa = new Array(),
	adsIDs = new Array();

	text[0] = 'Net clash for web police projects';
	header[0] = '';
	linka[0] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8562308.stm';
	targa[0] = '_blank';
	adsIDs[0] = -1;
	text[1] = 'China\'s stern warning to Google';
	header[1] = '';
	linka[1] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8564822.stm';
	targa[1] = '_blank';
	adsIDs[1] = -1;
	text[2] = 'Tweets \'fundamental to democracy\'';
	header[2] = '';
	linka[2] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8563109.stm';
	targa[2] = '_blank';
	adsIDs[2] = -1;
	text[3] = 'Microsoft rebuffed in Word appeal';
	header[3] = '';
	linka[3] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8563852.stm';
	targa[3] = '_blank';
	adsIDs[3] = -1;
	text[4] = '\'Console killer\' launches in June';
	header[4] = '';
	linka[4] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8556874.stm';
	targa[4] = '_blank';
	adsIDs[4] = -1;
	text[5] = 'Web censure \'curbs human rights\'';
	header[5] = '';
	linka[5] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Fworld%2Famericas%2F8563084.stm';
	targa[5] = '_blank';
	adsIDs[5] = -1;
	text[6] = 'Telegraph poles to take broadband';
	header[6] = '';
	linka[6] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8562932.stm';
	targa[6] = '_blank';
	adsIDs[6] = -1;
	text[7] = 'Tories pledge \'fastest broadband\'';
	header[7] = '';
	linka[7] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Fuk_politics%2F8561836.stm';
	targa[7] = '_blank';
	adsIDs[7] = -1;
	text[8] = 'Sony shows off motion controller';
	header[8] = '';
	linka[8] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8556882.stm';
	targa[8] = '_blank';
	adsIDs[8] = -1;
	text[9] = 'dot.Rory';
	header[9] = '';
	linka[9] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2F-%2Fblogs%2Fthereporters%2Frorycellanjones%2F2010%2F03%2Fthe_digital_election_prepare.html';
	targa[9] = '_blank';
	adsIDs[9] = -1;
	text[10] = 'Farming future';
	header[10] = '';
	linka[10] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8558095.stm';
	targa[10] = '_blank';
	adsIDs[10] = -1;
	text[11] = 'Mobile clinic';
	header[11] = '';
	linka[11] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8560310.stm';
	targa[11] = '_blank';
	adsIDs[11] = -1;
	text[12] = 'Vital statistics';
	header[12] = '';
	linka[12] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8552415.stm';
	targa[12] = '_blank';
	adsIDs[12] = -1;
	text[13] = 'dot.Maggie';
	header[13] = '';
	linka[13] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2F-%2Fblogs%2Fthereporters%2Fmaggieshiels%2F2010%2F03%2Fveteran_gamers_cross_to_the_so.html';
	targa[13] = '_blank';
	adsIDs[13] = -1;
	text[14] = 'Final Fantasy';
	header[14] = '';
	linka[14] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2Fnewsbeat%2Fhi%2Ftechnology%2Fnewsid_10050000%2Fnewsid_10059400%2F10059481.stm';
	targa[14] = '_blank';
	adsIDs[14] = -1;
	text[15] = 'Mobile phone allows boss to snoop';
	header[15] = '';
	linka[15] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8559683.stm';
	targa[15] = '_blank';
	adsIDs[15] = -1;
	text[16] = 'Internet up for Nobel Peace Prize';
	header[16] = '';
	linka[16] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8560469.stm';
	targa[16] = '_blank';
	adsIDs[16] = -1;
	text[17] = 'Facebook calls for \'iconic games\'';
	header[17] = '';
	linka[17] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8559014.stm';
	targa[17] = '_blank';
	adsIDs[17] = -1;
	text[18] = 'File-sharing sanctions \'unfair\'';
	header[18] = '';
	linka[18] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8559059.stm';
	targa[18] = '_blank';
	adsIDs[18] = -1;
	text[19] = 'Hard drive evolution could hit XP';
	header[19] = '';
	linka[19] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8557144.stm';
	targa[19] = '_blank';
	adsIDs[19] = -1;
	text[20] = 'Porn domain name plan revived';
	header[20] = '';
	linka[20] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8556364.stm';
	targa[20] = '_blank';
	adsIDs[20] = -1;
	text[21] = 'Nanotech \'fuse\' for novel battery';
	header[21] = '';
	linka[21] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Fsci%2Ftech%2F8556656.stm';
	targa[21] = '_blank';
	adsIDs[21] = -1;
	text[22] = 'Banking fraud \'moves to internet\'';
	header[22] = '';
	linka[22] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Fbusiness%2F8558535.stm';
	targa[22] = '_blank';
	adsIDs[22] = -1;
	text[23] = 'Has copyright gone too far?';
	header[23] = '';
	linka[23] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8544935.stm';
	targa[23] = '_blank';
	adsIDs[23] = -1;
	text[24] = 'Open society and open systems';
	header[24] = '';
	linka[24] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8493006.stm';
	targa[24] = '_blank';
	adsIDs[24] = -1;
	text[25] = 'The past is the future for tech';
	header[25] = '';
	linka[25] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8436124.stm';
	targa[25] = '_blank';
	adsIDs[25] = -1;
	text[26] = 'The media and the message';
	header[26] = '';
	linka[26] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8414725.stm';
	targa[26] = '_blank';
	adsIDs[26] = -1;
	text[27] = 'Sun spotters protect the Earth';
	header[27] = '';
	linka[27] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8552471.stm';
	targa[27] = '_blank';
	adsIDs[27] = -1;
	text[28] = 'Naples\' online \'ethical\' city';
	header[28] = '';
	linka[28] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Ftechnology%2F8538761.stm';
	targa[28] = '_blank';
	adsIDs[28] = -1;
	text[29] = 'Will people pay for net news?';
	header[29] = '';
	linka[29] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Fprogrammes%2Fclick_online%2F8537519.stm';
	targa[29] = '_blank';
	adsIDs[29] = -1;
	text[30] = 'Are all bits created equal?';
	header[30] = '';
	linka[30] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2F-%2F1%2Fhi%2Fprogrammes%2Fclick_online%2F8512843.stm';
	targa[30] = '_blank';
	adsIDs[30] = -1;
	text[31] = 'Digital Revolution';
	header[31] = '';
	linka[31] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2F-%2Fblogs%2Fdigitalrevolution%2F';
	targa[31] = '_blank';
	adsIDs[31] = -1;
	text[32] = 'Internet Blog';
	header[32] = '';
	linka[32] = 'http://www.harrisonsdirect.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2F-%2Fblogs%2Fbbcinternet%2Findex.html%3Fscope%3Dglobal%26amp%3Bsurvey%3Dno%26amp%3Bsurveyname%3D2009q3%26amp%3Bsite%3Dbbcinternetblog%26amp%3Burl%3Dhttp%3A%2F%2Fwww.bbc.co.uk%2Fblogs%2Fbbcinternet%2Findex.html%26amp%3Bjs%3Dyes%26amp%3Buid%3D041a65aabebd60df3609bd6c0137e29db432b6be50b0c194e41faa6acd6f88bf';
	targa[32] = '_blank';
	adsIDs[32] = -1;

var
	divtext = new Array(),
	divh = new Array(),
	objst = new Array(),
	objs = new Array(),
	objsh = new Array(),
	IE4B = false,
	NS4B=false,
	NS6B=false,
	OP5B=false,
	NS4B = ((document.layers) ? true : false);
	IE4B = ((document.all) ? true : false);
	NS6B = ((document.getElementById) && (!IE4B)) ? true : false;
	uagent = window.navigator.userAgent.toLowerCase();
	IE5=false;
	IE4=false;
	IEold=false;
	IE5=(uagent.indexOf('msie 5.0') != -1)?true:false;
	IE4=(uagent.indexOf('msie 4') != -1)?true:false;
	if (IE5 || IE4){
		IEold=true;
	}

	OP5B = (uagent.indexOf('opera') != -1) ? true : false;
	
	if (OP5B == true) {
		IE4B=false;
		NS6B=true;
	}

	if (NS6B == true) {
		IE4B=false;
	}

var
	ns6obj	= null,
	headlineTimer = 0,
	str2	= '',
	msgw,
	msgh,
	mc=0,
	say		= 0,
	onceki	= 0;
	
	msgw = 750-0;
	mc = text.length;
	onceki = mc - 1;
	strpos = '';
	strvis = '';
	strpadding = '';
	strpadding2 ='';
	nsdiv='';
	nstheight = theight-borderw-borderw;
	nst2width = 750-borderw-borderw;
	pad_top = pad_top-borderw + 1;

	if (pad_top < 0) {
		pad_top=0;
	}
	
	pad_top2 = pad_top2-borderw;

	if (pad_top2 < 0) {
		pad_top2 = 0;
	}

	if (IE4B) {
		strpos = 'position:absolute;';
		strvis = '';
		strpadding = 'padding-top:' + pad_top + 'px;padding-left:' + pad_left + 'px;';
		strpadding2 = 'padding-top:' + pad_top2 + 'px;padding-left:' + pad_left2 + 'px;';

	} else if (NS6B) {
		strpos = 'position:absolute;';
		strvis = 'visibility:hidden;';
		strpadding = 'padding-top:' + pad_top + 'px;padding-left:' + pad_left + 'px;';
		strpadding2 = 'padding-top:' + pad_top2 + 'px;padding-left:' + pad_left2 + 'px;';
	}

	divtev1 = ' onmouseover="mdivmo(';
	divtev2 = ')" onmouseout ="restime(';
	divtev3 = ')" onclick="butclick(';
	divtev4 = ')"';

	for (i = 0; i < mc; i++) {
		if(IE4B) {
			divtext[i] = '<div id=d' + i + ' onmouseover="mdivmo(' + i +
				')" onmouseout ="restime(' + i + ')" style="' + strpos + strvis + strpadding +
				' left:' + 0 + '; top:0; width:500px; height:' + theight +
				'; overflow-y:hidden;text-align: ' + text_alignt + ';cursor: default;">';

		} else if(NS6B) {
			divtext[i] = '<div id=d' + i + ' onmouseover="mdivmo(' + i + ')" onmouseout ="restime(' + i +
				')" style="' + strpos + strvis + 'background:' + bgcol +
				'; COLOR: ' + txtcol + '; ' + strpadding + ' left: spage.left; top: spage.top; height:' +
				nstheight + ';' + 'margin:0px; overflow-y:hidden;text-align:' + text_alignt + ';cursor: default;">';
		}
	}

	function mdivmo(gnum) {
		if (NS6B)	{
			if (linka[gnum] != '') {
				objs[onceki].style.color = txthicol;
				objs[onceki].style.cursor = 'pointer';
				window.status = '' + linka[gnum];
			}
		}
	}

	function restime(gnum2) {
		if (IE4B) {
			objd = eval('d' + gnum2);
			objd.style.color = txtcol;
			window.status = '';
		} else if(NS6B) {
			objs[onceki].style.color = txtcol;
			window.status = '';
		}
	}

	function butclick(gnum3) {
		if (targa[gnum3] == '') {
			targa[gnum3] = '_self';
		}

		if (IE4B || NS6B) {
			window.location = linka[gnum3];
		}
	}

	if (IE4B) {
	} else if (NS6B) {
		str2='';

		for(i = 0; i < mc; i++) {
			if (bAdMode) {
				str2 = str2 + divtext[i] + '<A onClick="this.href = \'/common/ads-statistics.html?adsID=' + adsIDs[i] + '\'; return true;" class=headline href="' + linka[i] + '">' + text[i] + '</a></div>';
			} else {
				str2 = str2 + divtext[i] + '<A class="headline"  target="_blank" href="' + linka[i] + '">' + text[i] + '</a></div>';
			}
		}
	} else if(NS4B) {
		document.write('<ilayer id="spagelayer" name="spagelayer" width="' + 750 + '" height="' + theight +
			'"></ilayer>');
	}

	function dotrans() 
	{
		if (document.getElementById('spage'))
		{
			if (IE4B) {
				try {
					if (IEold != true) {
						spage.filters[0].apply();
					}

					if (bAdMode) {
						spage.innerHTML = '' + divtext[say] + '<A onClick="this.href = \'/common/ads-statistics.html?adsID=' + adsIDs[say] + '\'; return true;" class=headline href="' + linka[say] + '">' + text[say] + '</a></div>';
					} else {
						spage.innerHTML = '' + divtext[say] + '<A class="headline" target="_blank" href="' + linka[say] + '">'+ text[say] + '</A></DIV>';
					}

					if (IEold != true) {
						spage.filters[0].play();
					}

					headlineTimer = setTimeout('dotrans()', 3000 + transtime);
				} catch (e) {
				}

			} else if (NS6B) {
				objs[say].style.color = txtcol;
				objs[say].style.visibility = 'visible';
				objs[onceki].style.visibility = 'hidden';
				onceki=say;
			
				headlineTimer = setTimeout('dotrans()', 3000);
			}

			say++;
		
			if(say>=mc) {
				say=0;
			}
		}
	}

	function dofirst() {
		var
			i=0,
			str="";

		try {
    		for (i = 0; i < mc; i++) {
    			objs[i] = document.getElementById("d" + i);
    		}
		
    		objs[0].style.visibility = "visible";
    		
    		dotrans();
    	} catch (e) {
    	}
	}

	function initte() {
		if (document.getElementById('spage'))
		{
			if (IE4B) {
				spage.style.borderStyle = "solid";
				spage.style.borderWidth = "" + borderw + "px";
				spage.style.borderColor = border_color_str;

				if (bAdMode) {
					spage.innerHTML = '' + divtext[say] + '<A onClick="this.href = \'/common/ads-statistics.html?adsID=' + adsIDs[say] + '\'; return true;" class=headline href=' + linka[say] + '>' + text[say] + '</A></DIV>';
				} else {
					spage.innerHTML = '' + divtext[say] + '<A target="_blank" class="headline" href="' + linka[say] + '">' + text[say] + '</A></DIV>';
				}
			
				say=1;

				headlineTimer = setTimeout('dotrans()', 3000);

			} else if (NS6B) {
				say = 0;
				ns6obj = document.getElementById('spage');
				ns6obj.innerHTML = str2;
				headlineTimer = setTimeout('dofirst()', 500);
			}
		}
	}

	window.onload = initte;