<!--

var FADE={
	div:null,
	content:null,
	fade:function(opa){
		FADE.opacity(opa);
		//debug("fade/opa="+opa);
		if(opa==0){
			FADE.image.src=FADE.loader.src;
			FADE.imageCounter+1>FADE.imageArray.length-1?FADE.imageCounter=0:FADE.imageCounter=FADE.imageCounter+1;
			FADE.loader.src=FADE.imageArray[FADE.imageCounter].image;
			FADE.content.innerHTML=FADE.imageArray[FADE.imageCounter].html;
			FADE.opacity(100);
			window.setTimeout("FADE.load()",FADE.timerPause);
			}
		else{
			window.setTimeout("FADE.fade("+(opa-FADE.interval)+")",FADE.timerFade);
			}
		},
	image:null,
	imageArray:[
{
"image":"/_img/home/hero-1.jpg",
"html":'<h2 class="tease">Never, ever say <span>I should have.</span></h2>'
},
{
"image":"/_img/home/hero-1.jpg",
"html":'<h1>Oregon Executive MBA</h1><h2>Educating Leaders for More Than 20 Years</h2><p>The Oregon Executive MBA is a University of Oregon degree program in partnership with Oregon State University and Portland State University. This nationally recognized program offers management-level education to high potential leaders from organizations of all sizes.</p><p class="link"><a href="/admissions/" title="Take the next step">Take the next step &gt;</a></p>'
},
{
"image":"/_img/home/hero-2.jpg",
"html":'<h2 class="tease">You are the CEO of your life. <span>Lead it.</span></h2>'
},
{
"image":"/_img/home/hero-2.jpg",
"html":'<h1>Oregon Executive MBA</h1><h2>Educating Leaders for More Than 20 Years</h2><p>The Oregon Executive MBA is a University of Oregon degree program in partnership with Oregon State University and Portland State University. This nationally recognized program offers management-level education to high potential leaders from organizations of all sizes.</p><p class="link"><a href="/admissions/" title="Take the next step">Take the next step &gt;</a></p>'
},
{
"image":"/_img/home/hero-3.jpg",
"html":'<h2 class="tease">When you stop growing, <span>you stop.</span></h2>'
},
{
"image":"/_img/home/hero-3.jpg",
"html":'<h1>Oregon Executive MBA</h1><h2>Educating Leaders for More Than 20 Years</h2><p>The Oregon Executive MBA is a University of Oregon degree program in partnership with Oregon State University and Portland State University. This nationally recognized program offers management-level education to high potential leaders from organizations of all sizes.</p><p class="link"><a href="/admissions/" title="Take the next step">Take the next step &gt;</a></p>'
}
],
	imageCounter:1,
	init:function(){
		FADE.div=$.getByClass("fade")[0];
		FADE.content=$.getById("herocontent");
		FADE.image=FADE.div.firstChild;
		FADE.loader=new Image();
		FADE.loader.src=FADE.imageArray[FADE.imageCounter].image;
		window.setTimeout("FADE.load()",FADE.timerPause);
		},
	interval:2,
	load:function(){
		if(FADE.loader.complete){
			FADE.div.style.backgroundImage="url("+FADE.loader.src+")";
			window.setTimeout("FADE.fade("+(100-FADE.interval)+")",FADE.timerFade);
			}
		else{
			window.setTimeout("FADE.load()",FADE.timerLoad);
			}
		},
	loader:null,
	opacity:function(val){
		val=(val>=100)?99.999:val;
		FADE.image.style.filter="alpha(opacity:"+val+")";
		FADE.image.style.KHTMLOpacity=val/100;
		FADE.image.style.MozOpacity=val/100;
		FADE.image.style.opacity=val/100;
		},
	timerFade:25,
	timerLoad:50,
	timerPause:3000
	}
window.onload=function(){FADE.init();}
// -->