

//Speed the news text will scroll. 1 is really fast, 1000 is really slow
var ScrollSpeed = 60;

//Enter the html text of the news items. ***Important*** any double quotes must be preceeded by a \. For example \"Double Quotes\"
var arNewsItem = new Array()

//*** to add a new news release, copy and paste then replace
arNewsItem[0] = "<a href=\"#\">&nbsp;</a>"
arNewsItem[1] = "<A href=\"#\" onClick=\"window.open('press_releases/pr66.html','ClientLogic','width=600,height=500,scrollbars'); return false;\">ClientLogic Wins STAR Award </a>"
arNewsItem[2] = "<A href=\"#\" onClick=\"window.open('articles/DDMPress091901.html','ClientLogic','width=600,height=500,scrollbars'); return false;\">ClientLogic Delivers for DDM Press</a>"
arNewsItem[3] = "<A href=\"#\" onClick=\"window.open('press_releases/pr63.html','ClientLogic','width=600,height=500,scrollbars'); return false;\">Handspring, Sony Turn to ClientLogic</a>"
arNewsItem[4] = "<A href=\"#\" onClick=\"window.open('press_releases/pr65.html','ClientLogic','width=600,height=500,scrollbars'); return false;\">Eziba Selects ClientLogic</a>"



//maxium height in pixels any news item can take up. If you exeed this number news items may overlap
var MaxNewsItemHeight = 30;

//Browser detect
var ns4 = (document.layers)? true:false
var ie4 = (document.all)? true:false
var Pause = false;
function init() {
	if (ns4) {
		Top = 0;
		for (i = 0; i < arNewsItem.length; i++) {
			eval("view_" + i + " = document.parent1Div.document.viewDiv_" + i);
			eval("view_" + i + ".top=" + Top);
			Top = Top + MaxNewsItemHeight;
			}
	}
	if (ie4) {
		Top = 0;
		for (i = 0; i < arNewsItem.length; i++) {
			eval("view_" + i + " = document.all['viewDiv_" + i + "'].style");
			eval("view_" + i + ".top=" + Top);
			Top = Top + MaxNewsItemHeight;
			}
	}
}

function ScrollDiv() {
	for (i = 0; i < arNewsItem.length; i++) {
		eval("y_pos_" + i + " = ((parseInt(view_" + i + ".top)-1) > (MaxNewsItemHeight*(arNewsItem.length/2-1))*-1) ? (parseInt(view_" + i + ".top)-1) : MaxNewsItemHeight*(arNewsItem.length/2)");
		eval("view_" + i + ".top = y_pos_" + i);
		}
	}





document.write("<style type=text/css>");
document.write("#parent1Div {position: absolute; top: 0px; left: 0px; width: 210px;	height: " +  MaxNewsItemHeight*2 + "px; clip:rect(0px 210px " + MaxNewsItemHeight*2 + "px 0px);	background-color:#ffffff; layer-background-color: #ffffff; z-index: 0;}");
var StartPos = 0;
for (i = 0; i < arNewsItem.length; i++) {
	document.write("#viewDiv_" + i + " {position: absolute;	top: " + StartPos + "px; left: 0px;width: 210px;height: " + MaxNewsItemHeight + "px; clip:rect(0px 210px " + MaxNewsItemHeight + "px 0px); background-color:#ffffff;layer-background-color: #ffffff;z-index:0;}");
	StartPos = StartPos + MaxNewsItemHeight;
	}
document.write("</style>");



