var slideShowPix = new Array ("pic1.jpg","pic2.jpg","pic3.jpg","pic4.jpg") 
var thisPic=0
var imgCt=4
var signal= 0;
function cycle() 
{
if (signal != 2)
                {
                {
                thisPic++
                if (thisPic == imgCt)
                {
                        thisPic = 0
            }
                
                setTimeout("cycle()",1*2000)

                document.slideShow.src = "picture/" + slideShowPix[thisPic]
                }
                
        }
}
function next12() 
{
signal = 2;
                {
                thisPic++;
                if (thisPic == imgCt)
                {
                        thisPic = 0
            }
                
                
                
                document.slideShow.src = "picture/" + slideShowPix[thisPic]
                
                
        }
}

function prev12() 
{
signal = 2;
if (thisPic == imgCt)
                {
                        thisPic = 0;
                
            }
                
                {
                if (thisPic == 0)
                {
                thisPic = 4;
                }
                thisPic= thisPic-1;
                
                
                        document.slideShow.src = "picture/" + slideShowPix[thisPic]
                
                
        }
}

function ap1(text) {
document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
if(text=='Start')
{
//alert(thisPic);
signal = 0;
cycle()
}
if(text=='Stop')
{
signal = 2;
}
}


//////////////////////////////////////////////////////////////


var Message="CHAVI IT Services Pvt Ltd";
var place=1;
function scrollIn() 
{
window.status=Message.substring(0, place);
if (place >= Message.length) 
	{
		place=1;
		window.setTimeout("scrollOut()",100); 
	} 
else 
	{
		place++;
		window.setTimeout("scrollIn()",50); 
	} 
}

function scrollOut()
{
window.status=Message.substring(place, Message.length);
if (place >= Message.length) 
	{
		place=1;
		window.setTimeout("scrollIn()", 100);
	} 
else 
	{
		place++;
		window.setTimeout("scrollOut()", 50);
   }
}



scrollIn();


////////////////////////////////////////////////////

var message="All pictures are copyright protected !";
function click(e)
{
if (document.all)
{
if (event.button == 2)
{
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;



