function topbar() {
document.write("<table cellspacing='0' cellpadding='0' border='0'><tr><td>");
document.write("<map name='topbar_map'>");
document.write("<area shape='rect' coords='690,0,734,25' href='index.html' TARGET='_parent' ALT='Home'>");
document.write("<area shape='rect' coords='691,0,800,25' href='contactus.html' TARGET='_parent' ALT='Contact'>");
document.write("</map>");
document.write("<img src='graphics/MountainRange.jpg' width='800' height='90' border='0' usemap='#topbar_map'>");
document.write("</td></tr><tr><td>");
document.write("<map name='navbar_map'>");
document.write("<area shape='rect' coords='0,0,80,25' href='index.html' TARGET='_parent' ALT='Home'>");
document.write("<area shape='rect' coords='81,0,180,25' href='clothing.html' TARGET='_parent' ALT='Clothing'>");
document.write("<area shape='rect' coords='181,0,260,25' href='Boots.html' TARGET='_parent' ALT='Shoes'>");
document.write("<area shape='rect' coords='261,0,370,25' href='ger.html' TARGET='_parent' ALT='Yurt'>");
document.write("<area shape='rect' coords='371,0,530,25' href='bows.html' TARGET='_parent'ALT='Composite Bows'>");
document.write("<area shape='rect' coords='521,0,625,25' href='media.html' TARGET='_parent' ALT='Media'>");
document.write("<area shape='rect' coords='626,0,800,25' href='languageservices.html' TARGET='_parent' ALT='LanguageServices'>");
document.write("</map>");
document.write("<img src='graphics/MainMenu.jpg' width='800' height='25' border='0' usemap='#navbar_map'>");
document.write("</td></tr></table>");
}


function leftmenu() {
document.write("<ul id='leftNav'>");
document.write("<li class='dept'><a href='clothing.html' class='deptLink'>CLOTHING</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=1'>Men's Wear</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=2'>Lady's Wear</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=3'>Jackets</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=4'>Vests &amp; Uuj</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=5'>Hats</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=6'>Belts</a></li>");
// document.write("<li class='coll'><a href='tshirts.html'>T-shirts</a></li>");
document.write("<li class='dept'><a href='Boots.html' class='deptLink'>SHOES</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=7'>Boots</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=8'>Slippers</a></li>");
document.write("<li class='dept'><a href='ger.html' class='deptLink'>GER</a></li>");
document.write("<li class='coll'><a href='yurt.html'>Yurt (Mongol Ger) Sizes</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=9'>Furniture</a></li>");
document.write("<li class='dept'><a href='bows.html' class='deptLink'>COMPOSITE BOWS</a></li>");
document.write("<li class='coll'><a href='archery.html'>Mongol Bows</a></li>");
document.write("<li class='dept'><a href='media.html' class='deptLink'>MEDIA</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=10'>Music CDs</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=11'>Video DVDs</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=17'>Books</a></li>");
document.write("<li class='coll'><a href='Amazon.html'>Books at Amazon</a></li>");
document.write("<li class='dept'><a href='languageservices.html' class='deptLink'>LANGUAGE SERVICES</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=14'>Calligraphy</a></li>");
document.write("<li class='coll'><a href='translations.html'>Translation & Interpretation</a></li>");
document.write("<li class='dept'><a href='miscellany.html' class='deptLink'>MISCELLANY</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=15'>Specials</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=12'>Games</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=13'>Accessories</a></li>");
document.write("<li class='coll'><a href='tiles.html?show=16'>Art</a></li>");
document.write("<li class='coll'><a href='postcards.html'>Free Postcards</a></li>");
// document.write("<li class='dept'><a href='wholesale.html' class='deptLink'>INSTITUTIONAL AND WHOLESALE</a></li>");
document.write("<li class='dept'><a href='resources.html' class='deptLink'>RESOURCES</a></li>");
document.write("<li class='dept'><a href='order.html' class='deptLink'>ORDER INFORMATION</a></li>");
document.write("<li class='dept'><a href='contactus.html' class='deptLink'>CONTACT US</a></li>");
document.write("<li class='dept'><a href='aboutus.html' class='deptLink'>ABOUT US</a></li>");
document.write("</ul>");
}


function frametop(bichig, picheight,txttitle) {
document.write("<table cellpadding='0' cellspacing='0' border='0' width='620'><tr>");
document.write("<td background='graphics/knotel.gif' width='50' rowspan='2' valign='top'><img src='" + bichig + "' width='50' height='" + picheight + "'></td>");
document.write("<td background='graphics/knotet.gif' width='475' height='95' class='title'>" + txttitle + "</td>");
document.write("<td background='graphics/knottr1.gif' width='65' height='95'>&nbsp;</td>");
document.write("<td background='graphics/knottr2.gif' width='30' height='95'>&nbsp;</td>");
document.write("</tr><tr><td colspan='2' width='540'>");
}


function framebottom() {
document.write("</td>");
document.write("<td background='graphics/knoter1.gif' width='30'>&nbsp;</td>");
document.write("</tr><tr>");
document.write("<td background='graphics/knotbl.gif' width='50' height='95'>&nbsp;</td>");
document.write("<td background='graphics/knoteb.gif' width='475' height='95'>&nbsp;</td>");
document.write("<td background='graphics/knotbr1.gif' width='65' height='95'>&nbsp;</td>");
document.write("<td background='graphics/knotbr2.gif' width='30' height='95'>&nbsp;</td>");
document.write("</tr></table>");
}


function footer() {
document.write("<center><address><hr>");
// document.write("To <a href='order.html'>order</a>, Contact us:<br>");
// document.write("email: <a href='mailto:mongol@nycmongol.com'>Mongol@NYCMongol.com</a><br>");
// document.write("phone: (212) 771-1969<br>");
document.write("<table cellpadding='0' cellspacing='15' border='0'><tr>");
document.write("<td><a href='index.html'>Home</a></td>");
document.write("<td>|</td>");
document.write("<td><a href='resources.html'>Resources</a></td>");
document.write("<td>|</td>");
document.write("<td><a href='order.html'>Order Info</a></td>");
document.write("<td>|</td>");
document.write("<td><a href='contactus.html'>Contact Us</a></td>");
document.write("<td>|</td>");
document.write("<td><a href='aboutus.html'>About Us</a></td>");
document.write("</tr></table>");
document.write("<div class='footer'>NYCMongol.com and all contents of these pages &copy;2001-" + (new Date()).getFullYear() + " by Kallisti Publishing Inc.</div>");
//document.write("<br><font size='1'>NYCMongol.com and all contents of these pages &copy;2001-" + (new Date()).getFullYear() + " by Kallisti Publishing Inc.</font>");
document.write("<br></address></center>");
}


function displayCell(itemArray,tilesnum) {
document.write("<td width='160' align='center' valign='top'>");
//document.write("<a href='graphics/" + itemArray[0] + "sm.jpg' class='thumbs'><img src='graphics/" + itemArray[0] + "sm.jpg' width='160' border='0'>");
document.write("<a href='item.html?show=" + tilesnum + "&id=" + itemArray[0] + "' class='thumbs'><img src='graphics/" + itemArray[0] + "sm.jpg' width='160' border='0'>");
document.write("<br><div class='pname'>" + itemArray[1] + "<br>US $" + itemArray[3] + "</div></a></td>");
}


function tilePage(prodarray,arraysz,titletxt,scriptgraphic,sgsize,tilesnum) {
document.write('<body background="graphics/DeelPatternLt.jpg" topMargin="0" marginwidth="0" marginheight="0">');
document.write('<table class="page" align="center" cellspacing="0" cellpadding="0" border="0">');
document.write(' <tr valign="top"><td width="800" colspan="2">');
topbar();
document.write('  </td></tr><tr><td width="180" bgcolor="white" valign="top">');
leftmenu();
document.write('  </td><td width="620" bgcolor="white" valign="top">');
frametop(scriptgraphic,sgsize,titletxt);
document.write(' <table bgcolor="white" cellpadding="0" cellspacing="15" border="0"><tr>');

var i=1;
//for(i=1;i<arraysz;i++){
while(prodarray[i] != null){
 displayCell(prodarray[i],tilesnum);
 if(i%3==0){
  document.write('</tr><tr>');
 }
i++;
}

document.write('  </tr></table>');
framebottom();
document.write('  </td></tr></table>');
footer();
document.write('</body>');
}


function displayAmazonCell(itemasin) {
document.write("<td width='128' height='248' align='center' valign='top'>");
document.write('<iframe src="http://rcm.amazon.com/e/cm?t=nycmongol-20&o=1&p=8&l=as1&asins=' + itemasin + '&fc1=000000&IS2=1&lt1=_blank&lc1=0000ff&bc1=000000&bg1=ffffff&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>');
document.write("</td>");
}


//function loadFoto(img, name, wide, high){
// foto1= new Image();
// foto1.src=(img);
// viewFoto(img, name, wide, high);
//}

function loadFoto(itemid, name, wide, high){
 var imge = "graphics/" + itemid + "lg.jpg";

//function viewFoto(img, name, wide, high){
 var features = "toolbar=no,location=no,directories=no,status=no,menubar=no," +
  "scrollbars=no,resizable=no,width=" + wide + ",height=" + high;
 dlg = window.open ("blank.html",itemid,features);
 dlg.document.write("<html><head><title>" + name + " Zoom</title></head>");
 dlg.document.write("<body bgcolor=white><center>");
 dlg.document.write("<table width=100% height=100%>");
 dlg.document.write("<tr><td align=center valign=middle>");
 dlg.document.write("<img src='" + imge + "'>");
 dlg.document.write("</td></tr>");
 dlg.document.write("<tr><td align=center valign=middle>");
 dlg.document.write("<a href=# onClick=window.close();>");
 dlg.document.write("<font size=1 face=Arial>Click to close</font></a>");
 dlg.document.write("</td></tr>");
 dlg.document.write("</table></body></html>");
}


function slideshow(){
 var features = "toolbar=no,location=no,directories=no,status=no,menubar=no," +
  "scrollbars=no,resizable=no,width=500,height=470";
 sld = window.open ("slides/gerslides.html","slides",features);
}


function colorsCotton(){
 document.write("<p><div class='itemdes'>Cotton material is regularly available in these solid colors:<ul>");
 document.write("<li>Black</li>");
 document.write("<li>Green</li>");
 document.write("<li>Red</li>");
 document.write("<li>Blue</li>");
 document.write("<li>Purple</li>");
 document.write("<li>Grey</li>");
 document.write("<li>Brown</li>");
 document.write("<li>Light Brown</li></ul></div></p>");
}

function colorsSilk(){
 document.write("<p><div class='itemdes'>Silk material is regularly available in these solid colors:<ul>");
 document.write("<li>Black</li>");
 document.write("<li>Green</li>");
 document.write("<li>Red</li>");
 document.write("<li>Blue</li>");
 document.write("<li>Purple</li>");
 document.write("<li>White</li>");
// document.write("<li>Turqois</li>");
 document.write("<li>Copper</li>");
 document.write("<li>Brown</li>");
 document.write("<li>Light Brown</li>");
 document.write("</ul>Several shades of each color available, especially blue. Material pattern will vary with seasonal availability.</div></p>");
}

function colorsJanjin(){
 document.write("<p><div class='itemdes'>Hats are regularly available in these solid colors:<ul>");
 document.write("<li>Green</li>");
 document.write("<li>Blue</li>");
 document.write("<li>Red</li>");
 document.write("<li>Purple</li>");
 document.write("</ul></div></p>");
}

function colorsHat(){
 document.write("<p><div class='itemdes'>Hats have patterned material dominant in these regularly available colors:<ul>");
 document.write("<li>Black</li>");
 document.write("<li>Green</li>");
 document.write("<li>Red</li>");
 document.write("<li>Blue</li>");
 document.write("<li>Purple</li>");
 document.write("<li>White</li>");
 document.write("<li>Brown</li>");
 document.write("</ul></div></p>");
}

function colorsSash(){
 document.write("<p><div class='itemdes'>Sash material is regularly available in these solid colors:<ul>");
 document.write("<li>Orange</li>");
 document.write("<li>Green</li>");
 document.write("<li>Yellow</li>");
 document.write("<li>Blue</li>");
 document.write("<li>Red</li>");
 document.write("<li>White</li>");
 document.write("</ul></div></p>");
}

function colorsVelvet(){
 document.write("<p><div class='itemdes'>Velvet material is regularly available in these solid colors:<ul>");
 document.write("<li>Black</li>");
 document.write("<li>Burgundy</li>");
 document.write("<li>Brown</li>");
 document.write("</ul></div></p>");
}

function colorsFelt(){
 document.write("<p><div class='itemdes'>Felt is normaly available only in White.</div></p>");
}

function colorsBrocade(){
 document.write("<p><div class='itemdes'>Brocade color and pattern will vary with seasonal availability.</div></p>");
}

function colorsEmbroider(){
 document.write("<p><div class='itemdes'>Embroidered material is subject to availability. Patterns will vary widely. Typically available in these dominant colors:<ul>");
 document.write("<li>Black</li>");
 document.write("<li>Green</li>");
 document.write("<li>Red</li>");
 document.write("<li>Blue</li>");
 document.write("<li>Purple</li>");
 document.write("<li>White</li>");
// document.write("<li>Turqois</li>");
// document.write("<li>Copper</li>");
 document.write("<li>Brown</li>");
 document.write("<li>Light Brown</li>");
 document.write("</ul>Material pattern will vary with seasonal availability.</div></p>");
}


//IE only
function copyToClipboard(s)
{
 if( window.clipboardData && clipboardData.setData )
  clipboardData.setData("Text", s);
}