var splashLink = "/";
var img_farm_main = 'common';

	//	links used, add tracking to all links
	var brideHomeTab = "/";
	var guestHomeTab = "/";
	var guestHomeLink = "/";
    var logInLink = "/";
	var accountLink = getUrl("/");
	var shoppingBagLink = "/";
	var orderHistoryLink = "/";
	var siteSearchLink = "/";
	var regSearchLink = "/";
	var blmHomeLink = "/";
	var guestShopStoreLink = "/";
	var guestGiftIdeas = "/";
	var guestEtiquette = "/";
	var guestTravel = "/";
	var guestWeddParty = "/";
	//	WW Guest nav "widget" type links
	var updateWWLink = "/";
	var manageGiftRegLink = "/";

	//	Defaults to images and fonts for Navbar
	var wcNavLogoImg = img_farm_main + "/images/nav_bar/wc_logo_white.gif";
	var wcNavShopBag = img_farm_main + "/images/nav_bar/shopping_bag.gif";
	var wcNavSiteSearchImg = img_farm_main + "/images/nav_bar/go_button.gif"
	var wcNavCplSearchImg = img_farm_main + "/images/nav_bar/go_button.gif"
    var wcNavSearchTextImg = img_farm_main + "/images/nav_bar/search_text.gif"
	var wcNavBackground = img_farm_main + "/images/nav_bar/stripe.gif";

   var dropMenu112520 = new Array()
   dropMenu112520[0] = "<a href=\"/\" target=\"_parent\">Bridal Party</a>"
   dropMenu112520[1] = "<a href=\"/\" target=\"_parent\">Budget & Legal</a>"
   dropMenu112520[2] = "<a href=\"/\" target=\"_parent\">Destination Weddings</a>"
   dropMenu112520[3] = "<a href=\"/\" target=\"_parent\">Etiquette</a>"
   dropMenu112520[4] = "<a href=\"/\" target=\"_parent\">Grooms & Groomsmen</a>"
   dropMenu112520[5] = "<a href=\"/\" target=\"_parent\">Invitations</a>"
   dropMenu112520[6] = "<a href=\"/\" target=\"_parent\">Moving in Together</a>"
   dropMenu112520[7] = "<a href=\"/\" target=\"_parent\">Music & Dance</a>"
   dropMenu112520[8] = "<a href=\"/\" target=\"_parent\">Newlywed</a>"
   dropMenu112520[9] = "<a href=\"/\" target=\"_parent\">Parties & Showers</a>"
   dropMenu112520[10] = "<a style=\"border-bottom:none;\" href=\"/\" target=\"_parent\">Photo & Video</a>"

   var dropMenu100820 = new Array()
   dropMenu100820[0] = "<a href=\"/\" target=\"_parent\">Amazon</a>"
   dropMenu100820[1] = "<a href=\"/\" target=\"_parent\">Bloomingdale's</a>"
   dropMenu100820[2] = "<a href=\"/\" target=\"_parent\">Borsheims</a>"
   dropMenu100820[3] = "<a href=\"/\" target=\"_parent\">Carson Pirie Scott</a>"
   dropMenu100820[4] = "<a href=\"/\" target=\"_parent\">Charity Registry</a>"
   dropMenu100820[5] = "<a href=\"/\" target=\"_parent\">Cloud 9 Living</a>"
   dropMenu100820[6] = "<a href=\"/\" target=\"_parent\">Crate and Barrel</a>"
   dropMenu100820[7] = "<a href=\"/\" target=\"_parent\">Fortunoff</a>"
   dropMenu100820[8] = "<a href=\"/\" target=\"_parent\">Gump's</a>"
   dropMenu100820[9] = "<a href=\"/\" target=\"_parent\">JCPenney</a>"
   dropMenu100820[10] = "<a href=\"/\" target=\"_parent\">Macy's</a>"
   dropMenu100820[11] = "<a href=\"/\" target=\"_parent\">Neiman Marcus</a>"
   dropMenu100820[12] = "<a href=\"/\" target=\"_parent\">Pottery Barn</a>"
   dropMenu100820[13] = "<a href=\"/\" target=\"_parent\">REI</a>"
   dropMenu100820[14] = "<a href=\"/\" target=\"_parent\">Restoration Hardware</a>"
   dropMenu100820[15] = "<a href=\"/\" target=\"_parent\">Sandals Resorts</a>"
   dropMenu100820[16] = "<a href=\"/\" target=\"_parent\">Starwood Hotels and Resorts</a>"
   dropMenu100820[17] = "<a href=\"/\" target=\"_parent\">Tiffany & Co.</a>"
   dropMenu100820[18] = "<a style=\"/\" target=\"_parent\">Williams-Sonoma</a>"


var menuwidth='140px' //default menu width
var menubgcolor='#fff'  //menu bgcolor
var disappeardelay=250  //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>')
}

if (hidemenu_onclick=="yes") {
    document.onclick=hidemenu
}

//	this sets the logic used in the couple's search box
	var fnClickedOnce = false;
	var lnClickedOnce = false;

//BEGIN SHOW NAV TABS
wr('<table border="0" cellspacing="0" cellpadding="0" id="wcNavMain"  background="' + wcNavBackground + '">');
wr('<tr>');
wr('<td width="275" valign="bottom" id="wcNavLogo"><a href="/" target="_top">');
wr('<img src="' + wcNavLogoImg + '" border="0" alt="WeddingWorldSite.com"/>');
wr('</a></td>');
wr('<td width="640" height="78" valign="bottom"><a href="startregistry.html" target="_top">');
wr('      <object');
wr('        classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
wr('        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0"');
wr('        id="Top"');
wr('        width="640" height="78">');
wr('        <param name="movie" value="/common/Top.swf">');
wr('        <param name="bgcolor" value="#9c82ad">');
wr('        <param name="quality" value="high">');
wr('        <param name="seamlesstabbing" value="true">');
wr('        <param name="allowscriptaccess" value="samedomain">');
wr('        <embed');
wr('          type="application/x-shockwave-flash"');
wr('          pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"');
wr('          name="Top"');
wr('          width="640" height="78"');
wr('          src="/common/Top.swf"');
wr('          bgcolor="#9c82ad"');
wr('          quality="high"');
wr('          seamlesstabbing="true"');
wr('          allowscriptaccess="samedomain">');
wr('          <noembed>');
wr('          </noembed>');
wr('        </embed>');
wr('      </object>');
wr('</a></td>');
wr('</tr>');
wr('<tr><td  colspan="2" height="2"></td></tr>');
wr('</table>');
//}
//END SHOW NAV TABS

document.writeln("<div class=\"navcontainer\" id=\"list100\">")
document.writeln("<ul class=\"navlist\">")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">My Tools</a>" + "</li>")
document.writeln("<li><a class=pipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Ideas & Advice</a>" + "</li>")
document.writeln("<li><a class=pipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Wedding Dresses</a>" + "</li>")
document.writeln("<li><a class=pipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Local Vendors</a>" + "</li>")
document.writeln("<li><a class=pipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Honeymoon</a>" + "</li>")
document.writeln("<li><a class=pipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"startregistry.html\" target=\"_parent\">Register</a>" + "</li>")
document.writeln("<li><a class=pipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Wedding Store</a>" + "</li>")

document.writeln("<li><a class=pipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Community</a>" + "</li>")

document.writeln("<li><a class=pipe>|</a></li>");
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"http://www.healthisland.cn/main/view.asp?id=45\" target=\"_blank\"><span lang=\"zh-cn\">&#20013;&#25991;&#29256;</span>/Chinese</a>" + "</li>")

document.writeln("<li><a class=pipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"msnim:chat?contact=trydoc@hotmail.com\" title=\"Chat online with us\"><img src=\"common/msn.gif\" width=\"18\" height=\"18\" border=\"0\"></a>" + "</li>")

document.writeln("</ul>")
document.writeln("</div>")

document.writeln("<div class=\"subnavcontainer\" id=\"list10000\" style=\"display:none;\">")
document.writeln("<ul class=\"subnavlist\">")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Planning Checklist</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Wedding Website</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Budget Calculator</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Guest List Manager</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Scrapbook</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Save the Date</a>" + "</li>")
document.writeln("</ul>")
document.writeln("</div>")
document.writeln("<div class=\"subnavcontainer\" id=\"list1000\" style=\"display:none;\">")
document.writeln("<ul class=\"subnavlist\">")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Beauty & Hairstyles</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Cakes</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Celebrity Weddings</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Ceremonies</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Fashion & Jewelry</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Favors</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Flowers & Decor</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Receptions</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Register</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\" onmouseover=\"dropdownmenu(this, event, dropMenu112520, '165')\"' onmouseout=\"delayhidemenu()\">More...</a>" + "</li>")
document.writeln("</ul>")
document.writeln("</div>")
document.writeln("<div class=\"subnavcontainer\" id=\"list20000\" style=\"display:none;\">")
document.writeln("<ul class=\"subnavlist\">")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Brides</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Bridesmaids</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Veil & Accessories</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Jewelry</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Tuxedo Search</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Flower Girls</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Mothers</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Beauty & Hairstyles</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Fashion & Jewelry</a>" + "</li>")
document.writeln("</ul>")
document.writeln("</div>")
document.writeln("<div class=\"subnavcontainer\" id=\"list1050\" style=\"display:none;\">")
document.writeln("<ul class=\"subnavlist\">")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Destinations</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Honeymoon Registry</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Article Index</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Guest Hotel & Travel</a>" + "</li>")
document.writeln("</ul>")
document.writeln("</div>")
document.writeln("<div class=\"subnavcontainer\" id=\"list1030\" style=\"display:none;\">")
document.writeln("<ul class=\"subnavlist\">")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Complete Registry Guide</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"#\" onmouseover=\"dropdownmenu(this, event, dropMenu100820, '165')\"' onmouseout=\"delayhidemenu()\">Store Directory</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Find Your Registry</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Tell Friends about your Registry</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Enclosure Cards</a>" + "</li>")
document.writeln("</ul>")
document.writeln("</div>")
document.writeln("<div class=\"subnavcontainer\" id=\"list1060\" style=\"display:none;\">")
document.writeln("<ul class=\"subnavlist\">")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Message Boards</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Online Now</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Real Weddings</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"\" target=\"_parent\">Wedding Website</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"\" target=\"_parent\">Celebrity Wedding Insiders</a>" + "</li>")
document.writeln("<li><a class=subpipe>|</a></li>")
document.writeln("<li");
document.writeln(">");
document.writeln("<a href=\"/\" target=\"_parent\">Polls</a>" + "</li>")
document.writeln("</ul>")
document.writeln("</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)
    }
}

//Swap Layers Function
    function show(id) {
        if (document.getElementById(id).style.display == 'none') {
            document.getElementById(id).style.display = '';
        }
    }

    function hide(id){
        document.getElementById(id).style.display = 'none';
    }
//END Swap Layers Function

