function toggle_object(object1 ,display){

		if (display == "hide"){
			if (document.getElementById) {
				document.getElementById(object1).style.display = 'none';
			} else if (document.layers && document.layers[object1] != null) {
				document.layers[object1].display = 'none';
			} else if (document.all) {
				document.all[object1].style.display = 'none';
			}
		} else if (display == "show") {
			if (document.getElementById) {
				document.getElementById(object1).style.display = '';
			} else if (document.layers && document.layers[object1] != null) {
				document.layers[object1].display = 'visible';
			} else if (document.all) {
				document.all[object1].style.display = '';
			}
		} else if (display == "toggle") { // toggles
		
			if (document.getElementById) {
				 if (document.getElementById(object1).style.display == ''){
					  document.getElementById(object1).style.display = 'none';
				 }  else {
					  document.getElementById(object1).style.display = '';
				 }
		
			 } else if (document.layers && document.layers[object1] != null) {
				if (document.layers[object1].display == '' || document.layers[object1].display == '' ){
					document.layers[object1].display = 'none';
				} else {
				    document.layers[object1].display = 'visible';
			    }
		
			 } else if (document.all) {
				if (document.all[object1].style.display == ''){
				   document.all[object1].style.display = 'none';
				} else {
				  document.all[object1].style.display = '';
			    }
		    }
			
		}
}


function toggle_object_visible(object1 ,display){

		if (display == "hide"){
			if (document.getElementById) {
				document.getElementById(object1).style.visibility = 'hidden';
			} else if (document.layers && document.layers[object1] != null) {
				document.layers[object1].visibility = 'hidden';
			} else if (document.all) {
				document.all[object1].style.visibility = 'hidden';
			}
		} else if (display == "show") {
			if (document.getElementById) {
				document.getElementById(object1).style.visibility = 'visible';
			} else if (document.layers && document.layers[object1] != null) {
				document.layers[object1].visibility = 'visible';
			} else if (document.all) {
				document.all[object1].style.visibility = '';
			}
		} else if (display == "toggle") { // toggles
		
			if (document.getElementById) {
				 if (document.getElementById(object1).style.visibility == ''){
					  document.getElementById(object1).style.visibility = 'hidden';
				 }  else {
					  document.getElementById(object1).style.display = '';
				 }
		
			 } else if (document.layers && document.layers[object1] != null) {
				if (document.layers[object1].visibility == '' || document.layers[object1].visibility == '' ){
					document.layers[object1].visibility = 'hidden';
				} else {
				    document.layers[object1].visibility = 'visible';
			    }
		
			 } else if (document.all) {
				if (document.all[object1].style.visibility == ''){
				   document.all[object1].style.visibility = 'hidden';
				} else {
				  document.all[object1].style.visibility = '';
			    }
		    }
			
		}
}

    //**get the specific dom-expression**//

    //**pretty obvious - if NS4 - please upgrade to a standard compliant browser**//

    function createLayer(){

    if(document.getElementById || document.all){

	   // document.write('<div id="layer'+this.name+'" style="position:relative;overflow:hidden;float:'+this.initFl+';background-color:#'+this.initBg+';border:1px solid black;width:'+this.initW+'px;height:'+this.initH+'px;" onMouseover="'+this.name+'.scrollLoop(0)" onMouseout="'+this.name+'.scrollLoop('+this.speed+')">');
	    document.write('<div id="layer'+this.name+'" style="position:relative;overflow:hidden;float:'+this.initFl+';background-color:#FFFFFF;width:'+this.initW+'px;height:'+this.initH+'px;" onMouseover="'+this.name+'.scrollLoop(0)" onMouseout="'+this.name+'.scrollLoop('+this.speed+')">');
	    document.write('<div id="'+this.name+'" style="position:absolute;top:'+this.initH+'px;left:0px;width:'+this.widthB+'px;height:'+this.heightB+'px;background-color:#FFFFFF">');
	    document.write(this.content);
	    document.write('<\/div><\/div>');}

    else if(document.layers){
        document.write('<ilayer name="'+this.name+'" bgcolor="#'+this.Bg+'" width="'+this.widthB+'" height="'+this.heightB+'">'+this.content+'<\/ilayer>');
        return;
    }
    if(this.scrollLayer){
      this.timer = setInterval(this.name+'.scrollLayer()','30');
    }
    }

/* *********************************************************************************************************************************** */	
	
	
// custom scroll application developed for three.oh 3/2001.
// thanks to brandon (www.jesterworld.net) and grant (no site cuz he's too pimp for it) for the help w/ the visuals.
// > youngpup > www.youngpup.net

// optimized for the latest version of {3.0} by bob


ThreeOhScroll.mo5 = navigator.userAgent.indexOf("Gecko") != -1
ThreeOhScroll.ie4 = navigator.appName == "Microsoft Internet Explorer" && document.all
ThreeOhScroll.ie5 = navigator.appName == "Microsoft Internet Explorer" && document.getElementById
ThreeOhScroll.pc = navigator.platform == "Win32"


// this number is for ie4 pc only - which cannot have the description box be of variable width (or atleast i can't figure out how to).
// you set the number of pixels that the desc tag will be permanently.
ThreeOhScroll.ie4pcDescWidth = 100

// i have no idea why this number is necessary, it just is. it is related to how far the scroller is from the top of the window
// in mozilla, but you will have to play with it to get it just right.
ThreeOhScroll.mozAdjust = ThreeOhScroll.mo5 ? 75 : 0

// this is how long it should take the scroller to animate when the user clicks a marker (in milliseconds)
ThreeOhScroll.aniLen = 400

function ThreeOhScroll(id)
{
	if (ThreeOhScroll.mo5 || (ThreeOhScroll.ie4 && ThreeOhScroll.pc) || ThreeOhScroll.ie5) {
		this.id = id
		this.getMembers()

		if (ThreeOhScroll.ie4 && !ThreeOhScroll.ie5 && ThreeOhScroll.pc) this.description.style.width = ThreeOhScroll.ie4pcDescWidth

		this.clipH		= parseInt(this.container.style.height)
		this.PTags		= ypGetDescendantsByTagName("P", this.content)
		var lastP		= this.PTags[this.PTags.length-1]
		var lastPTop	= lastP.offsetTop - ThreeOhScroll.mozAdjust
		this.docH		= lastPTop + Math.max(lastP.offsetHeight, this.clipH)
		this.scrollH	= this.docH - this.clipH

		this.thumbMax	= parseInt(this.thumbContainer.style.height) - this.thumbImg.height

		this.gRef = "ThreeOhScroll_"+id
		eval(this.gRef+"=this")
		this.thumb.obj	= this
		this.thumb.onmousedown = this.startDrag

	} else {

	}
}
