//Validate
function Validate(form)	{
   if (form.username.value.length==0)
   {
      alert("You must provide your name in order for us to process this request!");
      form.username.focus();
      return (false);
   }
   if (form.email.value.length==0)
   {
      alert("Please provide your email!");
      form.email.value.focus();
      return (false);
   }
   if (form.address.value.length==0)
   {
      alert("Please provide a URL");
      form.address.focus();
      return (false);
   }
   if (form.name.value.length==0)
   {
      alert("Please provide a site name");
      form.name.focus();
      return (false);
   }
   if (form.descrip.value.length==0)
   {
      alert("Please provide a site description");
      form.descrip.focus();
      return (false);
   }
 } 
 
// Flashing
var flashlinks=new Array()

function changelinkcolor(){
for (i=0; i< flashlinks.length; i++){
var flashtype=document.getElementById? flashlinks[i].getAttribute("flashtype")*1 : flashlinks[i].flashtype*1
var flashcolor=document.getElementById? flashlinks[i].getAttribute("flashcolor") : flashlinks[i].flashcolor
if (flashtype==0){
if (flashlinks[i].style.color!=flashcolor)
flashlinks[i].style.color=flashcolor
else
flashlinks[i].style.color=''
}
else if (flashtype==1){
if (flashlinks[i].style.backgroundColor!=flashcolor)
flashlinks[i].style.backgroundColor=flashcolor
else
flashlinks[i].style.backgroundColor=''
}
}
}

function init(){
var i=0
if (document.all){
while (eval("document.all.flashlink"+i)!=null){
flashlinks[i]= eval("document.all.flashlink"+i)
i++
} 
}
else if (document.getElementById){
while (document.getElementById("flashlink"+i)!=null){
flashlinks[i]= document.getElementById("flashlink"+i)
i++
}
}
setInterval("changelinkcolor()", 1000)
}

//	Highslide
if (window.addEventListener)
window.addEventListener("load", init, false)
else if (window.attachEvent)
window.attachEvent("onload", init)
else if (document.all)
window.onload=init

	//	hs.graphicsDir = 'highslide/graphics/';
	hs.graphicsDir = 'highslide/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'glossy-dark';
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.75;
	
	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: true,
		overlayOptions: {
			opacity: .3,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});