var vmsDelay='7000'; //how long the script will wait before scrolling next message in millisecond (1 second = 1,000 millisecond).
var vmsWidth='100%'; //the width of the scroll box.
var vmsHeight='100px'; //the height of the scroll box.
var vmsBGColor='white'; //the background color of the scroll box.
var vmsBGImage=''; //the background image of the scroll box. For example, your_image.gif.

//specifies scrolling messages here.
var vmsMsgList=new Array();
//vmsMsgList[2]="<font face='Verdana'>'CWORKS PLUS is great program we run it in the biggest mall of Al Hokair properties named Khurais Plaza'<br>-Ala'a Uddin Khattab (Al Hokair Group, Riyadh, Saudi Arabia)</font>";
vmsMsgList[0]="<font face='Verdana'>'A million thanks! This program you have created is really a life-saver for me'<br>-J.D, USA</font>";
vmsMsgList[1]="<font face='Verdana'>'I downloaded your CWorks maintenance software and so far am impressed'<br>-K.H, USA </font>";
//vmsMsgList[0]="<font face='Verdana'>'During the installation, the company was found to provide service that was good and satisfactory'<br>-A.A, Malaysia</font>";
vmsMsgList[2]="<font face='Verdana'>'Thanks for a great program'<br>-J.A.C, Puerto Rico</font>";
//vmsMsgList[4]="<font face='Verdana'>'Cworks seems to fit the bill - no one else was prepared to hand over the source code and would supply updates for a year free of charge'<br>-J.M, South Africa</font>";
//vmsMsgList[5]="<font face='Verdana'>'Congratulations for a great idea of working in an opened software'<br>-I.M, Spain </font>";
vmsMsgList[3]="<font face='Verdana'>'I find your software very interesting. I have to tell that you guys did a good job'<br>-J.L.V, USA</font>";
vmsMsgList[4]="<font face='Verdana'>'This is a very useful program'<br>-C.W, USA</font>";
//vmsMsgList[8]="<font face='Verdana'>'I found it to be quite friendly'<br>-L.Y.K, Malaysia</font>";
//vmsMsgList[9]="<font face='Verdana'>'Of the ones I have reviewed so far, your version is the simplest, least cluttered and most suitable for my target audience'<br>-J.K, Australia </font>";
//vmsMsgList[10]="<font face='Verdana'>'..we are extremely pleased with the product, and especially the customer service and support...'<br>-Matt Geisel</font>";
vmsMsgList[5]="<font face='Verdana'>'..a system for those who are without one or are unhappy with their current solution.'<br>-Maintenance Technology Magazine</font>";

//DO NOT CHANGE ANYTHING BELOW.

var vmsIE4=document.all;
var vmsDOM=document.getElementById;
i=(vmsMsgList.length>2)?2:0;

function vmsscroll(vmspDIV){
	vmsoDIV=eval(vmspDIV);
	if (parseInt(vmsoDIV.style.top)>0&&parseInt(vmsoDIV.style.top)<=5){
		vmsoDIV.style.top=0+"px";
		setTimeout("vmsscroll(vmsoDIV)",vmsDelay);
		setTimeout("vmsscroll2(vmsoDIV2)",vmsDelay);
		return;
	}
	if (parseInt(vmsoDIV.style.top)>=vmsoDIV.offsetHeight*-1){
		vmsoDIV.style.top=parseInt(vmsoDIV.style.top)-5+"px";
		setTimeout("vmsscroll(vmsoDIV)",50);
	}
	else{
		vmsoDIV.style.top=parseInt(vmsHeight)+"px";
		vmsoDIV.innerHTML=vmsMsgList[i];
		if(i==vmsMsgList.length-1){
			i=0;
		}
		else{
			i++;
		}
	}
};

function vmsscroll2(vmspDIV){
	vmsoDIV2=eval(vmspDIV);
	if (parseInt(vmsoDIV2.style.top)>0&&parseInt(vmsoDIV2.style.top)<=5){
		vmsoDIV2.style.top=0+"px";
		setTimeout("vmsscroll2(vmsoDIV2)",vmsDelay);
		setTimeout("vmsscroll(vmsoDIV1)",vmsDelay);
		return;
	};
	if (parseInt(vmsoDIV2.style.top)>=vmsoDIV2.offsetHeight*-1){
		vmsoDIV2.style.top=parseInt(vmsoDIV2.style.top)-5+"px";
		setTimeout("vmsscroll2(vmsoDIV2)",50);
	}
	else{
		vmsoDIV2.style.top=parseInt(vmsHeight)+"px";
		vmsoDIV2.innerHTML=vmsMsgList[i];
		if(i==vmsMsgList.length-1){
			i=0;
		}
		else{
			i++;	
		}
	}
};

function vmsstart(){
	vmsoDIV1=vmsIE4?VMSDIV1:document.getElementById("VMSDIV1");
	vmsoDIV2=vmsIE4?VMSDIV2:document.getElementById("VMSDIV2");
	vmsscroll(vmsoDIV1);
	vmsoDIV2.style.top=vmsHeight;
	vmsoDIV2.style.visibility='visible';
};