function doClear(theText) {
	if (theText.value == theText.defaultValue) {
		theText.value = ""
	}
}



// Dropdown Menu
document.write('<style type="text/css">');
document.write('#dropmenudiv{text-align:left;position:absolute;border:1px solid black;font:normal 10px Verdana;line-height:18px;z-index:100;padding:5;margin:5px;}');
document.write('#dropmenudiv div{text-align:left;border:0px;font:normal 10px Verdana;padding:5;margin:5px;border:0px;}');
//document.write('#dropmenudiv table{text-align:left;padding:0;margin:0;border:0px;}');
//document.write('#dropmenudiv table td{padding:0;margin:0;border:0;}');
//document.write('#dropmenudiv table tr{padding:0;margin:0;border:0;} ');
document.write('#dropmenudiv a{display:block;font:normal 10px Verdana;color:#000000;text-indent: 3px;text-decoration: none;padding:3px;margin:0px;border:0px}');
document.write('#dropmenudiv a:hover{ background-color:#FFFFFF;color:#000000;text-decoration: underline overline;}');
document.write('#dropmenudiv img{padding:0px;border:none;}');
document.write('</style>');

var bookmark_disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var bookmark_hidemenu_onclick="yes" //hide menu when user clicks within menu?

var bookmark_ie4=document.all
var bookmark_ns6=document.getElementById&&!document.all

if (bookmark_ie4 || bookmark_ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:300px;background-color:#FFFFFF;color:#000000;padding:0;margin:0px;border:1px solid black;" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function bookmark_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 bookmark_showhide(obj, e, visible, hidden, menuwidth){
	if (bookmark_ie4 || bookmark_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 bookmark_iecompattest(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function bookmark_clearbrowseredge(obj, whichedge){
	var edgeoffset=0
	if (whichedge=="rightedge"){
		var windowedge=bookmark_ie4 && !window.opera? bookmark_iecompattest().scrollLeft+bookmark_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=bookmark_ie4 && !window.opera? bookmark_iecompattest().scrollTop : window.pageYOffset
		var windowedge=bookmark_ie4 && !window.opera? bookmark_iecompattest().scrollTop+bookmark_iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
		dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
		if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
			edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
			if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
			edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
		}
	}
	return edgeoffset
}

function populatemenu(this_id){
	if (bookmark_ie4||bookmark_ns6)
	{
		dropmenuobj.innerHTML =
		'<div style="width:300px;">' +
		'<table width="100%" border="0">' +
		'<tr>' +
		'<td>';
		if (this_id == 'discreet_shipping') {
			dropmenuobj.innerHTML += 
			'<p>We guarantee that your shopping experience with us will be as discreet as possible.</p>' + 
			'<p>When you receive your package, it will be in a plain package, with a non-descript return address.</p>' + 
			'<p>Not even your mail carrier will know what you bought!</p>' + 
			'<p>What you buy on our site, it is your business, no one elses.</p>';
		}
		else if (this_id == 'discreet_billing') {
			dropmenuobj.innerHTML += 
			'<p>We guarantee that your shopping experience with us will be as discreet as possible.</p>' + 
			//'<p>When you receive you credit card statement, it will be discreetly billed by &quot;Bjorkman International, Inc.&quot;</p>' + 
			'<p>You may not even recognize the name on your credit/debit card statement, so please take a moment when you check out to write it down.</p>';
		}
		else if (this_id == 'privacy') {
			dropmenuobj.innerHTML += 
			'<p>Under no circumstance will we sell or give away your personal information, including your email address.</p>' + 
			'<p>We hate spam just as much as you do.</p>' + 
			'<p>Please make sure you select the options you are comfortable with at checkout, including if you do not want to hear from us after your order is complete with specials, and other information.</p>';
		}
		else if (this_id == 'low_price') {
			dropmenuobj.innerHTML += 
			'<p>If you find a lower price from another online store, we will beat their price and give you a extra dollar off of your purchase of the same item.</p>' + 
			'<p>Just email us the website url to the product.</p>';
		}
		dropmenuobj.innerHTML += 
		'</td>' +
		'</tr>' +
		'</table>' +
		'</div>';
	}
}


function dropdownmenu(obj, e, this_id){
	if (window.event) event.cancelBubble=true
	else if (e.stopPropagation) e.stopPropagation()
	clearhidemenu()
	dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
	populatemenu(this_id)
	
	if (bookmark_ie4||bookmark_ns6){
		bookmark_showhide(dropmenuobj.style, e, "visible", "hidden", '300px')
		dropmenuobj.x=bookmark_getposOffset(obj, "left")
		dropmenuobj.y=bookmark_getposOffset(obj, "top")
		dropmenuobj.style.left=dropmenuobj.x-bookmark_clearbrowseredge(obj, "rightedge")+"px"
		dropmenuobj.style.top=dropmenuobj.y-bookmark_clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
	}
	
//	return clickreturnvalue()
	return false;
}

function clickreturnvalue(){
	if (bookmark_ie4||bookmark_ns6) return false
	else return true
}

function bookmark_contains_ns6(a, b) {
	while (b.parentNode)
	if ((b = b.parentNode) == a)
	return true;
	return false;
}

function dynamichide(e){
	if (bookmark_ie4&&!dropmenuobj.contains(e.toElement))
		delayhidemenu()
	else if (bookmark_ns6&&e.currentTarget!= e.relatedTarget&& !bookmark_contains_ns6(e.currentTarget, e.relatedTarget))
		delayhidemenu()
}

function bookmark_hidemenu(e){
	if (typeof dropmenuobj!="undefined"){
	if (bookmark_ie4||bookmark_ns6)
	dropmenuobj.style.visibility="hidden"
	}
}

function delayhidemenu(){
	if (bookmark_ie4||bookmark_ns6)
	bookmark_delayhide=setTimeout("bookmark_hidemenu()",bookmark_disappeardelay)
}

function clearhidemenu(){
	if (typeof bookmark_delayhide!="undefined")
	clearTimeout(bookmark_delayhide)
}

if (bookmark_hidemenu_onclick=="yes")
	document.onclick=bookmark_hidemenu
