//Random iframe content- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, and Terms Of use, visit http://dynamicdrive.com
//Used in sidebar
function random_iframe(){
	if (ie||dom){
		if (document.getElementById("dynstuff")){
		var iframeobj=document.getElementById? document.getElementById("dynstuff") : document.all.dynstuff
		iframeobj.src=randomcontent[Math.floor(Math.random()*randomcontent.length)]
		}
	}
}

var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
var iframeprops='width=200 height="100%" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'

var randomcontent=new Array()
	randomcontent[0]="featcoop_01.html"
	randomcontent[1]="featcoop_02.html"
	randomcontent[2]="featcoop_03.html"
	randomcontent[3]="featcoop_04.html"
	randomcontent[4]="featnews_01.html"
	randomcontent[5]="featnews_02.html"
	randomcontent[6]="featnews_03.html"
	randomcontent[7]="featnews_04.html"
	randomcontent[8]="featserv_01.html"
	randomcontent[9]="featserv_02.html"
	randomcontent[10]="featserv_03.html"
	randomcontent[11]="featserv_04.html"
	randomcontent[12]="featstaff_01.html"
	randomcontent[13]="featstaff_02.html"
	randomcontent[14]="featstaff_03.html"
	randomcontent[15]="featstaff_04.html"

// SimpleSwap by Jehiah Czebotar
// Version 1.1 - June 10, 2005
// Distributed under Creative Commons
// http://jehiah.com/archive/simple-swap
// used on header images

function SimpleSwap(el,which){
  el.src=el.getAttribute(which || "origsrc");
}

function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
      
    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};

window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup(); random_iframe()}


