ns4 = (document.layers)? true:false
dom = (document.all)? true:false
ie5=navigator.userAgent.indexOf('MSIE 5')>0?true:false;

var collection="";
var styleObj="";
if (dom) {
	collection="all.";
	styleObj=".style";
	}

//**********image swapping**********


// Image swapping
function on(name){
if (document.images) {
obj=eval(document.images[name]);
switcher=eval(name+"_on");
obj.src=switcher.src;
}
}

function off(name){
if (document.images) {
obj=eval(document.images[name]);
switcher=eval(name+"_off");
obj.src=switcher.src;
}
}

//**********popup window size and conditions**********


	// Everything uses this baby
function getObject(obj) {
	var theObj;
	if (typeof obj=="string") {
		theObj= eval("document." + collection + obj + styleObj);
	}
	else {
		theObj=obj;
	}
	return theObj;
}

function show(obj) {
	var theObj=getObject(obj);
	theObj.visibility='visible';
}
	
function hide(obj) {
	var theObj=getObject(obj);
	theObj.visibility='hidden';
}

function moveTo(obj,xL,yL) {
        obj.left = xL;
        obj.top = yL;
}

function popup_link(path,winName){
	//Ignore winName
	popDialog4=window.open(path,'winName4',"width=800,height=400,scrollbars=yes,resizable=yes,menubar=yes,top=10,left=30,toolbar=yes,location=yes");
	setTimeout("popDialog4.focus()",200);
}

function med_popup(path,winName){
	//Ignore winName
	popDialog3=window.open(path,'winName',"width=550,height=260,scrollbars=auto,resizable=no,menubar=no,top=10,left=30");
	setTimeout("popDialog3.focus()",200);
}
function medlarge_popup(path,winName){
	//Ignore winName
	popDialog3=window.open(path,'winName3',"width=560,height=350,scrollbars=auto,resizable=no,menubar=no,top=10,left=30");
	setTimeout("popDialog3.focus()",200);
}

function small_popup(path,winName){
	//Ignore winName
	popDialog3=window.open(path,'winName',"width=550,height=225,scrollbars=auto,resizable=no,menubar=no,top=10,left=30");
	setTimeout("popDialog3.focus()",200);
}

function large_popup(path,winName){
	//Ignore winName
	popDialog3=window.open(path,'winName3',"width=550,height=470,scrollbars=auto,resizable=no,menubar=no,top=10,left=30");
	setTimeout("popDialog3.focus()",200);
}

function medlarge_popup(path,winName){
	//Ignore winName
	popDialog3=window.open(path,'winName3',"width=550,height=400,scrollbars=auto,resizable=no,menubar=no,top=10,left=30");
	setTimeout("popDialog3.focus()",200);
}
 
function xsmall_popup(path,winName){
	//Ignore winName
	popDialog3=window.open(path,'winName',"width=250,height=220,scrollbars=no,resizable=no,menubar=no,top=10,left=30");
	setTimeout("popDialog3.focus()",200);
}

function largescroll_popup(path,winName){
	//Ignore winName
	popDialog3=window.open(path,'winName3',"width=570,height=500,scrollbars=yes,resizable=no,menubar=no,top=10,left=30");
	setTimeout("popDialog3.focus()",200);
}

function picture_popup(path,winName){
	//Ignore winName
	popDialog3=window.open(path,'winName',"width=640,height=420,scrollbars=no,resizable=no,menubar=no,top=10,left=30");
	setTimeout("popDialog3.focus()",200);
}

function resume_popup(path,winName){
	//Ignore winName
	popDialog3=window.open(path,'winName3',"width=650,height=500,scrollbars=yes,resizable=no,menubar=no,top=10,left=30");
	setTimeout("popDialog3.focus()",200);
}

function slideshow_popup(path,winName){
	//Ignore winName
	popDialog3=window.open(path,'winName',"width=710,height=600,scrollbars=no,resizable=no,menubar=no,top=10,left=30");
	setTimeout("popDialog3.focus()",200);
}