		function slide_home(){
			var img = document.getElementById('home_image');
			var src = "";
			switch(static_counter){
				case 0:
					src = "images/home_static/exibit.png";
					static_counter++;
				break;
				case 1:
					src = "images/home_static/frontb.png";
					static_counter++;
				break;
				case 2:
					src = "images/home_static/varsity.png";
					static_counter = 0;
				break;
			}
			img.src = src;
				$("img#home_image").fadeIn(750,function(){
					$("img#home_image").animate({"opacity":".99","filter":"alpha(opacity=99)"},8500,function(){
						$("img#home_image").fadeOut(750,function(){
							slide_home();
						});
					});
				});
		}
		
		function slide_banner(){
			var src = "";
			
			switch(banner_counter){
				case 0:
					src = "images/banner_pix/genesisp.png";
					banner_counter++;
				break;
				
				case 1:
					src = "images/banner_pix/otep.png";
					banner_counter++;
				break;
				
				case 2:
					src = "images/banner_pix/gilbert.png";
					banner_counter++;
				break;
				
				case 3:
					src = "images/banner_pix/ken.png";
					banner_counter++;
				break;
				
				case 4:
					src = "images/banner_pix/maricel.png";
					banner_counter++;
				break;
				
				case 5:
					src = "images/banner_pix/ray.png";
					banner_counter++;
				break;
				
				case 6:
					src = "images/banner_pix/windiel.png";
					banner_counter++;
				break;
				
				case 7:
					src = "images/banner_pix/edison.png";
					banner_counter++;
				break;
				
				case 8:
					src = "images/banner_pix/jonathan.png";
					banner_counter = 0;
				break;
			}

			var tao = document.getElementById('banner_pic');
			tao.src = src;
			//$("iframe#ifrm_loader").load(function{
				$("img#banner_pic").fadeIn(2250,function(){
					$("img#banner_pic").animate({"opacity":".99","filter":"alpha(opacity=99)"},5500,function(){
						$("img#banner_pic").fadeOut(2250,function(){
							tao.src = "";
							slide_banner();
						});
					});
				});
			//});

		}
		
		function show_photo_viewer(img,caption){
			var photo = document.getElementById('photo_itself');
			photo.src = img;
			$("div#photo_caption").html(caption);
			$("table#photo_viewer").stop(true,false).fadeIn(350,function(){
				//$("div#photo_holder").stop(true,true).animate({width:"1px",height:"1px;},250,function(){
					$("div#photo_holder").stop(true,false).animate({width:photo.width+"px"},250);
				//});
			});
		}
		
		function clear_photo_viewer(){
			$("table#photo_viewer").stop(true,true).fadeOut(350,function(){
				document.getElementById('photo_itself').src = "";
				$("div#photo_caption").html("");
			});
		}
		
		function toggle_banner(what){
			if(what == "on"){
				$("div#banner").stop(true,true).slideDown(250);
				document.getElementById("portal").setAttribute("src","banner_toggler.php?switch_it=on");
				document.getElementById("btoggle").setAttribute("onclick","toggle_banner('off')");
				document.getElementById("banner_img").setAttribute("src","images/banner_hide.jpg");
			}else{
				$("div#banner").stop(true,true).slideUp(250);
				document.getElementById("portal").setAttribute("src","banner_toggler.php?switch_it=off");
				document.getElementById("btoggle").setAttribute("onclick","toggle_banner('on')");
				document.getElementById("banner_img").setAttribute("src","images/banner_show.jpg");
			}
		}
		function flink_over(elem,type){
			elem.style.cursor = "pointer";
			if(type == "main"){
				elem.style.background = "url('images/nav_pat_over.jpg') repeat-x 0 0 transparent";
				elem.setAttribute("class","s18 b dgray down fago");
			}else if(type == "sub"){
				elem.setAttribute("class","s12 b ddgray down");
				elem.style.background = "#ababab";
			}
		}
		
		function flink_out(elem,type){
			elem.style.cursor = "arrow";
			if(type == "main"){
				elem.setAttribute("class","s18 b gray up fago");
				if(elem.getAttributeNode("id").value == "active"){
					elem.style.background = "url('images/nav_pat_over.jpg') repeat-x 0 0 transparent";
				}else{
					elem.style.background = "url('images/nav_pat.jpg') repeat-x 0 0 transparent";
				}
			}else if(type == "sub"){
				elem.setAttribute("class","s12 b gray up");
				elem.style.background = "#101010";
			}
		}
		
		function comteq_ajax(destination){
			var xmlhttp;
			if (window.XMLHttpRequest)
			{// code for IE7+, Firefox, Chrome, Opera, Safari
			xmlhttp=new XMLHttpRequest();
			}
			else
			{// code for IE6, IE5
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}

			xmlhttp.onreadystatechange=function()
			  {
			  if (xmlhttp.readyState==4 && xmlhttp.status==200)
				{
					//document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
				}
			  }
			  
			xmlhttp.open("GET",destination,true);
			xmlhttp.send();
		}
				
		function ctxt(elem,def){
			if(elem.value == def){
				elem.value = "";
			}else if(elem.value == ""){
				elem.value = def;
			}
		}
