// Newscorner 1
function dC(c,cc)
{
	var bgcolor = '#F3F3F3';
	var colspan = '';
	if (cc) { var colspan = 'colspan='+cc; }
	if (c == 0) { return '<td '+colspan+' style="width:1px;height:1px;"></td>'; }
	else if (c == 100) { return '<td '+colspan+' style="background-color:'+bgcolor+';width:1px;height:1px;"></td>'; }
	else { return '<td '+colspan+' style="background-color:'+bgcolor+';width:1px;height:1px;filter:alpha(opacity='+c+');"></td>'; }
}
function dL(l)
{
	return '<tr>\n'+l+'\n</tr>\n';
}
function drawCorner ()
{
	var drawHTML = '';
	drawHTML += dL(dC(0)+dC(18)+dC(38)+dC(61)+dC(85)+dC(100,5));
	drawHTML += dL(dC(0,4)+dC(18)+dC(61)+dC(100,4));
	drawHTML += dL(dC(0,6)+dC(38)+dC(93)+dC(100,2));
	drawHTML += dL(dC(0,7)+dC(38)+dC(100)+dC(100));
	drawHTML += dL(dC(0,8)+dC(61)+dC(100));
	drawHTML += dL(dC(0,8)+dC(18)+dC(93));
	drawHTML += dL(dC(0,9)+dC(61));
	drawHTML += dL(dC(0,9)+dC(38));
	drawHTML += dL(dC(0,9)+dC(18));
	drawHTML += dL(dC(0)+dC(0)+dC(0)+dC(0)+dC(0)+dC(0)+dC(0)+dC(0)+dC(0)+dC(0));
	document.write('<table width="10" height="10" border="0" cellspacing="0" cellpadding="0">\n'+drawHTML+'</table>\n');
}
// Newscorner 0


// Newsticker 1
var newslist=new Array();
var newslistIdx = 0;
var cnt=0;
var curr = "";
var i=-1;
function newsticker()
{
  if (i < newslist[cnt][0].length - 1)
  {
    i++;
    temp1 = newslist[cnt][0];
    temp1 = temp1.split('');
    curr = curr+temp1[i];
    temp2 = newslist[cnt][1];
	newsData = "<a href='"+temp2+"' class='nwslnk1' style='color:#333399;font-weight:bold;'>"+curr+"</a>";
	if(document.getElementById) document.getElementById("mtxt").innerHTML = newsData;
	else if(document.all) document.all.mtxt.innerHTML = newsData;
    setTimeout('newsticker()',10)
    return;
  }
  i = -1; curr = "";
  if (cnt<newslist.length-1)
    cnt++;
  else
    cnt=0;
  setTimeout('newsticker()',5000)
}

function getTop(name)
{
	if(document.getElementById) return document.getElementById(name).offsetTop;
	else if(document.all) return document.all.name.offsetTop;
}
function setTop(name,top)
{
	if(document.getElementById) document.getElementById(name).style.top = top;
	else if(document.all) document.all.name.style.top = top;
}

function syncTop()
{
	setTop('mtxt',getTop('mtxtPos'));
}


// Newsticker 0
