/***********************************************************
 *Copyright www.pldproductions.com                         *
 *All code written by www.pldproductions.com. It may not   *
 *be reproduced or used without written permission         *
 ***********************************************************/

		var content;
		content="\t\t >> The classified ads page is now open - sell your Z items here!";
		var text1;
		text1="\t\t >> Now available for rebuild to standard or your personal specification - a choice of two Datsun 240z\'s and two early 260z two seaters";
		var text2;
		text2="\t\t >> See Rally Car details on the rally car page and in parts sales.";
		var contTest;
		contTest=1;
		var tester;
		var charcache;
		charcache="";
		var counter;
		tester=content.length;
		var chars;
		chars = new Array();
		var counter2;
		counter2=0;
		var spacer;
		spacer="_";
		var charcachespacer;
		charchachespacer="";
		var status;
		status=0;
		var lengthArray;
		lengthArray=0;


	function makeArray(){
		counter=0;
		while(counter<(tester+1)){
		chars[counter]=content.charAt(counter);
		counter++;
		}
	}

	function printer(){
		if (status==0){status=1;}else if(status==1){status=0;}
		ticktext=document.getElementById("ticker");
		if(counter2<(tester+1)){
		newchar=chars[counter2];
		charcachespacer=charcache+spacer;
		charcache=charcache+newchar;
		if(counter2==tester){
		status=0;
		setTimeout("cleaner()",2*1000);
		}
		if(status==0){
		//ticktext.style.color="black";
		ticktext.firstChild.nodeValue=charcache;
		}else{
		//ticktext.style.color="red";
		ticktext.firstChild.nodeValue=charcachespacer;
		}
		counter2++;
		}
	}


	function ticker(){
		makeArray();
		timer();
	}

	function trigger(){
		test=setInterval("printer()",50);
	}

	function cleaner(){
		clearInterval(test);
		ticktext=document.getElementById("ticker");
		ticktext.firstChild.nodeValue="";
		if(contTest==0){contTest=1}else{contTest=0;}
		if(contTest==0){
		content=text1;
		}else{
		content=text2;
		}
		tester=0;
		charcache="";
		chars = null;
		chars = new Array();
		counter2=0;
		spacer="_";
		charchachespacer="";
		status=0;
		lengthArray=0;
		tester=content.length;
		ticker();
	}

	function timer(){
		ticktext=document.getElementById("ticker");
		ticktext.style.color="black";
		ticktext.firstChild.nodeValue="\t\t >> Auto-Active Bristol - latest news follows...";
		setTimeout("trigger()",1*1000);
	}

function pageSet(page,width,height){
var scr;
scr=screen.width;
posWinL=(scr/2)-(width/2)+"px";
var newWindow;
newWindow=window.open(page,"zzone","width="+width+",height="+height+",left="+posWinL+",top=120px,resizable=no,scrollbars=yes");
}
function closer(){
window.close();
}

