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] = 'CBI seeking \'targeted\' tax cuts';
	header[0] = '';
	linka[0] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17119792';
	targa[0] = '_blank';
	adsIDs[0] = -1;
	text[1] = 'Peugeot boosted by alliance talks';
	header[1] = '';
	linka[1] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17123674';
	targa[1] = '_blank';
	adsIDs[1] = -1;
	text[2] = 'HP sales fall short of forecasts';
	header[2] = '';
	linka[2] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17133898';
	targa[2] = '_blank';
	adsIDs[2] = -1;
	text[3] = 'Peacocks sold but 3,100 jobs lost';
	header[3] = '';
	linka[3] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fuk-wales-17128141';
	targa[3] = '_blank';
	adsIDs[3] = -1;
	text[4] = 'Bank members voted for £75bn QE';
	header[4] = '';
	linka[4] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17124974';
	targa[4] = '_blank';
	adsIDs[4] = -1;
	text[5] = 'Obama seeks US corporate tax cut';
	header[5] = '';
	linka[5] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fworld-us-canada-17131158';
	targa[5] = '_blank';
	adsIDs[5] = -1;
	text[6] = 'Hotels chain to create 3,000 jobs';
	header[6] = '';
	linka[6] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17130507';
	targa[6] = '_blank';
	adsIDs[6] = -1;
	text[7] = 'Greek MPs consider bailout laws';
	header[7] = '';
	linka[7] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fworld-europe-17123199';
	targa[7] = '_blank';
	adsIDs[7] = -1;
	text[8] = 'Air Asia hit by high fuel costs';
	header[8] = '';
	linka[8] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17131282';
	targa[8] = '_blank';
	adsIDs[8] = -1;
	text[9] = 'South Korea wins Navy tanker deal';
	header[9] = '';
	linka[9] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17127488';
	targa[9] = '_blank';
	adsIDs[9] = -1;
	text[10] = 'PPI payments \'hit £1.9bn in 2011\'';
	header[10] = '';
	linka[10] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17125141';
	targa[10] = '_blank';
	adsIDs[10] = -1;
	text[11] = 'Travis Perkins profits jump 37%';
	header[11] = '';
	linka[11] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17127076';
	targa[11] = '_blank';
	adsIDs[11] = -1;
	text[12] = 'EU court to rule on Acta legality';
	header[12] = '';
	linka[12] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Ftechnology-17125469';
	targa[12] = '_blank';
	adsIDs[12] = -1;
	text[13] = 'New targets for tax inspectors';
	header[13] = '';
	linka[13] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17125368';
	targa[13] = '_blank';
	adsIDs[13] = -1;
	text[14] = 'Indian call centres \'in US fraud\'';
	header[14] = '';
	linka[14] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fworld-asia-india-17126565';
	targa[14] = '_blank';
	adsIDs[14] = -1;
	text[15] = 'Nigeria rig \'may burn for months\'';
	header[15] = '';
	linka[15] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fworld-africa-17126335';
	targa[15] = '_blank';
	adsIDs[15] = -1;
	text[16] = 'Eurozone service sector shrinks';
	header[16] = '';
	linka[16] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17125061';
	targa[16] = '_blank';
	adsIDs[16] = -1;
	text[17] = 'App helps blind people send texts';
	header[17] = '';
	linka[17] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Ftechnology-17105225';
	targa[17] = '_blank';
	adsIDs[17] = -1;
	text[18] = 'Vatican to lose tax-exempt status';
	header[18] = '';
	linka[18] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17072211';
	targa[18] = '_blank';
	adsIDs[18] = -1;
	text[19] = 'Stamp price rise plans challenged';
	header[19] = '';
	linka[19] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17117276';
	targa[19] = '_blank';
	adsIDs[19] = -1;
	text[20] = 'New year drop in property sales';
	header[20] = '';
	linka[20] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17112242';
	targa[20] = '_blank';
	adsIDs[20] = -1;
	text[21] = 'Cash offer for insulation \'help\'';
	header[21] = '';
	linka[21] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17101311';
	targa[21] = '_blank';
	adsIDs[21] = -1;
	text[22] = 'UK business confidence \'growing\'';
	header[22] = '';
	linka[22] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17117623';
	targa[22] = '_blank';
	adsIDs[22] = -1;
	text[23] = 'Hungary may lose EU aid over debt';
	header[23] = '';
	linka[23] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fworld-europe-17127792';
	targa[23] = '_blank';
	adsIDs[23] = -1;
	text[24] = 'W Australia seeks own wealth fund';
	header[24] = '';
	linka[24] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17123146';
	targa[24] = '_blank';
	adsIDs[24] = -1;
	text[25] = 'Dell forecasts decline in sales';
	header[25] = '';
	linka[25] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17122014';
	targa[25] = '_blank';
	adsIDs[25] = -1;
	text[26] = 'Heathrow passengers reach record';
	header[26] = '';
	linka[26] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17123884';
	targa[26] = '_blank';
	adsIDs[26] = -1;
	text[27] = 'Megaupload founder granted bail';
	header[27] = '';
	linka[27] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17122866';
	targa[27] = '_blank';
	adsIDs[27] = -1;
	text[28] = 'Rangers \'treated fairly\' over tax';
	header[28] = '';
	linka[28] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fuk-scotland-glasgow-west-17127983';
	targa[28] = '_blank';
	adsIDs[28] = -1;
	text[29] = 'Clarke &amp; IMG settle legal dispute';
	header[29] = '';
	linka[29] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fsport%2F0%2Fcricket%2F17124031';
	targa[29] = '_blank';
	adsIDs[29] = -1;
	text[30] = 'Fans\' trust plan to buy Blackburn';
	header[30] = '';
	linka[30] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fsport%2F0%2Ffootball%2F17114798';
	targa[30] = '_blank';
	adsIDs[30] = -1;
	text[31] = 'VIDEO: PPI claim \'a lot of hard work\'';
	header[31] = '';
	linka[31] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17125767';
	targa[31] = '_blank';
	adsIDs[31] = -1;
	text[32] = 'AUDIO: The economic tide \'is coming in\'';
	header[32] = '';
	linka[32] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Ftoday%2Fhi%2Ftoday%2Fnewsid_9698000%2F9698485.stm';
	targa[32] = '_blank';
	adsIDs[32] = -1;
	text[33] = 'VIDEO: British shoe company flourishing';
	header[33] = '';
	linka[33] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17125770';
	targa[33] = '_blank';
	adsIDs[33] = -1;
	text[34] = 'VIDEO: Could business help free schools?';
	header[34] = '';
	linka[34] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fnews.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2F1%2Fhi%2Fprogrammes%2Fnewsnight%2F9698464.stm';
	targa[34] = '_blank';
	adsIDs[34] = -1;
	text[35] = 'VIDEO: Inside Apple\'s factory in China';
	header[35] = '';
	linka[35] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Ftechnology-17121978';
	targa[35] = '_blank';
	adsIDs[35] = -1;
	text[36] = 'VIDEO: CBI calls for \'targeted\' tax cuts';
	header[36] = '';
	linka[36] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fuk-17125581';
	targa[36] = '_blank';
	adsIDs[36] = -1;
	text[37] = 'AUDIO: Work experience is \'slave labour\'';
	header[37] = '';
	linka[37] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17127708';
	targa[37] = '_blank';
	adsIDs[37] = -1;
	text[38] = 'VIDEO: How smaller firms survive the recession';
	header[38] = '';
	linka[38] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fuk-politics-17098202';
	targa[38] = '_blank';
	adsIDs[38] = -1;
	text[39] = 'Biosensors measure sporting success';
	header[39] = '';
	linka[39] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17097958';
	targa[39] = '_blank';
	adsIDs[39] = -1;
	text[40] = 'US turns up heat on China solar subsidies';
	header[40] = '';
	linka[40] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17094881';
	targa[40] = '_blank';
	adsIDs[40] = -1;
	text[41] = 'Mobile money: Using your phone to transfer cash';
	header[41] = '';
	linka[41] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17115946';
	targa[41] = '_blank';
	adsIDs[41] = -1;
	text[42] = 'Analysis: Land grab or development opportunity?';
	header[42] = '';
	linka[42] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fworld-africa-17099348';
	targa[42] = '_blank';
	adsIDs[42] = -1;
	text[43] = 'Evolve and fight for sales or die';
	header[43] = '';
	linka[43] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17094491';
	targa[43] = '_blank';
	adsIDs[43] = -1;
	text[44] = 'Philippines in fresh tourism push';
	header[44] = '';
	linka[44] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fbusiness-17109166';
	targa[44] = '_blank';
	adsIDs[44] = -1;
	text[45] = 'Why are social enterprises thriving?';
	header[45] = '';
	linka[45] = 'http://wtbs.co.uk/link.html?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fgo%2Frss%2Fint%2Fnews%2F-%2Fnews%2Fuk-17104953';
	targa[45] = '_blank';
	adsIDs[45] = -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) {
				if (linka[i] != '') {
					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 onclick="return false;" class="headline" style="text-decoration: none !important; cursor: default !important;" >' + text[i] + '</a></div>';
				}
			} else {
				if (linka[i] != '') {
					str2 = str2 + divtext[i] + '<a class="headline"  target="_blank" href="' + linka[i] + '">' + text[i] + '</a></div>';
				} else {
					str2 = str2 + divtext[i] + '<a onclick="return false;" class="headline" style="text-decoration: none !important; cursor: default !important;"  target="_blank" >' + 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) {
						if (linka[say] != '') {
							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 onclick="return false;" class="headline" style="text-decoration: none !important; cursor: default !important;" >' + text[say] + '</a></div>';
						}
					} else {
						if (linka[say] != '') {
							spage.innerHTML = '' + divtext[say] + '<a class="headline" target="_blank" href="' + linka[say] + '">'+ text[say] + '</a></div>';
						} else {
							spage.innerHTML = '' + divtext[say] + '<a onclick="return false;" class="headline" style="text-decoration: none !important; cursor: default !important;"  target="_blank" >'+ 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) {
					if (linka[say] != '') {
						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 onclick="return false;" class="headline" style="text-decoration: none !important; cursor: default !important;" >' + text[say] + '</a></div>';
					}
				} else {
					if (linka[say] != '') {
						spage.innerHTML = '' + divtext[say] + '<a  target="_blank" class="headline" href="' + linka[say] + '">' + text[say] + '</a></div>';
					} else {
						spage.innerHTML = '' + divtext[say] + '<a onclick="return false;"  target="_blank" class="headline" style="text-decoration: none !important; cursor: default !important;" >' + 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;
