<!--


var menuStr = ["Home","about us", "product", "order status","fql","contact"];
var linkStr = ["service","portfolio","resume","contact","../index"];
var idStr = ["service","portfolio","resume","contact","home"];



function getMenuonStr(menuId)
{
    var starStr = "<li id='" + idStr[menuId] + "'>";
	var hrefStr = "<a href='" + linkStr[menuId] +".html'>";
	var endStr = "</a></li>";
	var menuonStr = starStr + hrefStr + menuStr[menuId] + endStr;

	return menuonStr;

}

function getMenudnStr(menuId)
{

    var starStr = "<li id='" + idStr[menuId] + "'>";
	var endStr = "</li>";
	var menudnStr = starStr + menuStr[menuId] + endStr;

	return menudnStr;

}

function PublicAreaHead()
{
	document.write(" <html>");
	document.write(" <body >");
	document.write("   <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">");
	document.write("     <tr>");
	document.write(" 	  <td><img src=\"images/logonew.gif\" alt=\"Blossom Inc.\"></td>");
	document.write(" 	  <td id=\"topmenu\" colspan=\"2\"><ul id=\"menu\">");
	document.write(" 		  <li id=\"home\"><a href=\"default.asp?curMenu=home\">home</a></li>");
	document.write(" 			<li id=\"about\"><a href=\"others/about.html?curMenu=about\">about us</a></li>");
	document.write(" 			<li id=\"product\"><a href=\"../front/product.html\">product</a></li>");
	document.write(" 			<li id=\"orderstatus\"><a href=\"../front/trackorder.html\">Track Order</a></li>");
	document.write(" 			<li id=\"faq\"><a href=\"default.asp?curMenu=faq\">faq</a></li>");
	document.write(" 			<li id=\"contact\"><a href=\"../front/contact.html\">contact</a></li></ul></td></tr>	");

}


function PublicAreaLoginBar()
{
			

	document.write("    <tr>");
	document.write("	  <td class=\"lefttopic\"><img src=\"../images/star.gif\" alt=\"*\"><strong>product categories</strong></td>");
	document.write("	  <td class=\"infobar\" colspan=\"2\">Welcome to <img src=\"../images/corp.gif\"> !<span class=\"p100\"><a href=\"../front/shoppingcart.html\" class=\"info\">View Cart (0)</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"../front/checkout_error.html\" class=\"info\">Checkout</a></span><span class=\"p100\"><a href=\"#\" class=\"info\">Member Login</a> | <a href=\"#\" class=\"info\">Register</a></span></td></tr>");
}


function PublicAreaLeft()
{
	document.write("	<tr>");
	document.write("	  <td id=\"left\">");
	document.write("	     <p class=\"line1\"><a href=\"productlist.html\" class=\"menu\">New Arrivals ...</a></p>");
	document.write("		  <p class=\"line2\"><a href=\"productcategories.html\" class=\"menu\">Animal Design</a><br><a href=\"#\" class=\"menu\">Misc. Design</a></p>");
	document.write("		       <p class=\"line3\"><a href=\"#\" class=\"menu\">Handbag & Backpack</a><br><a href=\"#\" class=\"menu\">Wallet</a><br><a href=\"#\" class=\"menu\">Passport Bag</a><br><a href=\"#\" class=\"menu\">Others</a></p>");
	document.write("         <p class=\"lefttopic\"><img src=\"../images/star.gif\" alt=\"*\">product search</p>");
	document.write("		       <p class=\"line3\"><span class=\"bluetext\">Enter the search term for the<br> product you are looking for <br>below:</span><br><input type=\"text\">&nbsp;&nbsp;<input type=\"submit\" value=\"Go!\"><br><a href=\"search.html\" class=\"menu\">Go to Advanced Search!</a>  </p>");
	document.write("           <p class=\"lefttopic\"><img src=\"../images/star.gif\" alt=\"*\">policies Information</p>");
	document.write("		       <p class=\"line2\"><a href=\"../front/policy.html\" class=\"menu\">Payment and Shipping</a><br><a href=\"../front/policy.html\" class=\"menu\">Policy and Security</a></p>");
	document.write("		   <p class=\"bleft\">&nbsp;</p>");
	document.write("	  </td>");
	document.write("	  <td class=\"vtop\" colspan=\"2\">");
}
function PublicAreaFoot()
{

	 
	document.write(" 	  </td>");
	document.write(" 	</tr>");
	document.write(" 	<tr  class=\"bomline\">");
	document.write(" 	  <td colspan=\"3\" class=\"more\"><a href=\"#\" class=\"info\">home</a> | <a href=\"#\" class=\"info\">about us</a> | <a href=\"#\" class=\"info\">product</a> | <a href=\"#\" class=\"info\">track order</a> | <a href=\"#\" class=\"info\">faq</a> | <a href=\"#\" class=\"info\">contact</a>");
	document.write(" 	  <img src=\"../images/empty.gif\" width=\"340\" height=\"1\"><span class=\"more\">2006 &copy; <img src=\"../images/corp.gif\"> all rights Reserved.</span></td>");

	document.write("   </table>");
	document.write(" </div>");
	document.write("</body>");
	document.write("</html>");

}





function InfoWindow_Open(theURL, winName) 
{ 
	window.open(theURL,winName,"height=500, width=450, top=143, left=550,toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no");
		//return window.open(theURL,winName,"");
}

function InfoWindow_OpenMax(theURL, winName) 
{ 
	//window.open(theURL,winName,"height=500, width=450, top=143, left=550,toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no");
		return window.open(theURL,winName,"");
}

function InfoSmallWindow_Open(theURL, winName) 
{ 
	window.open(theURL,winName,"height=300, width=540, top=100, left=200,toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no");
}

function HTMLEncode(str)
{   
 var s = "";
 if(str.length == 0) return "";
 s    =    str.replace(/&/g,"&amp;");
 s    =    s.replace(/</g,"&lt;");
 s    =    s.replace(/>/g,"&gt;");
 s    =    s.replace(/ /g,"&nbsp;");
 s    =    s.replace(/\'/g,"&#39;");
 s    =    s.replace(/\"/g,"&quot;"); 
 return   s;   
}
function DrawImageW(ImgD, maxSizeW)
{
      var image=new Image();
      image.src=ImgD.src; 
      if(image.width>0 && image.height>0)
      { 
	     if(image.width > maxSizeW)
	     {
	         ImgD.width = maxSizeW;
	         ImgD.height = (image.height*maxSizeW)/image.width;
	     }
	     else
	     {
	         ImgD.width=image.width;
	         ImgD.height=image.height;
	     } 
     }
}
function DrawImage(ImgD, maxSizeW, maxSizeH)
{
      var image=new Image();
      image.src=ImgD.src; 
      if(image.width>maxSizeW  ||  image.height>maxSizeH)
      { 
         var scaleW = 1;
         var scaleH = 1;
         if(image.width>maxSizeW)
         {
             scaleW = maxSizeW/image.width;
         }
         if(image.height>maxSizeH)
         {
            scaleH = maxSizeH/image.height;
         }
         if( scaleW > scaleH )
         {
            ImgD.width=image.width*scaleH;
            ImgD.height=image.height*scaleH;
         }
         else
         {
            ImgD.width=image.width*scaleW;
            ImgD.height=image.height*scaleW;
         }
     }
     else
     {
        ImgD.width=image.width;
        ImgD.height=image.height; 
     }
}
-->

