
function MM_swapImgRestore() 
{ //v3.0
  
   var i,x,a=document.MM_sr; 
   for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
      x.src=x.oSrc;

}

function MM_preloadImages() 
{ //v3.0
  
   var d=document;
   if(d.images)
   { 
      if(!d.MM_p) d.MM_p=new Array();

         var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
      for(i=0; i<a.length; i++)
    
        if (a[i].indexOf("#")!=0)
        { 
           d.MM_p[j]=new Image;
           d.MM_p[j++].src=a[i];
        }
   }

}


function MM_findObj(n, d)
{ //v4.01
  
   var p,i,x;
   if(!d) 
      d=document; 
   if((p=n.indexOf("?"))>0&&parent.frames.length) 
   {

      d=parent.frames[n.substring(p+1)].document;
      n=n.substring(0,p);
   }

  if(!(x=d[n])&&d.all)
     x=d.all[n];
  for (i=0;!x&&i<d.forms.length;i++)
     x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++)
     x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById)
     x=d.getElementById(n);
  return x;

}


function MM_swapImage()
{ //v3.0
  
   var i,j=0,x,a=MM_swapImage.arguments;
   document.MM_sr=new Array;
   for(i=0;i<(a.length-2);i+=3)

      if ((x=MM_findObj(a[i]))!=null)
      {
         document.MM_sr[j++]=x;
         if(!x.oSrc) x.oSrc=x.src;
            x.src=a[i+2];
      }

}
function showmenu(elmnt)
{
   document.getElementById(elmnt).style.visibility="visible";
 }
function hidemenu(elmnt)
{
   document.getElementById(elmnt).style.visibility="hidden";
}


function loadNavBar(path)
{
var path_name;
if (path == 1)
    path_name = "";
else if (path == 2)
    path_name = "../";
else if (path == 3)
    path_name = "../../";
else if (path == 4)
    path_name = "../../../";
        
var navigation = "";
navigation +='      <table class="navbar" border="0" cellspacing="0" align="center" cellpadding="0";>';
navigation +='         <tr bgcolor=#ffffff>';

navigation +='            <td onmouseover="MM_swapImage(\'nav_home\',\'\',\''+path_name+'images/navigation/home_on.jpg\',1);" onmouseout="MM_swapImgRestore();">';
navigation +='               <a href="'+path_name+'index.html"><img name=nav_home class="imglinks" src="'+path_name+'images/navigation/home.jpg" /></a>';
navigation +='            </td>';

navigation +='            <td onmouseover="showmenu(\'bridal\');MM_swapImage(\'nav_bridal\',\'\',\''+path_name+'images/navigation/browse_on.jpg\',1);" onmouseout="hidemenu(\'bridal\');MM_swapImgRestore();">';
navigation +='               <img name=nav_bridal class="imglinks" src="'+path_name+'images/navigation/browse.jpg" />';
navigation +='               <table class="mainmenu" id="bridal" width="400" cellspacing="0" cellpadding="0px">';
navigation +='                  <tr><td class="menu"><span style="font-weight:bold;font-size:8pt;" href="'+path_name+'fall2009/bridal/index.html">&nbsp;PRINCESS</span></td><td class="menu"><span style="font-weight:bold;font-size:8pt;">&nbsp;CATEGORY</span></td><td class="menu"><span style="font-weight:bold;font-size:8pt;" href="'+path_name+'fall2009/bridal/index.html">&nbsp;COLLECTION</span></td></tr>';
navigation +='                  <tr><td class="menu"><a class="navlink" href="'+path_name+'collection/cinderella_landing.html">&nbsp;&nbsp;CINDERELLA</a></td><td class="menu"><a class="navlink" href="'+path_name+'collection/bridal/index.html">&nbsp;&nbsp;BRIDAL</a></td></td><td class="menu"><a class="navlink" href="'+path_name+'collection/collection_four.html">&nbsp;&nbsp;FOUR</a></td></tr>';
navigation +='                  <tr><td class="menu"><a class="navlink" href="'+path_name+'collection/sleeping_beauty_landing.html">&nbsp;&nbsp;SLEEPING BEAUTY</a></td><td class="menu"><a class="navlink" href="'+path_name+'collection/redlabel/index.html">&nbsp;&nbsp;RED LABEL</a></td></td><td class="menu"><a class="navlink" href="'+path_name+'collection/collection_three.html">&nbsp;&nbsp;THREE</a></td></tr>';
navigation +='                  <tr><td class="menu"><a class="navlink" href="'+path_name+'collection/snow_white_landing.html">&nbsp;&nbsp;SNOW WHITE</a></td><td class="menu"><a class="navlink" href="'+path_name+'collection/maidens/index.html">&nbsp;&nbsp;MAIDENS</a></td></td><td class="menu"><a class="navlink" href="'+path_name+'collection/collection_two.html">&nbsp;&nbsp;TWO</a></td></tr>';
navigation +='                  <tr><td class="menu"><a class="navlink" href="'+path_name+'collection/jasmine_landing.html">&nbsp;&nbsp;DISNEY\'S PRINCESS JASMINE</a></td><td class="menu"><a class="navlink" href="'+path_name+'collection/princessblossoms/index.html">&nbsp;&nbsp;PRINCESS BLOSSOMS</a></td><td class="menu"><a class="navlink" href="'+path_name+'collection/collection_one.html">&nbsp;&nbsp;ONE</a></td></tr>';
navigation +='                  <tr><td class="menu"><a class="navlink" href="'+path_name+'collection/ariel_landing.html">&nbsp;&nbsp;ARIEL</a></td><td class="menu"><a class="navlink" href="'+path_name+'collection/accessories/index.html">&nbsp;&nbsp;ACCESSORIES</a></td><td class="menu">&nbsp;&nbsp;&nbsp;</td></td></tr>';
navigation +='                  <tr><td class="menu"><a class="navlink" href="'+path_name+'collection/belle_landing.html">&nbsp;&nbsp;BELLE</a></td><td class="menu"><a class="navlink" href="'+path_name+'collection/accessories/veils/veils.html?dressnumber=0">&nbsp;&nbsp;VEILS</a></td><td class="menu">&nbsp;&nbsp;&nbsp;</td></tr>';
navigation +='                  <tr><td class="menu"><a class="navlink" href="'+path_name+'collection/giselle_landing.html">&nbsp;&nbsp;GISELLE</a><td class="menu"><a class="navlink"></td><td class="menu">&nbsp;&nbsp;&nbsp;</td></tr>';

navigation +='';
navigation +='               </table>';
navigation +='            </td>';


navigation +='            <td onmouseover="MM_swapImage(\'nav_about\',\'\',\''+path_name+'images/navigation/about_on.jpg\',1);" onmouseout="MM_swapImgRestore();">';
navigation +='               <a href="'+path_name+'about.html"><img name=nav_about class="imglinks" src="'+path_name+'images/navigation/about.jpg" /></a>';
navigation +='            </td>';


navigation +='            <td onmouseover="MM_swapImage(\'nav_press\',\'\',\''+path_name+'images/navigation/media_on.jpg\',1);" onmouseout="MM_swapImgRestore();">';
navigation +='               <a href="'+path_name+'press.html"><img name=nav_press class="imglinks" src="'+path_name+'images/navigation/media.jpg" /></a>';
navigation +='            </td>';


navigation +='            <td onmouseover="MM_swapImage(\'nav_stores\',\'\',\''+path_name+'images/navigation/stores_on.jpg\',1);" onmouseout="MM_swapImgRestore();">';
navigation +='               <a href="'+path_name+'stores/index.html"><img name=nav_stores class="imglinks" src="'+path_name+'images/navigation/stores.jpg" /></a>';
navigation +='            </td>';


navigation +='            <td onmouseover="MM_swapImage(\'nav_events\',\'\',\''+path_name+'images/navigation/events_on.jpg\',1);" onmouseout="MM_swapImgRestore();">';
navigation +='               <a href="'+path_name+'stores/events.html"><img name=nav_events class="imglinks" src="'+path_name+'images/navigation/events.jpg" /></a>';
navigation +='            </td>';

navigation +='            <td>';
navigation +='                  <img src="'+path_name+'images/navigation/end.jpg" />';
navigation +='            </td>';

navigation +='         </tr>';
navigation +='      </table>';


var x = document.getElementById("myNavBar").innerHTML = navigation;
}
