
if (document.images) {

	//primary links
	
	abouton = new Image();
	abouton.src = "http://dev.sbcommunity.org/images/link_about_on.gif";
	aboutoff = new Image();
	aboutoff.src = "http://dev.sbcommunity.org/images/link_about.gif";
	
	lifeon = new Image();
	lifeon.src = "http://dev.sbcommunity.org/images/link_life_on.gif";
	lifeoff = new Image();
	lifeoff.src = "http://dev.sbcommunity.org/images/link_life.gif";
		
	missionson = new Image();
	missionson.src = "http://dev.sbcommunity.org/images/link_missions_on.gif";
	missionsoff = new Image();
	missionsoff.src = "http://dev.sbcommunity.org/images/link_missions.gif";
	
	eutychuson = new Image();
	eutychuson.src = "http://dev.sbcommunity.org/images/link_eutychus_on.gif";
	eutychusoff = new Image();
	eutychusoff.src = "http://dev.sbcommunity.org/images/link_eutychus.gif";
		
	youthon = new Image();
	youthon.src = "http://dev.sbcommunity.org/images/link_youth_on.gif";
	youthoff = new Image();
	youthoff.src = "http://dev.sbcommunity.org/images/link_youth.gif";
		
	childrenon = new Image();
	childrenon.src = "http://dev.sbcommunity.org/images/link_children_on.gif";
	childrenoff = new Image();
	childrenoff.src = "http://dev.sbcommunity.org/images/link_children.gif";
		
	cnon = new Image();
	cnon.src = "http://dev.sbcommunity.org/images/link_cn_on.gif";
	cnoff = new Image();
	cnoff.src = "http://dev.sbcommunity.org/images/link_cn.gif";
	
	resourceson = new Image();
	resourceson.src = "http://dev.sbcommunity.org/images/link_resources_on.gif";
	resourcesoff = new Image();
	resourcesoff.src = "http://dev.sbcommunity.org/images/link_resources.gif";

	topon = new Image();
	topon.src = "http://dev.sbcommunity.org/images/top_on.gif";
	topoff = new Image();
	topoff.src = "http://dev.sbcommunity.org/images/top_off.gif";

}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}



function openAnyWindow(url, name) {
  var l = openAnyWindow.arguments.length;
  var w = "";
  var h = "";
  var features = "";

  for (i=2; i<l; i++) {
    var param = openAnyWindow.arguments[i];
    if ( (parseInt(param) == 0) ||
      (isNaN(parseInt(param))) ) {
      features += param + ',';
    } else {
      (w == "") ? w = "width=" + param + "," :
        h = "height=" + param;
    }
  }

  features += w + h;
  var code = "popupWin = window.open(url, name";
  if (l > 2) code += ", '" + features;
  code += "')";
  eval(code);
}

