
$(function(){$.validator.addMethod('blur',function(value,element){if(element.type=='hidden'){return true;}
return value!==element.defaultValue;},'This field is required.');$("#newsletter").validate({submitHandler:function(form){var email_address=$("#email").attr("value");$.cookie('domo_form_email',email_address,{expires:1,path:'/'});form.submit();}});var fadeItems=[$('#fade-one'),$('#fade-two'),$('#fade-three'),$('#fade-four'),$('#fade-five'),$('#fade-six')];for(var i=0,length=fadeItems.length;i<length;i++){fadeItems[i].hide().delay(i*100).fadeIn();}
var Router=Backbone.Controller.extend({routes:{'video':'displayForm','thanks':'displayThanks','asu-video':'displayAsu'},displayForm:function(){button.trigger('click');},displayAsu:function(){asuButton.trigger('click');},displayThanks:function(){$('.email_thanks').dialog({width:450,height:270,dialogClass:'domo-dialog-dark',modal:true,show:'fade',hide:'fade',beforeClose:function()
{dialog.attr('display','none');router.saveLocation();}});}});var asuButton=$('.asubutton_video'),asuDialog=$('.asu-video-dialog');asuButton.bind('click',function(e){e.preventDefault();asuDialog.dialog({width:900,height:525,dialogClass:'domo-dialog',modal:true,show:'fade',hide:'fade',beforeClose:function(){modVP.pause(true);dialog.hide();router.saveLocation();}});router.saveLocation('asu-video');return false;});var button=$('.button_video'),dialog=$('.video');button.bind('click',function(e){e.preventDefault();dialog.dialog({width:900,height:525,dialogClass:'domo-dialog',modal:true,show:'fade',hide:'fade',beforeClose:function()
{modVP.pause(true);dialog.hide();router.saveLocation();}});router.saveLocation('video');return false;});var router=new Router();Backbone.history.start();var directions=['up','down','right','left'];$('.rotator > ul').each(function(key,value){var count=1;$(value).slideshow({selector:'> li',autoPlay:true,transition:'push('+directions[Math.round(Math.random()*4)]+')',show:function(event,eventData){if(count>=(eventData.instance.element[0].getElementsByTagName('li').length-1)){eventData.instance.stop();}
count++;}});$(value).bind('click',function(){window.location='what-we-do/customers'})
$(value).css('display','block');});});

