
n = (document.layers) ? 1:0
ie = (document.all) ? 1:0

function lmplmnp() {
	pulloutActive = 0
	if (n) {
		pullout1 = document.pulloutInterface.document.pulloutContent.document.pulloutContent1
		pullout2 = document.pulloutInterface.document.pulloutContent.document.pulloutContent2
		pullout3 = document.pulloutInterface.document.pulloutContent.document.pulloutContent3
		pullout4 = document.pulloutInterface.document.pulloutContent.document.pulloutContent4
		pullout5 = document.pulloutInterface.document.pulloutContent.document.pulloutContent5
		pullout6 = document.pulloutInterface.document.pulloutContent.document.pulloutContent6
		pullout7 = document.pulloutInterface.document.pulloutContent.document.pulloutContent7
		pullout8 = document.pulloutInterface.document.pulloutContent.document.pulloutContent8
		pullout9 = document.pulloutInterface.document.pulloutContent.document.pulloutContent9
		pullout10 = document.pulloutInterface.document.pulloutContent.document.pulloutContent10
		pullout11 = document.pulloutInterface.document.pulloutContent.document.pulloutContent11
	}
	if (ie) {
		pullout1 = pulloutContent1.style
		pullout2 = pulloutContent2.style
		pullout3 = pulloutContent3.style
		pullout4 = pulloutContent4.style
		pullout5 = pulloutContent5.style
		pullout6 = pulloutContent6.style
		pullout7 = pulloutContent7.style
		pullout8 = pulloutContent8.style
		pullout9 = pulloutContent9.style
		pullout10 = pulloutContent10.style
		pullout11 = pulloutContent11.style
	}
	pulloutShown = pullout1		// the layer that is currently shown
	pulloutShown.xpos = 0
	pulloutNew = "none"			// the layer that we will be shown next
	pulloutNew.xpos = -485
}

// Pullout Function, starts the sequence
function pullout(which) {
	if (!pulloutActive && pulloutShown != which) {
		pulloutActive = 1  // this makes it so you can't start it again until it's finished
		pulloutNew = which
		pulloutNew.xpos = -485
		pulloutLeft()
	}
}

// SOPTIONde the old layer out of view
function pulloutLeft() {
	if (pulloutShown.xpos > -485) {
		pulloutShown.xpos -= 15
		pulloutShown.left = pulloutShown.xpos
		setTimeout("pulloutLeft()",30)
	}
	else {
		hide(pulloutShown)
		show(pulloutNew)
		setTimeout("pulloutRight()",50)
	}
}

// SOPTIONde the new layer into view
function pulloutRight() {
	if (pulloutNew.xpos < 0) {
		pulloutNew.xpos += 15
		pulloutNew.left = pulloutNew.xpos
		setTimeout("pulloutRight()",30)
	}
	else {
		pulloutShown = pulloutNew
		pulloutActive = 0  // stops the sequence
	}
}

// Show/Hide Functions
function show(showobj) {
	if (n) showobj.visibility = "show"
	if (ie) showobj.visibility = "visible"
}
function hide(hideobj) {
	if (n) hideobj.visibility = "hide"
	if (ie) hideobj.visibility = "hidden"
}

