//copyright www.pldproductions.com 2003
pic1up=new Image(100,100);
pic1up.src="images/wfront_up_left_a.jpg";
pic1down=new Image(100,100);
pic1down.src="images/wfront_up_left.jpg";
pic2up=new Image(100,100);
pic2up.src="images/wfront_up_rt_a.jpg";
pic2down=new Image(100,100);
pic2down.src="images/wfront_up_rt.jpg";
pic3up=new Image(100,100);
pic3up.src="images/wfront_down_left_a.jpg";
pic3down=new Image(100,100);
pic3down.src="images/wfront_down_left.jpg";
pic4up=new Image(100,100);
pic4up.src="images/wfront_down_rt_a.jpg";
pic4down=new Image(100,100);
pic4down.src="images/wfront_down_rt.jpg";

function swapImg(homePic, imgNam){
swapper=document.images[homePic];
swapper.src=imgNam.src;
}

var content;
content="Latest from PLD...";
var text1;
text1="Small business - on a tight budget?          Call for our latest pricing on low cost two page brochure sites.";
var text2;
text2="Would you like a site you can update yourself with no technical knowledge?  Give us a call and ask about PLD content management.";
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("jsPanel");
if(counter2<(tester+1)){
newchar=chars[counter2];
charcachespacer=charcache+spacer;
charcache=charcache+newchar;
if(counter2==tester){
status=0;
setTimeout("cleaner()",3*1000);
}
if(status==0){
ticktext.firstChild.nodeValue=charcache;
}else{
ticktext.firstChild.nodeValue=charcachespacer;
}
counter2++;
}
}


function ticker(){
makeArray();
timer();
}

function trigger(){
test=setInterval("printer()",100);
}

function cleaner(){
clearInterval(test);
ticktext=document.getElementById("jsPanel");
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("jsPanel");
ticktext.style.color="#52658A";
ticktext.firstChild.nodeValue=">>PLD latest>>";
setTimeout("trigger()",2*1000);
}

function formcheck(){

username=document.login.username;
password=document.login.password;


if(username.value==""){
alert("Please complete the username field");
username.focus();
return false;
}
if(password.value==""){
alert("Please complete the password field");
password.focus();
return false;
}
}