// JavaScript Document
function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "height=480, width=620, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no");
}
var myWindow;
function openCenteredWindow(url, width, height) {
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",status,resizable,left=" + left + ",top=" + top + 
        ",screenX=" + left + ",screenY=" + top;
    myWindow = window.open(url, "subWind", windowFeatures);
}
// DROP MENUS
var subMenus = new Array();
subMenus.push('linksOrder');
function dropMenu($menu) {
	if($menu != null) {
		$objDrop = document.getElementById($menu);
		if($objDrop.style.display = 'none') {
			$objDrop.style.display = 'block';
		}
	}
}
function closeMenu() {
	for(key in subMenus) {		
		clsSub = document.getElementById(subMenus[key]);
		if(clsSub != null) {
			clsSub.style.display = 'none';
		}
	}
}
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="terms_for_furniture_orders.php" title="Terms for Furniture Orders">Terms</a>'
menu1[1]='<a href="product_warranty_terms_and_conditions.php" title="About Dr. Strap">Warranty</a>'
menu1[2]='<a href="quote_requirements.php">Quote Requirements</a>'
var menu2=new Array()
menu2[0]='<a href="commercial_patio_furniture.php"><b>Commercial Patio Furniture</b></a>'
menu2[1]='<a href="commercial_patio_chairs.php">Commercial Patio Chairs</a>'
menu2[2]='<a href="commercial_chaise_lounges.php">Commercial Chaise Lounges</a>'
menu2[3]='<a href="commercial_bar_stools.php">Commercial Bar Stools</a>'
menu2[4]='<a href="commercial_bar_height_tables.php">Commercial Bar Height Tables</a>'
menu2[5]='<a href="commercial_grade_dining_tables.php">Commercial Grade Dining Tables</a>'
menu2[6]='<a href="commercial_grade_side_tables.php">Commercial Grade Side Tables</a>' 
menu2[7]='<a href="contemporary_patio_furniture.php"><b>Contemporary Patio Furniture</b></a>'
menu2[8]='<a href="contemporary_sling_line.php">Contemporary Sling Line</a>'
menu2[9]='<a href="contemporary_tables.php">Contemporary Tables</a>'
menu2[15]='<a href="lafayette_patio_furniture.php"><b>Lafayette Patio Furniture</b></a>'
menu2[16]='<a href="lafayette_sling_line.php">Lafayette Sling Line</a>'
menu2[17]='<a href="lafayette_sling_tables.php">Lafayette Sling Tables</a>'
menu2[22]='<a href="patio_umbrellas_and_bases.php"><b>Patio Umbrellas and Bases</b></a>'
menu2[23]='<a href="patio_umbrellas.php">Patio Umbrellas</a>'
menu2[24]='<a href="patio_umbrella_bases.php">Patio Umbrella Bases</a>'
menu2[25]='<a href="patio_accesssories.php"><b>Patio Accesssories</b></a>'
var menu3=new Array()
menu3[4]='<a href="manufacturing-methods.php" title="Manufacturing methods">Manufacturing methods</a>'


//Contents for menu 2, and so on


var menuwidth='113px' //default menu width
var menubgcolor='#68ADEE' //menu bgcolor
var disappeardelay=300 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" 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){ //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(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


<!-- blink text//-->
<!--
function doBlink() {
	var blink = document.all.tags("BLINK")
	for (var i=0; i<blink.length; i++)
		blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" 
}

function startBlink() {
	if (document.all)
		setInterval("doBlink()",1000)
}
window.onload = startBlink;
// -->

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
