function roll_over(img_name, img_src)
{
 document[img_name].src = img_src;
 }

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function TabShow(TabName)
{
	document.getElementById(TabName).style.display="inline";
}

function TabHide(TabName)
{
	document.getElementById(TabName).style.display="none";
}

function expshow(showtab,tabno,n)
{
	for (i=1;i<=n;i++)
	{
		if(i==tabno)
		{
			document.getElementById(showtab+i).style.display="inline";
		}
		else 
		{
			document.getElementById(showtab+i).style.display="none";
		}
	}	
}



function ContactFormchk()
{	
	if(document.ContactForm.Name.value=="Name")
		{
			alert("Please enter Name");
			document.ContactForm.Name.focus();	
			return false;
		}
		
	if(document.ContactForm.Email.value=="Email")
		{
			alert("Please enter Email Address");
			document.ContactForm.Email.focus();	
			return false;
		}	
			
	if(document.ContactForm.Phone.value=="Phone Number")
		{
			alert("Please enter Phone Number");
			document.ContactForm.Phone.focus();	
			return false;
		}		
		
/*			
	if(document.ContactForm.Questions.value=="Questions? / Comments")
		{
			alert("Please enter Questions? / Comments");
			document.ContactForm.Questions.focus();	
			return false;
		}	*/
		
return true;
}
 


function slideSwitch() {
var $active = $('#clients IMG.active');

if ( $active.length == 0 ) $active = $('#clients IMG:last');
	
	var $next = $active.next().length ? $active.next()
	: $('#clients IMG:first');
	$active.addClass('last-active');
	$next.css({opacity: 0.0})
	.addClass('active')
	.animate({opacity: 1.0}, 1000, function() {
	$active.removeClass('active last-active');
});
}


$(function() {
	setInterval( "slideSwitch()", 2000 );
});

