
var arrAppPath, strAppPath, strAppName, strPath;
strPath = location.href.toLowerCase();

arrAppPath = location.href.split('/');
strAppName = arrAppPath[3];

if(( strPath.indexOf('/coresite/content/') > 0) && ( strPath.indexOf('/disclaimer/')>0)) {
strAppName = arrAppPath[7];
strAppName =  strAppName.slice(0, strAppName.indexOf('.htm'));
if (strAppName.indexOf('_') > 0) strAppName = strAppName.slice(0, strAppName.indexOf('_'));
} 

var LANG_US_ENGLISH = 'en-us';
var LANG_FRANCE_FRENCH      = 'fr';
var LANG_JAPAN_JAPANESE     = 'ja';
var LANG_GERMANY_GERMAN     = 'de';
var LANG_ITALY_ITALIAN      = 'it';
var LANG_BRAZIL_PORTUGUESE  = 'pt-br';
var LANG_SPAIN_SPANISH      = 'es';

var LANG_COOKIE = "DMLANG"

function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function setCookie (name,value,path,domain,expires) {
   var curCookie = name + "=" + escape(value) 
         curCookie+="; path=" + path
         curCookie+="; domain=" + (domain != '' ? domain : '')
         curCookie+="; expires=" + expires
   document.cookie = curCookie
    
}

function getCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break; 
  }
  return null;
}

function getLang() {
if (getCookie("DMLANG") == null) return LANG_US_ENGLISH;
return getCookie("DMLANG");
}

var windowProp;
if ((screen.width >= 1000) && (screen.height >= 720)) {
    windowProp = "width=800,height=500,location=0,menubar=1,toolbar=1,status=1,scrollbars=1,resizable=1,screenX=10,screenY=10"
} 
else {
    windowProp = "width=690,height=413,location=0,menubar=1,toolbar=1,status=1,scrollbars=1,resizable=1,screenX=10,screenY=10"
}

function cartView()
{
        window.open('https://www.paypal.com/cart/display=1&business=toolsmith@xmlvision.com','cartwin','width=600,height=400,scrollbars,location,resizable,status');

}


function show_footer() {
var strHTML="";

strHTML='<BR><TABLE BORDER="0" CELLPADDING="0" WIDTH="100%" BGCOLOR="#FFFFFF">'
+ '<TR><TD WIDTH="100%" ALIGN="CENTER"><FONT FACE="Verdana" SIZE="2" color="blue"><A HREF="./index.html" CLASS="footer2">kidsknits.com</A><img src=./images/spacer.gif width=10><A HREF="./dale_yarn.html" CLASS="footer2"> Dale of Norway Yarn</A><img src=./images/spacer.gif width=10><A HREF="dale_books.html" CLASS="footer2">Dale of Norway Pattern Books</A><img src=./images/spacer.gif width=10><a href=./knitpat.html class=footer2>KidsKnits Knitting Patterns</a><img src=./images/spacer.gif width=10><a href=./knitkit.html class=footer2>KidsKnits Knitting Kits</a></FONT></TD></TR>'
+ '<TR><TD HEIGHT=5></TD></TR>'
+ '<TR><TD WIDTH="100%" ALIGN="CENTER"><FONT FACE="Verdana" SIZE="1" color="black"><A HREF="about.html" CLASS="footer">About Us</A> | <A HREF="#" CLASS="footer" onClick="cartView();"> Shopping Cart</A> | <A HREF="./register.html" CLASS="footer">Email Sign-up</A></FONT></TD></TR>'
+ '<TR><TD WIDTH="100%" ALIGN="CENTER"><FONT FACE="Verdana" SIZE="1" color="black"><A HREF="#" CLASS="footer">Contact Us</A> | <A HREF=# CLASS="footer">Returns/Refunds</A> | <A HREF="#" CLASS="footer">Customer Service</A></FONT></TD></TR>'
+ '<TR><TD WIDTH="100%" ALIGN="CENTER"><FONT FACE="Verdana" SIZE="1" color="black"><A HREF="./sitemap.html" CLASS="footer">Sitemap</A> | <A HREF="./index.html" CLASS="footer">Home</A> | <A HREF="security.html" CLASS="footer">Security/Privacy</A></FONT></TD></TR>'
+ '<TR><TD WIDTH="100%" ALIGN="CENTER"><FONT FACE="Verdana" SIZE="1" color="black"><BR>KidsKnits is a wholly-owned subsidiary of Mountain Toolsmiths, Inc. &copy 2000-2009, Kidsknits.com All Rights Reserved. &nbsp;</FONT></TD></TR></TABLE>';
<!-- stuff deleted here -->
document.write(strHTML);

}
function getFooterMsg(MsgId) {
var arrMsg = new Array();
    
    arrMsg[LANG_US_ENGLISH+'1'] = 'Terms and Conditions of Use';
    arrMsg[LANG_US_ENGLISH+'2'] = 'Privacy Statement';
    arrMsg[LANG_US_ENGLISH+'3'] = 'Hours of Operation';
    arrMsg[LANG_US_ENGLISH+'4'] = 'Application Terms';
    arrMsg[LANG_US_ENGLISH+'5'] = '&copy; 1999-2000 Merrill Lynch. All Rights Reserved.';    

arrMsg[LANG_FRANCE_FRENCH+'1'] = 'Conditions d\'utilisation';
    arrMsg[LANG_FRANCE_FRENCH+'2'] = 'Clause de confidentialit&#233;';
    arrMsg[LANG_FRANCE_FRENCH+'3'] = 'Heures d\'ouverture';
    arrMsg[LANG_FRANCE_FRENCH+'4'] = 'Conditions d\'utilisation';
    arrMsg[LANG_FRANCE_FRENCH+'5'] = '&copy; 1999-2000 Merrill Lynch. Tous droits r&#233;serv&#233;s.';    
        
arrMsg[LANG_JAPAN_JAPANESE+'1'] = '&#21033;&#29992;&#26465;&#38917;&#12362;&#12424;&#12403;&#12503;&#12521;&#12452;&#12496;&#12471;&#12540;&#22768;&#26126;'
    arrMsg[LANG_JAPAN_JAPANESE+'2'] = '&#21033;&#29992;&#26465;&#38917;&#12362;&#12424;&#12403;&#12503;&#12521;&#12452;&#12496;&#12471;&#12540;&#22768;&#26126;';
    arrMsg[LANG_JAPAN_JAPANESE+'3'] = '&#21942;&#26989;&#26178;&#38291;';
    arrMsg[LANG_JAPAN_JAPANESE+'4'] = '&#27880;&#24847;&#20107;&#38917;';
    arrMsg[LANG_JAPAN_JAPANESE+'5'] = '&copy; 1999-2000 Merrill Lynch</a>. &#12371;&#12398;&#12469;&#12452;&#12488;&#12398;&#33879;&#20316;&#27177;&#12399;&#20840;&#12390;&#12513;&#12522;&#12523;&#12522;&#12531;&#12481;&#12395;&#24112;&#23646;&#12375;&#12414;&#12377;&#12290;';    

    arrMsg[LANG_BRAZIL_PORTUGUESE+'1'] = 'Termos e Condições de Uso';  
    arrMsg[LANG_BRAZIL_PORTUGUESE+'2'] = 'Declaração de Privacidade';
    arrMsg[LANG_BRAZIL_PORTUGUESE+'3'] = 'Heures d\'ouverture';
    arrMsg[LANG_BRAZIL_PORTUGUESE+'4'] = 'Conditions d\'utilisation';
arrMsg[LANG_BRAZIL_PORTUGUESE+'5'] = '&copy; 1999-2001 Merrill Lynch</a>. Todos os direitos reservados.';
    
return arrMsg[getLang()+MsgId]
}

show_footer();
