
/*
Moving light on image script
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
var speeder = 25
var point_x = 100
var point_y = 50
var point_z = 25
var max_z = 1800
var temptimer = new Array()
var z=new Array()

if (document.all&&window.spotlight){
var x=new Array()
var direction=new Array()
var y=new Array()
if (spotlight.length==null){
spotlight[0]=document.all.spotlight
x[0]=parseInt(spotlight[0].width/2)
direction[0]="right"
y[0]=parseInt(spotlight[0].height/2)
z[0]=point_z
spotlight[0].style.filter="light"
spotlight[0].filters.light.addPoint(x[0],x[0],point_z,255,255,255,100)
}
else
for (i=0;i<spotlight.length;i++){
x[i]=parseInt(spotlight[i].width/2)
direction[i]="right"
y[i]=parseInt(spotlight[i].height/2)
z[i]=point_z
spotlight[i].style.filter="light"
spotlight[i].filters.light.addPoint(x[i],y[i],point_z,255,255,255,100)
}
}

function slidelight(cur){
spotlight[cur].filters.light.MoveLight(0,x[cur],y[cur],200,-1)

if (x[cur]<spotlight[cur].width+200&&direction[cur]=="right")
x[cur]+=10
else if (x[cur]>spotlight[cur].width+200){
direction[cur]="left"
x[cur]-=10
}
else if (x[cur]>-200&&x[cur]<-185){
direction[cur]="right"
x[cur]+=10
}
else{
x[cur]-=10
direction[cur]="left"
}
}


function onelight(cur){
spotlight[cur].filters.light.MoveLight(0,x[cur],y[cur],point_z,-1)

if (x[cur]<spotlight[cur].width+200&&direction[cur]=="right"){
x[cur]+=10
} else {
	spotlight[cur].style.filter=""
	clearInterval(temptimer[cur]); 
	x[cur]=0
}
}

function widelight(cur){
spotlight[cur].filters.light.MoveLight(0,x[cur],y[cur],z[cur],-1)

if (z[cur]<max_z){
z[cur]+=10
} else {
	spotlight[cur].style.filter=""
	clearInterval(temptimer[cur]); 
}
}


if (document.all&&window.spotlight){
if (spotlight.length==null)
//temptimer[0] = setInterval("widelight(0)",spotlight[0].speed)
temptimer[0] = setInterval("widelight(0)",speeder)
else
for (t=0;t<spotlight.length;t++){
//var temp='temptimer['+t+'] = setInterval("widelight('+t+')",'+spotlight[t].speed+')'
var temp='temptimer['+t+'] = setInterval("widelight('+t+')",'+speeder+')'
eval(temp)
}
}

/*
Nudging text by Matthias (info@freejavascripts.f2s.com)
Modified by Dynamic Drive to function in NS6
For this script and more, visit http://www.dynamicdrive.com
*/

//configure message
var message="[NONE]"
//animate text in NS6? (0 will turn it off)v
var ns6switch=1

var ns6=document.getElementById&&!document.all
mes=new Array();
mes[0]=-1;
mes[1]=-4;
mes[2]=-7;mes[3]=-10;
mes[4]=-7;
mes[5]=-4;
mes[6]=-1;
num=0;
num2=0;
txt="";
jspeed=16
function jump0(){
	if (ns6&&!ns6switch){
	jump.innerHTML=message
	return
	}
	if(message.length > 6){
	for(i=0; i != message.length;i++){
	txt=txt+"<span style='position:relative;' id='n"+i+"'>"+message.charAt(i)+"</span>"};
	jump.innerHTML=txt;
	txt="";
	jump1a()
	}
	else{
	alert("Your message is to short")
	}
}

function jump1a(){
	jump2()
	return;
	nfinal=(document.getElementById)? document.getElementById("n0") : document.all.n0
	nfinal.style.left=-num2;
	if(num2 != 9){
	num2=num2+3;
	setTimeout("jump1a()",jspeed)
	}
	else{
	jump1b()
	}
}

function jump1b(){
	nfinal.style.left=-num2;
	if(num2 != 0){num2=num2-3;
	setTimeout("jump1b()",jspeed)
	}
	else{
	jump2()
	}
}

function jump2(){
	txt="";
	for(i=0;i != message.length;i++){
	if(i+num > -1 && i+num < 7){
	txt=txt+"<span style='position:relative;top:"+mes[i+num]+"'>"+message.charAt(i)+"</span>"
	}
	else{txt=txt+"<span>"+message.charAt(i)+"</span>"}
	}
	jump.innerHTML=txt;
	txt="";
	if(num != (-message.length)){
	num--;
	setTimeout("jump2()",jspeed)}
	else{num=0;
	setTimeout("jump0()",1500)}
}

function startjump(){
if (document.all||document.getElementById){
jump=(document.getElementById)? document.getElementById("jumpx") : document.all.jumpx
if(message=="[NONE]")message=jump.innerHTML;
jump0()
}
}

startjump()


