
function popwin(url,win_name,width,height,left,top,scrol)
{
var
popup=window.open(url,win_name,"width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ",scrollbars=" + scrol + ",resizable=no,status=no,toolbar=no,menubar=no,location=no");
  popup.focus();
  return false;
}


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.0
  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 && document.getElementById) x=document.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 PrintHead(flag)
{
if (flag=="0")
	imgpath="";
if (flag=="1")
	imgpath="../";
if (flag=="2")
	imgpath="../../";
if (flag=="3")
	imgpath="../../../";

document.write("<table width=920 border=0 cellpadding=0 cellspacing=0>");
document.write("<tr>");
document.write("<td colspan=4 width=940 height=0>");
document.write("	");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");


document.write("  <td width=920 height=113 alifn=left valign=top>");
document.write("	<a href='/index.htm'><img src='/images/top.jpg' width='920' height='113' border='0' alt='' /></a>");
document.write("  </td>");
document.write("<tr>");
document.write("<td colspan=4 width=910 height=1>");
document.write("	");
document.write("</td>");
document.write("</tr>");
document.write("</table>");

}



var TmenuName  = new Array();
var TmenuTitle = new Array();
var TmenuTitlec = new Array();
var TmenuUrl   = new Array();
var TnumofMenuItem = 5;
var TnumofItem = 5;
var Ttree = 1;
var n = 1;

TmenuName[0] = "home";
TmenuName[1] = "contact";
TmenuName[2] = "ladies";
TmenuName[3] = "men";
TmenuName[4] = "about";



function PrintTopMenu(pageName,tflag) {

if (tflag=="0")
	timgpath="";
if (tflag=="1")
	timgpath="../";
if (tflag=="2")
	timgpath="../../";
if (tflag=="3")
	timgpath="../../../";
if (tflag=="4")
	timgpath="../../../../";

TmenuTitle[0] = "<img src='"+timgpath+"images/tp_home_off.gif' width=110 height=40 border=0 name='m1'>";
TmenuTitle[1] = "<img src='"+timgpath+"images/tp_contact_off.gif' width=110 height=40 border=0 name='m2'>";
TmenuTitle[2] = "<img src='"+timgpath+"images/tp_communication_off.gif' width=150 height=40 border=0 name='m3'>";
TmenuTitle[3] = "<img src='"+timgpath+"images/tp_about_off.gif' width=110 height=40 border=0 name='m4'>";
TmenuTitle[4] = "<img src='"+timgpath+"images/tp_works_off.gif' width=110 height=40 border=0 name='m5'>";


TmenuTitlec[0] = "<img src='"+timgpath+"images/tp_home_on.gif' width=110 height=40 border=0 name='m1'>";
TmenuTitlec[1] = "<img src='"+timgpath+"images/tp_contact_on.gif' width=110 height=40 border=0 name='m2'>";
TmenuTitlec[2] = "<img src='"+timgpath+"images/tp_communication_on.gif' width=150 height=40 border=0 name='m3'>";
TmenuTitlec[3] = "<img src='"+timgpath+"images/tp_about_on.gif' width=110 height=40 border=0 name='m4'>";
TmenuTitlec[4] = "<img src='"+timgpath+"images/tp_works_on.gif' width=110 height=40 border=0 name='m5'>";


TmenuUrl[0] = timgpath+"index.htm onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage(\"m1\",\"\","+"\""+timgpath+"images/tp_home_cc.gif\",0)'";
TmenuUrl[1] = timgpath+"contact/index.htm onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage(\"m2\",\"\","+"\""+timgpath+"images/tp_contact_cc.gif\",0)'";
TmenuUrl[2] = timgpath+"pinfo/index.htm onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage(\"m3\",\"\","+"\""+timgpath+"images/tp_communication_cc.gif\",0)'";
TmenuUrl[3] = timgpath+"pcollection/index.htm onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage(\"m4\",\"\","+"\""+timgpath+"images/tp_about_cc.gif\",0)'";
TmenuUrl[4] = timgpath+"about/index.htm onMouseOut='MM_swapImgRestore()' onMouseOver='MM_swapImage(\"m5\",\"\","+"\""+timgpath+"images/tp_works_cc.gif\",0)'";


var TitemPos = 0;

document.write("<table width=910 border=0 cellpadding=0 cellspacing=0>");
document.write("<tr>");

document.write("  <td width=910 height=10 alifn=left valign=center bgcolor='#ffffff'>");
document.write("	<table width=550 border=0 cellpadding=0 cellspacing=0>");
document.write("	<tr>");


  for (i = 0; i < TnumofItem; i++) {
    if (i < TnumofMenuItem) {
      if (pageName == TmenuName[i]) {


	  	if (i == 0) {
	    		document.write("<td width=110 align=left valign=center>" + TmenuTitlec[i] +"</td>");
		}
	  	else {
	    		document.write("<td width=110 align=left valign=center>" + TmenuTitlec[i] +"</td>");
		}


	    TitemPos = i;
      		}
      else {

	  	if (i == 0) {
	    		document.write("<td width=110 align=left valign=center><a href=" + TmenuUrl[i]  + " onFocus='this.blur()'>" +TmenuTitle[i] + "</a></td>");
		}
	  	else {
	    		document.write("<td width=110 align=left valign=center><a href=" + TmenuUrl[i]  + " onFocus='this.blur()'>" +TmenuTitle[i] + "</a></td>");
		}


           }
    }
	else {
      if (pageName == TmenuName[i])
	  	TitemPos = i;
    }
}

document.write("	<td width=340 align=center valign=center>");
document.write("		&nbsp;");
document.write("	</td>");

document.write("	</tr>");
document.write("	</table>");
document.write("  </td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td colspan=4 width=910 height=10>");
document.write("	");
document.write("</td>");
document.write("</tr>");
document.write("</table>");

}



function PrintFoot(fflag)
{

if (fflag=="0")
	fimgpath="";
if (fflag=="1")
	fimgpath="../";
if (fflag=="2")
	fimgpath="../../";
if (fflag=="3")
	fimgpath="../../../";


document.write("<table width=910 height=21 border=0 cellpadding=0 cellspacing=0>");
document.write("<tr height=1>");
document.write("  <td width=910 height=1 align=center valign=center bgcolor='#ffffff'>");
document.write("  </td>");
document.write("</tr>");
document.write("<tr height=5>");
document.write("  <td width=910 align=center valign=bottom bgcolor='ffffff' class='bottomword'>");
document.write("  </td>");
document.write("</tr>");
document.write("<tr height=5>");
document.write("  <td width=910 align=center valign=bottom bgcolor='ffffff' style='font-size:9px'>");
document.write("Copyright 2006 littlebluelamb, Inc. All rights reserved");
document.write("  </td>");
document.write("</tr>");
document.write("<tr height=10>");
document.write("  <td width=910 align=center valign=bottom bgcolor='ffffff' style='font-size:9px'>");
document.write("<a href='http://www.miibeian.gov.cn/'></a>");
document.write("  </td>");
document.write("</tr>");
document.write("</table>");

}