var im=new Array();

for (var i=1;i<7;i++){

	im.push("main_f"+i+".jpg");

}

var _current=0;



function isIE(){

	return navigator.appName=="Microsoft Internet Explorer";

}



function showPic(){

	var e=document.images["myImage"];

	if(isIE()){

		e.style.filter="blendTrans(duration=1.5)";

		e.filters.blendTrans.apply();

		e.src="http://aod.launchpage.com/view/layout/images/"+im[_current];

		e.filters.blendTrans.play();

	}else{

		e.src="http://aod.launchpage.com/view/layout/images/"+im[_current];

	}

}

function next(){

	if(_current<im.length-1){

		_current++;

	}else{

		_current=0;

	}

	showPic()

}

function prev(){

	if(_current>0){

		_current--;

	}else{

		_current=im.length-1;

	}

	showPic();

}



function showNext(){

	setInterval("next()",3500);

}



function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}

function verifyForm() 
{
if (document.ContactUs.First_Name.value=="")
	{
	alert("Your First Name is Required");
	document.ContactUs.First_Name.focus();
	return false;
	}
if (document.ContactUs.Last_Name.value=="")
	{
	alert("Your Last Name is Required");
	document.ContactUs.Last_Name.focus();
	return false;
	}
if (document.ContactUs.Email.value=="")
	{
	alert("Email is Required");
	document.ContactUs.Email.focus();
	return false;
	}
if (document.ContactUs.Phone.value=="")
	{
	alert("Phone Number is Required");
	document.ContactUs.Phone.focus();
	return false;
	}
document.ContactUs.submit();
}

function popup(mylink, windowname, esteW, esteH)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else

 var w = 0, h = 0;

if (document.all) {
   /* the following is only available after onLoad */
   w = document.body.clientWidth;
   h = document.body.clientHeight;
}
else if (document.layers) {
   w = window.innerWidth;
   h = window.innerHeight;
}

var popW = esteW, popH = esteH;

var leftPos = (w-popW)/2, topPos = (h-popH)/2;

href=mylink.href;

window.open(href, windowname, 'width='+popW+', height='+popH+',top=100, left='+leftPos+', toolbar=0, location=0, directories=0, menuBar=0, scrollbars=1, resizable=1');
return false;
}


