c=0;
cart_name=new Array();
cart_item=new Array();
cart_category=new Array();
cart_subcat=new Array();
cart_price=new Array();
// cart_shipping=new Array();
cart_option=new Array ();
cart_qua=new Array ();
nav1=''; nav2=''; nav3='';

if(document.images) {
pics = new Array(); 
pics[1] = new Image();
pics[1].src = "kits.gif"; 
pics[2] = new Image();
pics[2].src = "kitsh.gif";
pics[3] = new Image();
pics[3].src = "beads.gif";
pics[4] = new Image();
pics[4].src = "beadsh.gif";
pics[5] = new Image();
pics[5].src = "jewellery.gif"; 
pics[6] = new Image();
pics[6].src = "jewelleryh.gif";
pics[7] = new Image();
pics[7].src = "home.gif"; 
pics[8] = new Image();
pics[8].src = "homeh.gif";
pics[9] = new Image();
pics[9].src = ".gif"; 
pics[10] = new Image();
pics[10].src = "h.gif";
pics[11] = new Image();
pics[11].src = ".gif"; 
pics[12] = new Image();
pics[12].src = "h.gif";
pics[13] = new Image();
pics[13].src = ".gif"; 
pics[14] = new Image();
pics[14].src = "h.gif";
pics[15] = new Image();
pics[15].src = "contact.gif"; 
pics[16] = new Image();
pics[16].src = "contacth.gif";
pics[17] = new Image();
pics[17].src = "classes.gif"; 
pics[18] = new Image();
pics[18].src = "classesh.gif";
pics[19] = new Image();
pics[19].src = "findings.gif"; 
pics[20] = new Image();
pics[20].src = "findingsh.gif";
pics[21] = new Image();
pics[21].src = "parties.gif"; 
pics[22] = new Image();
pics[22].src = "partiesh.gif";
}

function changer(from,to) {
if(document.images) {
document.images[from].src = pics[to].src;
}
}

function replace(string,text,by) {
// Replaces text with by in string from http://www.irt.org/articles/js037/index.htm
// syntax: string=replace(string,text,by)
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return string;

    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return string;
    if (i == -1) return string;

    var newstr = string.substring(0,i) + by;

    if (i+txtLength < strLength)
        newstr += replace(string.substring(i+txtLength,strLength),text,by);

    return newstr;
}

