var rolls = new Array(5);
rolls[0] = new Image();
rolls[0].src = "/dawgdaze/images/browse_over.gif";
rolls[1] = new Image();
rolls[1].src = "/dawgdaze/images/contact_over.gif";
rolls[2] = new Image();
rolls[2].src = "/dawgdaze/images/home_over.gif";
rolls[3] = new Image();
rolls[3].src = "/dawgdaze/images/participate_over.gif";
rolls[4] = new Image();
rolls[4].src = "/dawgdaze/images/students_over.gif";

rolls[5] = new Image();
rolls[5].src = "/dawgdaze/images/pagenav/students_commgath_over.gif";
rolls[6] = new Image();
rolls[6].src = "/dawgdaze/images/pagenav/students_daysvc_over.gif";
rolls[7] = new Image();
rolls[7].src = "/dawgdaze/images/pagenav/students_gethere_over.gif";
rolls[8] = new Image();
rolls[8].src = "/dawgdaze/images/pagenav/students_intro_over.gif";
rolls[9] = new Image();
rolls[9].src = "/dawgdaze/images/pagenav/students_key_over.gif";
rolls[10] = new Image();
rolls[10].src = "/dawgdaze/images/pagenav/students_leadership_over.gif";
rolls[11] = new Image();
rolls[11].src = "/dawgdaze/images/pagenav/studentsexp_over.gif";

function imgDown(name){
	var thisImg = eval("document." + name);
	thisImg.src = "/dawgdaze/images/" + name + "_over.gif";
	}
	
function imgUp(name){
	var thisImg = eval("document." + name);
	thisImg.src = "/dawgdaze/images/" + name + "_out.gif";
	}
	

function imgDown2(name){
	var thisImg = eval("document." + name);
	thisImg.src = "/dawgdaze/images/pagenav/" + name + "_over.gif";
	}
	
function imgUp2(name){
	var thisImg = eval("document." + name);
	thisImg.src = "/dawgdaze/images/pagenav/" + name + "_out.gif";
	}
	

function setAnchor(){
	document.form3.action = "form3.php#timeslot";
	}
	
function countit(){
	var formcontent=document.form2.description.value
	if(formcontent != ""){
		formcontent=formcontent.split(" ")
		document.form2.wordcount3.value=formcontent.length
		}
	else{
		document.form2.wordcount3.value="0"
		}
	}
	
function openPage(page){
	var mywin = window.open("tracks.html","thiswin","width=450,height=450,scrollbars,toolbar,resizeable");
	}
	

function getLarge(imgg,selImg){

	if(document.layers){var isNS4 = true;}
	else if(document.all && !document.getElementById){var isIE4 = true;}
	else if(document.all && document.getElementById){var isIE5 = true;}
	else if(document.getElementById){var isNS6 = true;}
	
	////// POSITIONING MENUS OFF MAIN CORE IMAGE
	var left = 0;
	var top = 0;
	
	var thisImg;
	for(var i=0; i< document.images.length; i++){
		if(document.images[i].name == imgg){
			thisImg = document.images[i];
			}
		}

	
	// NETSCAPE COMPAT
	if(thisImg.offsetParent){
		for( var posX = 0, posY = 0; thisImg.offsetParent; thisImg = thisImg.offsetParent ) {
      		posX += thisImg.offsetLeft;
      		posY += thisImg.offsetTop;
    		}
    	top = (posY);
    	left = (posX);
 		}
 	
 	// DOM COMPAT
 	else{
 		left = (thisImg.y);
 		top = (thisImg.x); 	
 		}
	
	var fromTop = (top)
	var fromLeft = (left - 135)
	
	
	if(isNS4) {

		nsObject = eval("document.layers[\"pic\"]")
		nsObject.visibility = 'show'
			
		nsObject.top = fromTop
		nsObject.left = fromLeft
		
		} 

	// IF INTERNET EXPLORER
	else if(isIE4 || isIE5) {

		ieObject = eval("document.all.pic")
		ieObject.style.visibility = 'visible'

		ieObject.style.pixelTop = fromTop 
		ieObject.style.pixelLeft = fromLeft
		
		}
		
	// IF NETSCAPE 6 (mozilla)
	else if(isNS6) {

		nsObject = eval("document.getElementById('pic').style")
		nsObject.visibility = 'visible'
		nsObject.left = fromLeft + "px"
		nsObject.top = fromTop + "px"
	
		}
	
	document.swap.src = "/dawgdaze/samples/images/" + selImg;
	
	}
	
function hide(){
	
	if(document.layers){var isNS4 = true;}
	else if(document.all && !document.getElementById){var isIE4 = true;}
	else if(document.all && document.getElementById){var isIE5 = true;}
	else if(document.getElementById){var isNS6 = true;}
	
	if(isNS4) {

		nsObject = eval("document.layers[\"pic\"]")
		nsObject.visibility = 'hide'
		
		} 

	// IF INTERNET EXPLORER
	else if(isIE4 || isIE5) {

		ieObject = eval("document.all.pic")
		ieObject.style.visibility = 'hidden'
		
		}
		
	// IF NETSCAPE 6 (mozilla)
	else if(isNS6) {

		nsObject = eval("document.getElementById('pic').style")
		nsObject.visibility = 'hidden'
	
		}

	}


function buildTableFly(){

	if(document.layers && !document.getElementById) {
		var styleString = "style='position: absolute; visibility: hide'"
		}
	else {
		var styleString = "style='position: absolute; visibility: hidden'"
		}
			
	document.write("<div id='pic' name='pic' " + styleString + ">");
	document.write("<a href=\"javascript: hide()\"><img src='pixel.gif' width='350' border='0' name='swap'></a>");
	document.write("</div>");

	}
	

function getQuote(section){

	var thisPage = document.location;
	var prnt = "<br><br><br>";
	prnt += "<p class='homequote'>\n";
	prnt += "<b class='overheard'>Overheard:</b><br><br>\n";
	
	if(section == "students"){
	
		re1 = /index.php/;
		re2 = /key.php/;
		re3 = /gethere.php/;
		re4 = /gathering.php/;
		
		if(re1.exec(thisPage)){
		
			prnt += "<span class='enlarge'>&ldquo;T</span>he first two days - that was the best part. The entertainment and concerts got me to Dawg Daze and I stayed so I could go to the other workshops - like the tour and transportation sessions.&rdquo;";
			prnt += "</p>";
			
			prnt += "<p class='homequote'>";
			prnt += "<span class='enlarge'>&ldquo;I</span> liked that it was up to me to pick what events to go to.  Nothing was forced down my throat.  It was totally voluntary and I liked the freedom to pick what I was doing.&rdquo;";
			prnt += "</p>";
			
			var show = 1;
			
			}
		
		else if(re2.exec(thisPage)){
		
			prnt += "<span class='enlarge'>&ldquo;I</span> liked the concerts and the atmosphere.  I liked just listening to music and sitting on the lawn.  It was a upbeat atmosphere.&rdquo;";
			prnt += "</p>";
			
			prnt += "<p class='homequote'>";
			prnt += "<span class='enlarge'>&ldquo;D</span>awg Daze's \"Faculty Connections\" meeting just made UW more personal for me. The faculty members aren't just faces - not just professors - they connect with you. I felt that if I had questions, I could email the faculty member about anything - even if they weren't in my major.&rdquo;";
			prnt += "</p>";
			
			prnt += "<p class='homequote'>";
			prnt += "<span class='enlarge'>&ldquo;T</span>he best thing about Dawg Daze was the Community Dinner on \"The Ave.\" It was really nice to meet people outside of the UW and it was free dinner.&rdquo;";
			prnt += "</p>";
			
			var show = 1;
			
			}
			
		else if(re3.exec(thisPage)){
		
			prnt += "<span class='enlarge'>&ldquo;I</span>t was nice just to get to know the school - the campus tour, the programs that were available, where to go if you need help.  Those things that are really essential to feeling like you are a part of the community.&rdquo;";
			prnt += "</p>";
			
			var show = 1;
			
			}
			
		else if(re4.exec(thisPage)){
		
			prnt += "<span class='enlarge'>&ldquo;T</span>he best thing about Dawg Daze was the Community Dinner on \"The Ave.\" It was really nice to meet people outside of the UW and it was free dinner.&rdquo;";
			prnt += "</p>";
			
			var show = 1;
			
			}
		
		if(show == 1){
			document.write(prnt);
			}
		
		}
		
	else if(section == "participate"){
		
		re1 = /comm_gathering.html/;
		re2 = /activities_fair.php/;
		re3 = /leadership.php/;
		re4 = /planning.html/;
		re5 = /promoting.html/;
		
		if(re1.exec(thisPage)){
		
			prnt += "<span class='enlarge'>&ldquo;T</span>he best thing about Dawg Daze was the Community Dinner on \"The Ave.\" It was really nice to meet people outside of the UW and it was free dinner.&rdquo;";
			prnt += "</p>";
			
			var show = 1;
			
			}
		
		else if(re2.exec(thisPage)){
		
			prnt += "<span class='enlarge'>&ldquo;T</span>he first thing that comes to mind is all the people at Dawg Daze. Everyone - upper classmen, faculty, freshmen, and transfer students. Everyone expects you to ask questions, so I don't feel embarrassed about asking where things are because all the other new students don't know either.&rdquo;";
			prnt += "</p>";
			
			var show = 1;
			
			}
		
		else if(re3.exec(thisPage)){
		
			prnt += "<span class='enlarge'>&ldquo;I</span>'m definitely happy that I chose the UW. I guess I'd just say that it has a really outspoken and respectful community. It is diverse and a good community to be involved in.&rdquo;";
			prnt += "</p>";
			
			prnt += "<p class='homequote'>";
			prnt += "<span class='enlarge'>&ldquo;T</span>he first thing that comes to mind is all the people at Dawg Daze. Everyone - upper classmen, faculty, freshmen, and transfer students. Everyone expects you to ask questions, so I don't feel embarrassed about asking where things are because all the other new students don't know either.&rdquo;";
			prnt += "</p>";
			
			var show = 1;
			
			}
		
		else if(re4.exec(thisPage)){
		
			prnt += "<span class='enlarge'>&ldquo;W</span>e went to the greenhouse and the guy there was really welcoming and talked to us about all the plants. So when my brother came out to visit a few weeks later, I took him there and that same guy came out and told us all about plants.&rdquo;";
			prnt += "</p>";
			
			prnt += "<p class='homequote'>";
			prnt += "<span class='enlarge'>&ldquo;T</span>he financial aid basics workshop was huge for me. That session saved me from being late with my forms. I learned about the short-term loan program and they just explained all the options in financial aid through MYUW. It was great to have all that explained.&rdquo;";
			prnt += "</p>";
			
			var show = 1;
			
			}
			
		else if(re5.exec(thisPage)){
		
			prnt += "<span class='enlarge'>&ldquo;I</span>t seemed that the UW really wanted all the freshmen to get to know the faculty... they wanted us to meet different faculty to help make college feel smaller. It seemed like the UW really cared about the students to help us feel we could approach faculty and ask them questions.&rdquo;";
			prnt += "</p>";
			
			var show = 1;
			
			}
		
		if(show == 1){
			document.write(prnt);
			
			}
		
		}
	
	}

function getCount(){
	var date = new Date("September 24, 2009");
	var now = new Date();
	var diff = date.getTime() - now.getTime();
	var days = Math.floor(diff / (1000 * 60 * 60 * 24));
	document.write(days);
	}

	
