
function popItN(url,name,wide,high) {
xposition = (screen.width - wide) / 2;
yposition = (screen.height - high) / 2;
if (yposition > 75) {yposition = yposition - 75;}
else if (yposition <= 75 && yposition > 40) {yposition = yposition - 40;}
specs="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=" + wide + ",height=" + high + ",screenx=" + xposition + ",screeny=" + yposition + ",left=" + xposition + ",top=" + yposition;
window.open(url,name,specs);
}
function popItC(url,name) {
window.open(url,name,"toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=no,resizable=no,width=304,height=300,screenX=323,screenY=105,left=323,top=105");
}
function loaded() {ploaded = 1;}
function show(obj) {eval("document." + coll + obj + styleObj).visibility = "visible"}
function hide(obj) {eval("document." + coll + obj + styleObj).visibility = "hidden"}
function hideNews() {hide('bar');hide('up');hide('down');hide('drag');hide('ruler');hide('contentClip');hide('newsnav');hide('frmwrk');hide('newsbg');}
function showNews() {show('newsbg');show('frmwrk');show('newsnav');show('bar');show('up');show('down');show('drag');show('ruler');show('contentClip');}
function popIt(url,name) {window.open(url,name,"toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600");}
function showDir() {show('dir'); setTimeout("hide('dir')",4500);}
function firstDir() {firstDirID = setInterval("showDir()",10000);}
function MakeImageArray(n) {
	this.length = n
  for (var i = 0; i<=n; i++) {
  	this[i] = new Image()
  }
  return this
}
function mover(lay,num,Name) {
	if (ns) document[lay].document.images[Name].src = over[num].src;
	else if (ie) document.all[lay].document.images[Name].src = over[num].src;
	else document.images[Name].src = over[num].src;
}
function mout(lay,num,Name) {
	if (ns) document[lay].document.images[Name].src = off[num].src;
	else if (ie) document.all[lay].document.images[Name].src = off[num].src;
	else document.images[Name].src = off[num].src;
}
function shiftTo(obj, x, y) {
	if (ploaded == 0) {alert('Please wait for page to finish loading.');}
	else {
		var shiftToObj = eval("document." + coll + obj + styleObj);
		if (ns) {
			shiftToObj.moveTo(x,y)
		}
		else if (ie) {
			shiftToObj.pixelLeft = x;
		}
		else {
			document.getElementById(obj).style.left = x;
		}
		updatePage();
	}
}
function slideTo(item,num) {
var numToMove;
booty = parseInt(eval("document." + coll + item + styleObj + leftProp));
v2 = parseInt(v2);
if (booty != v2) {
	numToMove = parseFloat((booty - v2) * .1);
	if (numToMove > 0) { numToMove = Math.ceil(numToMove); }
	else { numToMove = Math.floor(numToMove); }
	if (ns) {
		eval("document." + item).left -= numToMove;
	}
	else if (ie) {
		eval("document." + coll + item + styleObj).pixelLeft -= numToMove;
	}
	else {
		newPos = parseInt(document.getElementById(item).style.left) - numToMove;
		document.getElementById(item).style.left = newPos;
	}
}
else {
	clearInterval(eval("slidey" + num));
	}
}
function shiftBy(obj, deltaX, deltaY) {
	if (ploaded == 0) {alert('Please wait for page to finish loading.');}
	else {
		if (parseInt(eval("document." + coll + "logos" + styleObj + leftProp)) == 375 && deltaX == 175) {showDir(); clearInterval(firstDirID);}
		else if (parseInt(eval("document." + coll + "logos" + styleObj + leftProp)) == -675 && deltaX == -175) {}
		else {
		var shiftObj = eval("document." + coll + obj + styleObj);
		if (ns) {
			shiftObj.moveBy(deltaX, deltaY) } 
		else if (ie) {
			shiftObj.pixelLeft += deltaX;
			shiftObj.pixelTop += deltaY }
		else {
			newPos = parseInt(document.getElementById('logos').style.left) + deltaX;
			document.getElementById('logos').style.left = newPos;
		}
		updatePage();
		}
	}
}
var dotGroup = new Array("n6", "n5", "n4", "n3", "n2", "n1", "c", "p1", "p2", "p3", "p4", "p5", "p6");
var selGroup = new Array("sel01b", "sel02b", "sel03b", "sel04b", "sel05b", "sel06b");
var textGroup = new Array("sel01txt", "sel02txt", "sel03txt", "sel04txt", "sel05txt", "sel06txt");
function hideAll() {
	for(var i = 0; i < dotGroup.length; i++) { hide(dotGroup[i]) }
	hideEm();
}
function hideEm() {
	hide(gal + "gallery");
	hide('sel00txt');
	hide('subnav2');
	for(var i = 0; i < selGroup.length; i++) {
		hide(selGroup[i]);
		hide(textGroup[i]);
	}
}
function ieHack() {if (ie) {hideEm();show(gal + "gallery");show('sel00txt');}}
function updatePage() {
	hide('dir'); clearInterval(firstDirID);
	if (parseInt(eval("document." + coll + "logos" + styleObj).left) == 375) {
		hideAll();
		show('p1');show('p2');show('p3');show('p4');show('p5');show('p6');
		show(gal + "gallery");show('sel00txt');
		popVar = 0;
	}
	else if (parseInt(eval("document." + coll + "logos" + styleObj).left) == 200) {
		hideAll();
		show('c');show('p1');show('p2');show('p3');show('p4');show('p5');
		show('sel01b');show('sel01txt');
		slidey1 = window.setInterval("slideTo('sel01txt','1')",1);
		show('subnav2');
		popVar = 1;
	}
	else if (parseInt(eval("document." + coll + "logos" + styleObj).left) == 25) {
		hideAll();
		show('n1');show('c');show('p1');show('p2');show('p3');show('p4');
		show('sel02b');show('sel02txt');
		slidey2 = window.setInterval("slideTo('sel02txt','2')",1);
		show('subnav2');
		popVar = 2;
	}
	else if (parseInt(eval("document." + coll + "logos" + styleObj).left) == -150) {
		hideAll();
		show('n1');show('n2');show('c');show('p1');show('p2');show('p3');
		show('sel03b');show('sel03txt');
		slidey3 = window.setInterval("slideTo('sel03txt','3')",1);
		show('subnav2');
		popVar = 3;
	}
	else if (parseInt(eval("document." + coll + "logos" + styleObj).left) == -325) {
		hideAll();
		show('n1');show('n2');show('n3');show('c');show('p1');show('p2');
		show('sel04b');show('sel04txt');
		slidey4 = window.setInterval("slideTo('sel04txt','4')",1);
		show('subnav2');
		popVar = 4;
	}
	else if (parseInt(eval("document." + coll + "logos" + styleObj).left) == -500) {
		hideAll();
		show('n1');show('n2');show('n3');show('n4');show('c');show('p1');
		show('sel05b');show('sel05txt');
		slidey5 = window.setInterval("slideTo('sel05txt','5')",1);
		show('subnav2');
		popVar = 5;
	}
	else if (parseInt(eval("document." + coll + "logos" + styleObj).left) == -675) {
		hideAll();
		show('n1');show('n2');show('n3');show('n4');show('n5');show('c');
		show('sel06b');show('sel06txt');
		slidey6 = window.setInterval("slideTo('sel06txt','6')",1);
		popVar = 6;
	}
}