<!--


function pageHeight() {
  var myWidth = 0, myHeight = 0;

  if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
	myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
	myHeight = document.body.clientHeight;
  }
  //window.alert( 'Height = ' + myHeight );
  return myHeight;
}

//Script: http://www.saila.com/attic/sandbox/set-height.html
//Sets all divs in a list to the height of the highest div in list
//props! Good script!

function setDivHeight() {

	var d = document;
	var box = new Array("container","menu"); //list of DIV ids

	for(x=0;x<box.length;x++) { //determine the tallest div

	  h = d.getElementById(box[x]).offsetHeight;
	  for(y=0;y<box.length;y++){
		test_h = d.getElementById(box[y]).offsetHeight;
		if(h<test_h) h = test_h;

	  }
	}

	pageH = pageHeight();

	if (h<pageH) {
		h = pageH - 9;
	}

	for(x=0;x<box.length;x++) d.getElementById(box[x]).style.height = h +"px"; //set the height of all divs to the tallest

}


/**************************************************************


	Standards Compliant Rollover Script
	Author : Daniel Nolan
	http://www.bleedingego.co.uk/webdev.php

**************************************************************/

function initRollovers() {
	if (!document.getElementById) return

	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {

		if (aImages[i].className == 'imgover') {

			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);

			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;

			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}

			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_on'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}

		}

	}
}


/**************************************************************

	Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights reserved.
	Coded by: Taewook Kang (txkang.REMOVETHIS@hotmail.com)
	Web Site: http://txkang.com
	Script featured on Dynamic Drive (http://www.dynamicdrive.com)

	Please retain this copyright notice in the script.
	License is granted to user to reuse this code on
	their own website if, and only if,
	this entire copyright notice is included.

	2004 10 08: Tom van Gemert for Trimedia Interactive Projects
	* changed naming for code clarity

***************************************************************/

//Specify affected tags. Add or remove from list:
var tags = new Array('body');

//Specify spectrum of different font sizes:
var font_sizes = new Array('76%','82%','92%');
var start_size = 0;

function text_resize(target,inc) {

	if (!document.getElementById) return;
	var d = document;
	var cEl = null;
	var cTags;

	sz = inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 2 ) sz = 2;

	if (!(cEl = d.getElementById(target))) {
		cEl = d.getElementsByTagName(target)[0];
	}

	cEl.style.fontSize = font_sizes[sz];

	for (i = 0; i < tags.length; i++) {
		cTags = cEl.getElementsByTagName(tags[i]);
		for (j = 0; j < cTags.length; j++) {
			cTags[j].style.fontSize = font_sizes[sz];
		}
	}

}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  myWin = open(theURL,winName,features);
  myWin.focus();
}


function openImgWin(rte,file,window) {

     document.forms[0].rte.value = rte;
     var mode = '0';

     msgWindow=open('',window,'status=0,scrollbars=yes,resizable=no,menubar=no,top=10,left=385,width=530,height=500');

     msgWindow.location.href = file;
     if (msgWindow.opener == null) msgWindow.opener = self;
	 msgWindow.focus();

}

//-->
