
////////////////////////////////////////////////////////////

function SetGoogleParams(width,height,format,type) {
    google_ad_client	= "pub-1103392925886085";
    google_ad_width	= width;
    google_ad_height	= height;
    google_ad_format	= format;
    google_ad_type	= type;
    google_ad_channel	= "";
    google_color_border	= "EDD9B9";		/* WAS: F0F0F0 */
    google_color_bg	= "EDD9B9";		/* WAS: FFFCEC */
    google_color_link	= "8B0000";
    google_color_text	= "000000";
    google_color_url	= "8B0000";
}

////////////////////////////////////////////////////////////

function clickclear(thisfield, defaulttext) {
    if (thisfield.value == defaulttext) {
	thisfield.value = "";
    }
}

function clickrestore(thisfield, defaulttext) {
    if (thisfield.value == "") {
	thisfield.value = defaulttext;
    }
}

////////////////////////////////////////////////////////////

/* Floating Top Bar script- © Dynamic Drive (www.dynamicdrive.com)
/* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
/* This notice must stay intact for legal use.
/* Visit http://www.dynamicdrive.com/ for full source code
/*
/* ************ MODIFIED FOR OUR USE **********************/

var startX = 850			// x offset in pixels
var startY = 5				// y offset in pixels
var verticalpos="fromtop"		// "fromtop" or "frombottom"

function iecompattest(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function staticbar(){
	barheight=document.getElementById("topbar").offsetHeight
	var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
	var d = document;
	function ml(id){
		var el=d.getElementById(id);
		el.style.visibility="visible"
		if(d.layers) el.style=el;
		el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
		el.x = startX;
		if (verticalpos=="fromtop")
			el.y = startY;
		else {
			el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
			el.y -= startY;
		}
		return el;
	}
	window.stayTopLeft=function(){
		if (verticalpos=="fromtop"){
			var pY = ns ? pageYOffset : iecompattest().scrollTop;
			ftlObj.y += (pY + startY - ftlObj.y)/8;
		}
		else {
			var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
			ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("topbar");
	stayTopLeft();
}

////////////////////////////////////////////////////////////

function PrintPage() {
    window.print()
}

function PopupWindow(url) {
    var w=850;
    var h=800;
    var args;
    args = 'width='+w +',height='+h +',left=0,top=0,screenX=0,screenY=0';
    args = args + ',resizable=1,location=1,menubar=1,toolbar=0,scrollbars=1';
    args = args + ',status=0,channelmode=0,dependent=0,directories=0,fullscreen=0';

    var win = window.open(url,'popup',args);
    win.resizeTo(w,100);
    win.resizeTo(w,h);
    win.focus();
}


////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////

window.onerror = null;
var plusImg  = new Image();
var minusImg = new Image();
plusImg.src  = "/images/plus.gif";
minusImg.src = "/images/minus.gif";
var maxID = 0

function itemHide(id) {
	var thisLevel = document.getElementById( 'item'+id );
	var thisImg   = document.getElementById( 'item'+id+'Img' );
	thisLevel.style.display = "none";
	thisImg.src = plusImg.src;
}

function itemShow(id) {
	var thisLevel = document.getElementById( 'item'+id );
	var thisImg   = document.getElementById( 'item'+id+'Img' );
 	thisLevel.style.display = "block";
	thisImg.src = minusImg.src;
}

function itemToggle(id) {
	var thisLevel = document.getElementById( 'item'+id );
	if ( thisLevel.style.display == "none") {
	    itemShow(id)
	}
	else {
	    itemHide(id)
	}
}

function itemHideAll() {
	for (var id=1; id<=maxID; id++) { itemHide(id); }
}
 
function itemShowAll() {
	for (var id=1; id<=maxID; id++) { itemShow(id); }
}

function itemSetMaxID(x) {
	maxID = x
}

function nothing() {
	return false;
}

////////////////////////////////////////////////////////////


