function GoTo(x) {
	window.location = x
}

function ShowPlayer(p) {
	var PLink = "/players/player.asp?id=" + p
	var NewWindow = window.open(PLink,"","MenuBar,Toolbar,Location,Status,Resizable,Scrollbars,Width=600,Height=350")
}

function checkBrowser(){
        this.ver=navigator.appVersion
        this.name=navigator.appName
        this.ie=(this.ver.indexOf("MSIE")>-1)?1:0
        this.ns=(this.name=="Netscape")?1:0
        this.dom=document.getElementById?1:0
        this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0
        this.ie4=(document.all && !this.dom)?1:0
        this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0
        this.ns4=(document.layers && !this.dom)?1:0
        this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
        return this
}

bw=new checkBrowser()

function makeCSSObj(obj,nest){
        nest=(!nest)?'':nest
        pre=''
        post=''
        elpost=''
            
        if (bw.ns4) {
			pre=nest+'document.'
			elpost=''
			post=''
        }                   
        
        if (bw.ie4) {
			pre='document.all.'
			elpost=''
			post='.style'
        } 
        
        if (bw.dom) {
			pre='document.getElementById("'
			elpost='")'
			post='").style'
        }
                                                            
        this.el=eval(pre+obj+elpost)
        this.css=eval(pre+obj+post)
        this.height=bw.ns4?this.css.document.height:this.el.offsetHeight                                                         
        return this
}



function top(obj) {
	t=0
	if (bw.ns4||bw.ns5) {
		t=parseInt(obj.css.top)
	}
	if (bw.ie4||bw.ie5) {
		t=parseInt(obj.css.pixelTop)
	}
	return t
}

function left(obj) {
	l=0
	if (bw.ns4||bw.ns5) {
		l=parseInt(obj.css.left)
	}
	if (bw.ie4||bw.ie5) {
		l=parseInt(obj.css.pixelLeft)
	}
	return l
}



function setTop(obj,t) {
	if (bw.ns4||bw.ns5) {
		obj.css.top=t
	}
	if (bw.ie4||bw.ie5) {
		obj.css.pixelTop=t
	}
}

function setLeft(obj,l) {
	if (bw.ns4||bw.ns5) {
		obj.css.left=l
	}
	if (bw.ie4||bw.ie5) {
		obj.css.pixelLeft=l
	}
}

function moveTo(obj,y,x) {
	if (bw.ns4||bw.ns5) {
		obj.css.top=y
		obj.css.left=x
	}
	if (bw.ie4||bw.ie5) {
		obj.css.pixelTop=y
		obj.css.pixelLeft=x
	}
}

function shiftBy(obj,y,x) {
	if (bw.ns4||bw.ns5) {
		obj.css.top=parseInt(obj.css.left)+y
		obj.css.left=parseInt(obj.css.top)+x
	}
	if (bw.ie4||bw.ie5) {
		obj.css.pixelTop=parseInt(obj.css.pixelLeft)+y
		obj.css.pixelLeft=parseInt(obj.css.pixelTop)+x
	}
}

function show(obj) {
	obj.css.visibility="visible"
}

function hide(obj) {
	obj.css.visibility="hidden"
}


