function vidhelp()
{
var winleft = (screen.width - 486) / 2;
var winUp = (screen.height - 300) / 2;
window.open('http://www.uponone.com/vid_help.php','DIS','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=yes,width=486,height=300,left='+winleft+',top='+winUp+'');
}
function ft()
{
var winleft = (screen.width - 520) / 2;
var winUp = (screen.height - 300) / 2;
window.open('http://www.uponone.com/file_type.php','FT','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=520,height=300,left='+winleft+',top='+winUp+'');
}
function dis()
{
var winleft = (screen.width - 480) / 2;
var winUp = (screen.height - 240) / 2;
window.open('http://www.uponone.com/classifieds_dis.php','DIS','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=480,height=240,left='+winleft+',top='+winUp+'');
}
function tos()
{
var winleft = (screen.width - 490) / 2;
var winUp = (screen.height - 240) / 2;
window.open('http://www.uponone.com/tos.php','TOS','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=yes,width=490,height=240,left='+winleft+',top='+winUp+'');
}
function acro()
{
var winleft = (screen.width - 520) / 2;
var winUp = (screen.height - 300) / 2;
window.open('http://www.adobe.com/products/acrobat/readstep2.html','ACRO','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=520,height=300,left='+winleft+',top='+winUp+'');
}
function vote()
{
var winleft = (screen.width - 340) / 2;
var winUp = (screen.height - 140) / 2;
window.open('http://www.uponone.com/vfu.php','VOTE','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=340,height=140,left='+winleft+',top='+winUp+'');
}
function rate()
{
var winleft = (screen.width - 325) / 2;
var winUp = (screen.height - 140) / 2;
window.open('http://www.uponone.com/rate.php','RATE','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=325,height=140,left='+winleft+',top='+winUp+'');
}
function ltv(url)
{
var winleft = (screen.width - 495) / 2;
var winUp = (screen.height - 210) / 2;
window.open(url,'LTV','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=495,height=210,left='+winleft+',top='+winUp+'');
}
function dlv(url)
{
var winleft = (screen.width - 505) / 2;
var winUp = (screen.height - 464) / 2;
window.open(url,'DLVID','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=505,height=464,left='+winleft+',top='+winUp+'');
}
function enpic(url,wid,hei)
{
var winleft = (screen.width - wid) / 2;
var winUp = (screen.height - hei) / 2;
window.open(url,'ENPIC','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width='+wid+',height='+hei+',left='+winleft+',top='+winUp+'');
}
function survey(url,wid,hei)
{
var winleft = (screen.width - wid) / 2;
var winUp = (screen.height - hei) / 2;
window.open(url,'SURVEY','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width='+wid+',height='+hei+',left='+winleft+',top='+winUp+'');
}
function mem_pic_del(pid)
{
if (confirm('Are you sure you want to delete this picture?'))
	{
	parent.location='../members_gallery.php?pid='+pid+'';
	}
}
function mem_gal_del(gid)
{
if (confirm('Are you sure you want to delete your entire gallery?'))
	{
	parent.location='../members_gallery.php?gid='+gid+'';
	}
}
function mem_rider_del(rid)
{
if (confirm('Are you sure you want to delete your Rider info?'))
	{
	parent.location='../members_riders.php?rid='+rid+'';
	}
}
function unsub(uid)
{
if (confirm('Are you sure you want to unsubscribe from the UpOnOne Newsletter?'))
	{
	parent.location='../members_unsub.php?uid='+uid+'';
	}
}
function SSwin()
{
var winleft = (screen.width - 640) / 2;
var winUp = (screen.height - 480) / 2;
window.open('http://www.uponone.com/clicks.php?id=108','SSWIN','toolbar=no,location=yes,directories=no,status=yes,menubar=yes,resizable=yes,copyhistory=no,scrollbars=yes,width=640,height=480,left='+winleft+',top='+winUp+'');
}
function clearIt(theText)
{
if (theText.value == theText.defaultValue) {theText.value = ""}
}
function rgpic(url,wid,hei)
{
var winleft = (screen.width - wid) / 2;
var winUp = (screen.height - hei) / 2;
window.open(url,'RGLRG','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width='+wid+',height='+hei+',left='+winleft+',top='+winUp+'');
}
// Anylink Menu
function alm(mylink)
{
	if (mylink != 'videos.php' && mylink != 'pictures.php' && mylink != 'store.php' && mylink != 'ridegear.php')
	{
	clickreturnvalue();
	}
}
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.uponone.com/videos-wheelies.php">Wheelies</a>'
menu1[1]='<a href="http://www.uponone.com/videos-stoppies.php">Stoppies</a>'
menu1[2]='<a href="http://www.uponone.com/videos-burnouts.php">Burn-Outs</a>'
menu1[3]='<a href="http://www.uponone.com/videos-speed.php">Speed</a>'
menu1[4]='<a href="http://www.uponone.com/videos-track.php">Track</a>'
menu1[5]='<a href="http://www.uponone.com/videos-dirt.php">Dirt</a>'
menu1[6]='<a href="http://www.uponone.com/videos-everythingelse.php">Everything Else</a>'

var menu2=new Array()
menu2[0]='<a href="http://www.uponone.com/pictures-wheelies.php">Wheelies</a>'
menu2[1]='<a href="http://www.uponone.com/pictures-stoppies.php">Stoppies</a>'
menu2[2]='<a href="http://www.uponone.com/pictures-burnouts.php">Burn-Outs</a>'
menu2[3]='<a href="http://www.uponone.com/pictures-speed.php">Speed</a>'
menu2[4]='<a href="http://www.uponone.com/pictures-track.php">Track</a>'
menu2[5]='<a href="http://www.uponone.com/pictures-dirt.php">Dirt</a>'
menu2[6]='<a href="http://www.uponone.com/pictures-bikes.php">Bikes</a>'
menu2[7]='<a href="http://www.uponone.com/pictures-women.php">Women</a>'
menu2[8]='<a href="http://www.uponone.com/pictures-everythingelse.php">Everything Else</a>'

var menu3=new Array()
menu3[0]='<a href="http://www.uponone.com/store.php?catid=53">T-Shirts</a>'
menu3[1]='<a href="http://www.uponone.com/store.php?catid=54">Long Sleeves</a>'
menu3[2]='<a href="http://www.uponone.com/store.php?catid=52">Hoodies</a>'
menu3[3]='<a href="http://www.uponone.com/store.php?catid=55">Womens Tees</a>'
menu3[4]='<a href="http://www.uponone.com/store.php?catid=3">Stickers</a>'
menu3[5]='<a href="http://www.uponone.com/store.php">All Items</a>'

var menu4=new Array()
menu4[0]='<a href="http://www.uponone.com/ridegear-street-bikes.php">Street Bikes</a>'
menu4[1]='<a href="http://www.uponone.com/ridegear-dirt-bikes.php">Dirt Bikes</a>'
menu4[2]='<a href="http://www.uponone.com/ridegear-atvs.php">ATVs</a>'
menu4[3]='<a href="http://www.uponone.com/ridegear-mini-bikes.php">Mini Bikes</a>'
menu4[4]='<a href="http://www.uponone.com/ridegear-snowmobiles.php">Snowmoblies</a>'
menu4[5]='<a href="http://www.uponone.com/ridegear-harley-davidson.php">Harley Davidsons</a>'
menu4[6]='<a href="http://www.uponone.com/ridegear-casual.php">Casual Apparel</a>'
menu4[7]='<a href="http://www.uponone.com/ridegear-closeout.php">Closeout Deals</a>'
menu4[8]='<a href="http://www.uponone.com/ridegear.php">All Items</a>'

var menuwidth='120px'
var disappeardelay=150
var hidemenu_onclick="yes"

/////No further editting needed
var ie4=document.all
var ns6=document.getElementById&&!document.all
if (ie4||ns6)
document.write('<div id="dropmenudiv" class="dropback" style="visibility:hidden;width:'+menuwidth+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what, offsettype)
{
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null)
{
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth)
{
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!="")
{
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest()
{
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge)
{
var edgeoffset=0
if (whichedge=="rightedge")
{
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
{
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}
function populatemenu(what)
{
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}
function dropdownmenu(obj, e, menucontents, menuwidth)
{
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6)
{
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
function clickreturnvalue()
{
if (ie4||ns6) return false
else return true
}
function contains_ns6(a, b)
{
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e)
{
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function hidemenu(e)
{
if (typeof dropmenuobj!="undefined")
{
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}
function delayhidemenu()
{
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu()
{
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu