<!-- Hide script from old browsers

function load_navig(add_path) {

  if (document.images) {

        nav1roll = new Image()
        nav1roll.src = add_path + "images/navig/collection_r.gif"
        nav1off = new Image()
        nav1off.src = add_path + "images/navig/collection_g.gif"
        nav2roll = new Image()
        nav2roll.src = add_path + "images/navig/avaliable_r.gif"
        nav2off = new Image()
        nav2off.src = add_path + "images/navig/avaliable_g.gif"
        nav3roll = new Image()
        nav3roll.src = add_path + "images/navig/neshka_r.gif"
        nav3off = new Image()
        nav3off.src = add_path + "images/navig/neshka_g.gif"
        nav4roll = new Image()
        nav4roll.src = add_path + "images/navig/amber_r.gif"
        nav4off = new Image()
        nav4off.src = add_path + "images/navig/amber_g.gif"
        nav5roll = new Image()
        nav5roll.src = add_path + "images/navig/wholesale_r.gif"
        nav5off = new Image()
        nav5off.src = add_path + "images/navig/wholesale_g.gif"
        nav6roll = new Image()
        nav6roll.src = add_path + "images/navig/home_r.gif"
        nav6off = new Image()
        nav6off.src = add_path + "images/navig/home_g.gif"
        
        down1roll = new Image()
        down1roll.src = add_path + "images/navig/rings_r.gif"        
        down1off = new Image()
        down1off.src = add_path + "images/navig/rings_g.gif"
        down2roll = new Image()
        down2roll.src = add_path + "images/navig/earrings_r.gif"                
        down2off = new Image()
        down2off.src = add_path + "images/navig/earrings_g.gif"
        down3roll = new Image()
        down3roll.src = add_path + "images/navig/pendants_r.gif"        
        down3off = new Image()
        down3off.src = add_path + "images/navig/pendants_g.gif"
        down4roll = new Image()
        down4roll.src = add_path + "images/navig/bracelets_r.gif"                
        down4off = new Image()
        down4off.src = add_path + "images/navig/bracelets_g.gif"
        down5roll = new Image()
        down5roll.src = add_path + "images/navig/brooches_r.gif"                
        down5off = new Image()
        down5off.src = add_path + "images/navig/brooches_g.gif"
        down6roll = new Image()
        down6roll.src = add_path + "images/navig/necklaces_r.gif"                        
        down6off = new Image()
        down6off.src = add_path + "images/navig/necklaces_g.gif"
        down7roll = new Image()
        down7roll.src = add_path + "images/navig/sets_r.gif"                
        down7off = new Image()
        down7off.src = add_path + "images/navig/sets_g.gif"
        
        pg1roll = new Image()
        pg1roll.src = add_path + "images/navig/1_r.gif"                
        pg1off = new Image()
        pg1off.src = add_path + "images/navig/1_g.gif"
        pg2roll = new Image()
        pg2roll.src = add_path + "images/navig/2_r.gif"                
        pg2off = new Image()
        pg2off.src = add_path + "images/navig/2_g.gif"
        pg3roll = new Image()
        pg3roll.src = add_path + "images/navig/3_r.gif"                        
        pg3off = new Image()
        pg3off.src = add_path + "images/navig/3_g.gif"
        pg4roll = new Image()
        pg4roll.src = add_path + "images/navig/4_r.gif"                        
        pg4off = new Image()
        pg4off.src = add_path + "images/navig/4_g.gif"        
        pg5roll = new Image()
        pg5roll.src = add_path + "images/navig/5_r.gif"                        
        pg5off = new Image()
        pg5off.src = add_path + "images/navig/5_g.gif"
        pg6roll = new Image()
        pg6roll.src = add_path + "images/navig/6_r.gif"                
        pg6off = new Image()
        pg6off.src = add_path + "images/navig/6_g.gif"
        pg7roll = new Image()
        pg7roll.src = add_path + "images/navig/7_r.gif"                
        pg7off = new Image()
        pg7off.src = add_path + "images/navig/7_g.gif"
        pg8roll = new Image()
        pg8roll.src = add_path + "images/navig/8_r.gif"                
        pg8off = new Image()
        pg8off.src = add_path + "images/navig/8_g.gif"
        pg9roll = new Image()
        pg9roll.src = add_path + "images/navig/9_r.gif"                        
        pg9off = new Image()
        pg9off.src = add_path + "images/navig/9_g.gif"

        orderroll = new Image()
        orderroll.src = add_path + "images/navig/order_r.gif"                                
        orderoff = new Image()
        orderoff.src = add_path + "images/navig/order_g.gif"
        
        nav11roll = new Image()
        nav11roll.src= add_path + "images/_rings2.jpg"
        nav11off = new Image()
        nav11off.src= add_path + "images/_rings.jpg"    
        nav12roll = new Image()
        nav12roll.src= add_path + "images/_earrings2.jpg"
        nav12off = new Image()
        nav12off.src= add_path + "images/_earrings.jpg"
        nav13roll = new Image()
        nav13roll.src= add_path + "images/_bracelets2.jpg"
        nav13off = new Image()
        nav13off.src= add_path + "images/_bracelets.jpg"
        nav14roll = new Image()
        nav14roll.src= add_path + "images/_broaches2.jpg"
        nav14off = new Image()
        nav14off.src= add_path + "images/_broaches.jpg"         
        nav15roll = new Image()
        nav15roll.src= add_path + "images/_necklaces2.jpg"
        nav15off = new Image()
        nav15off.src= add_path + "images/_necklaces.jpg"
        nav16roll = new Image()
        nav16roll.src= add_path + "images/_pendants2.jpg"
        nav16off = new Image()
        nav16off.src= add_path + "images/_pendants.jpg"  
        nav17roll = new Image()
        nav17roll.src= add_path + "images/_sets2.jpg"
        nav17off = new Image()
        nav17off.src= add_path + "images/_sets.jpg"          
      }
}
        
var clicked = null

var win_nr = 0

function change_image(whichimage)
{
        if (document.images) {
                if (clicked != whichimage) {
                        document.images [whichimage].src = eval(whichimage + "roll.src")
                }
        }
}

function return_image(whichimage)
    {
    if (document.images) {
        if (clicked != whichimage){
        document.images [whichimage].src = eval(whichimage + "off.src")
        }
    }
}

function OpenDetails(id, w_, h_, price_, price_dsc, add_path) {

  h_ = h_ + 12;
  w_ = w_ + 12;
  var win_size = '';
  win_size = win_size + 'resizable=1,scrollbars=1,height=';
  win_size = win_size + h_;
  win_size = win_size + ',width=';
  win_size = win_size + w_;
  win_size = win_size + ',top=10,left=10';
  
  win_nr++;
  
  var win = window.open("", id+win_nr, win_size);
  with (win.document) {    open("text/html", "replace");	
    write("<HTML><HEAD><TITLE>Design ");
    write(id);
    write("</TITLE>");
    write("<link rel=stylesheet type=text/css href=");
    write(add_path);
    write("neshka.css>");
    write("</HEAD>");
    write("<BODY bgcolor=#404040>");
    write("<table border=0 align=center valign=middle>");
    write("<tr>");
    write("<td align=center><font size=2 color=#FFFFFF>design ");
    write(id);
    
    if (price_ > 0)
    {
      write("&nbsp;&nbsp;&nbsp;&nbsp;");
      write(price_dsc);
      write("&nbsp;");
      write(price_); 
      write(",00");        
    }
    
    write("<p><a href='JavaScript:window.close()'><img alt='click to close' style='border: 6px solid #FFFFFF' src=");
    write(add_path);
    write("images/catalog/");
    write(id);
    write("l.jpg valign=middle align=centre>");
    write("<a href='JavaScript:window.close()'><br><br>close</a></font></p>");
    write("</td></tr></table></BODY></HTML>");
    close();
  } 
}

function Show_p(id, w_, h_, set_, price_, price_dsc, add_path)
{
  var con_ = ''; 
  con_ = '<center>';
  con_ = con_ + '<table border=0 width=100% valign=middle height=100% cellpadding=0 cellspacing=0>';
  con_ = con_ + '<tr><td width=100% align="center">';
  con_ = con_ + '<p align=center>';
  con_ = con_ + '<a href=';
  con_ = con_ + "'";
  con_ = con_ + 'JavaScript:OpenDetails("';
  con_ = con_ + id + '", ';
  con_ = con_ + w_ + ', ';
  con_ = con_ + h_ + ', ';
  con_ = con_ + price_ + ', ';
  con_ = con_ + '"' + price_dsc + '", "' + add_path + '")';
  con_ = con_ + "'";
  con_ = con_ + '>'; 
  con_ = con_ + '<img border=0 alt="click to enlarge" style="border: 6px solid #FFFFFF" src=';
  con_ = con_ + add_path + 'images/catalog/';  
  con_ = con_ + id; 
  con_ = con_ + '.jpg></p>';
  con_ = con_ + '<p align=center><font size=2>';
  con_ = con_ + '<a href=';
  con_ = con_ + "'";
  con_ = con_ + 'JavaScript:OpenDetails("';
  con_ = con_ + id + '", ';
  con_ = con_ + w_ + ', ';
  con_ = con_ + h_ + ', ';
  con_ = con_ + price_ + ', ';
  con_ = con_ + '"' + price_dsc + '", "' + add_path + '")';
  con_ = con_ + "'";
  con_ = con_ + '>';
  con_ = con_ + 'design ';
  con_ = con_ + id + '</a>';
  
  if (price_ > 0)
  {
    con_ = con_ + '&nbsp;&nbsp;&nbsp;&nbsp;' + price_dsc + ' ';
    con_ = con_ + price_; 
    con_ = con_ + ',00';        
  }

  if (set_ > 0)
  {  
    con_ = con_ + '&nbsp;&nbsp;&nbsp;&nbsp;<a href=sets.html?set=';
    con_ = con_ + set_;
    con_ = con_ + '>';
    con_ = con_ + 'matching set</a>';
  }  
  
  con_ = con_ + '</font></p>';
  con_ = con_ + '<img src=' + add_path + 'images/zawijas.gif>';
  con_ = con_ + '</td>';
  con_ = con_ + '</tr>';
  con_ = con_ + '</table></center>';  
  
  //if IE 4+
  if (document.all)
    dcontent.innerHTML=con_;
  //else if NS 4
  else if (document.layers){
    document.ns4dcontent.document.ns4dcontent2.
    document.write(con_);
    document.ns4dcontent.document.ns4dcontent2.
    document.close();
  }
  //else if NS 6 (supports new DOM)
  else if (document.getElementById){
    rng = document.createRange();
    el = document.getElementById("dcontent");
    rng.setStartBefore(el);
    htmlFrag = rng.createContextualFragment(con_);
    while (el.hasChildNodes())
    el.removeChild(el.lastChild);
    el.appendChild(htmlFrag);
  } 
}
function OpenMore () {
  var MorWin = window.open("moreinfo.html","MoreInfo","height=500,width=500,top=10,left=10");
}

function OpenTheBay () {
  var BayWin = window.open("thebay.html","NeshkaAtTheBay","height=560,width=800,top=10,left=10");
}

function OpenAccessForm () {
  var AccWin = window.open("access_form.html","ContactNeshka","height=430,width=500,top=10,left=10");
}

function CheckAccess()
{
  var pass_ = " ";  
  var f = document.forms["who_"];
  var user = f.elements["user"].value;
  var pass = f.elements["pass"].value;
  var coun = f.elements["country"].value;
  var arg1 = user.substr(4, 3);
  var num = 0; 
    
    if ( (user.substr(0, 4) == "cust") ) {
      num = (3 * parseInt(arg1) - 1) % 1000;
      pass_ = "neshka" + num.toString();      
      if (pass == pass_) {
         var expires = new Date(); 
         expires.setDate(expires.getDate() + 1);      
         if (coun == "CANADA") {
           SetCookie('n_profile', user.substr(4, 3) + pass.substr(6, 3) + 'ca', expires);
           window.location = "./ca/collection.html";
         }
         if (coun == "USA") {
           SetCookie('n_profile', user.substr(4, 3) + pass.substr(6, 3) + 'us', expires);
           window.location = "./us/collection.html";
         }                 
         return true;
      }
    }
  alert("Authorisation failed. Credentials passed to the server do not match the credentials required to log on. Please try to logon again or contact Neshka Design Studio."); 
};

function SetCookie (name, value, exp) 
   {
   var argv = SetCookie.arguments;
   var argc = SetCookie.arguments.length;
   var expires = (argc > 2) ? argv[2] : null;
   var path = (argc > 3) ? argv[3] : null;
   var domain = (argc > 4) ? argv[4] : null;
   var secure = (argc > 5) ? argv[5] : false;
   document.cookie = name + "=" + escape(value) + 
        ((expires == null) ? "" : ("; expires=" + exp.toGMTString())) +
        ((path == null) ? "" : ("; path=" + path)) +
        ((domain == null) ? "" : ("; domain=" + domain)) +
        ((secure == true) ? "; secure" : ""); 
   }   
   
function retrieve_profile() {
	var cookie = '', real_value = '';
	cookie = document.cookie;   	
	var offset_start = cookie.indexOf('n_profile');
	if (offset_start == -1) return '                    ';
	offset_start = offset_start + 10;
	var offset_end = offset_start + 6;

	return cookie.substring(offset_start, offset_end);		
}

function retrieve_path() {
	var cookie = '';
	cookie = document.cookie;   	
	var offset_start = cookie.indexOf('n_profile');
	if (offset_start == -1) return 'xx';
	offset_start = offset_start + 16;
	var offset_end = offset_start + 2;

	return cookie.substring(offset_start, offset_end);		
}

function sec_(path_to_main)
{
  var pass_ = " ";

  prof_ = retrieve_profile();
  var arg1 = prof_.substr(0, 3);
  var arg2 = prof_.substr(3, 3);
  var num = 0;
  
  num = (3 * parseInt(arg1) - 1) % 1000;
  pass_ = num.toString();     

  if (arg2 != pass_) {
    alert("You are not authorised to access this page. Please try to logon again or contact Neshka Design Studio.");
    window.location = path_to_main + "/wholesale.html";
  }
}
 
function sel_collection(path_to_main)
{
  var path_ = "  ";
  path_ = retrieve_path();
  
  if (path_ == "ca") {
    window.location = path_to_main + "ca/collection.html";  
  }  
  else if (path_ == "us") {
    window.location = path_to_main + "us/collection.html";  
  }  
  else { 
    window.location = path_to_main + "collection.html";  
  }  
}

function Show_set(add_path, set_, price_dsc, id1, w1, h1, p1, id2, w2, h2, p2, id3, w3, h3, p3, id4, w4, h4, p4, id5, w5, h5, p5, id6, w6, h6, p6)
{
  var con_ = ''; 
     
  con_ = con_ + '<table border=0 cellpadding=0 valign=middle cellspacing=10>';

    con_ = con_ +  '<tr>';
    if (id1 > 0) {    
      con_ = con_ + '<td width=74 align="center" height=73>';    
      con_ = con_ + '<a href=' + "'" + 'JavaScript:Show_p("';
      con_ = con_ + id1 + '", ' + w1 + ', ' + h1 + ', "0", ' + p1 + ', "' + price_dsc + '", "' + add_path + '");' + "'" + '>'; 
      con_ = con_ + '<img border=0 alt="Design ' + id1 + '. Click to enlarge" src="' + add_path + 'images/catalog/' + id1 + 's.jpg" width=70 height=70 style="border: 2px solid #FFFFFF"></a>';
      con_ = con_ + '</td>';
    }        
    if (id2 > 0) {          
      con_ = con_ + '<td width=74 align="center" height=73>';
      con_ = con_ + '<a href=' + "'" + 'JavaScript:Show_p("';
      con_ = con_ + id2 + '", ' + w2 + ', ' + h2 + ', "0", ' + p2 + ', "' +  price_dsc + '", "' + add_path + '");' + "'" + '>'; 
      con_ = con_ + '<img border=0 alt="Design ' + id2 + '. Click to enlarge" src="' + add_path + 'images/catalog/' + id2 + 's.jpg" width=70 height=70 style="border: 2px solid #FFFFFF"></a>';
      con_ = con_ + '</td>';
    }        
    if (id3 > 0) {      
      con_ = con_ + '<td width=74 align="center" height=73>';    
      con_ = con_ + '<a href=' + "'" + 'JavaScript:Show_p("';
      con_ = con_ + id3 + '", ' + w3 + ', ' + h3 + ', "0", ' + p3 + ', "' + price_dsc + '", "' + add_path + '");' + "'" + '>'; 
      con_ = con_ + '<img border=0 alt="Design ' + id3 + '. Click to enlarge" src="' + add_path + 'images/catalog/' + id3 + 's.jpg" width=70 height=70 style="border: 2px solid #FFFFFF"></a>';
      con_ = con_ + '</td>';
      }                     
    if (id4 > 0) {     
      con_ = con_ + '<td width=74 align="center" height=73>';    
      con_ = con_ + '<a href=' + "'" + 'JavaScript:Show_p("';
      con_ = con_ + id4 + '", ' + w4 + ', ' + h4 + ', "0", ' + p4 + ', "' + price_dsc + '", "' + add_path + '");' + "'" + '>'; 
      con_ = con_ + '<img border=0 alt="Design ' + id4 + '. Click to enlarge" src="' + add_path + 'images/catalog/' + id4 + 's.jpg" width=70 height=70 style="border: 2px solid #FFFFFF"></a>';
      con_ = con_ + '</td>';
      }        
    if (id5 > 0) {      
      con_ = con_ + '<td width=74 align="center" height=73>';      
      con_ = con_ + '<a href=' + "'" + 'JavaScript:Show_p("';
      con_ = con_ + id5 + '", ' + w5 + ', ' + h5 + ', "0", ' + p5 + ', "' +  price_dsc + '", "' + add_path + '");' + "'" + '>'; 
      con_ = con_ + '<img border=0 alt="Design ' + id5 + '. Click to enlarge" src="' + add_path + 'images/catalog/' + id5 + 's.jpg" width=70 height=70 style="border: 2px solid #FFFFFF"></a>';
      con_ = con_ + '</td>';  
    }        

    if (id6 > 0) {      
      con_ = con_ + '<td width=74 align="center" height=73>';    
      con_ = con_ + '<a href=' + "'" + 'JavaScript:Show_p("';
      con_ = con_ + id6 + '", ' + w6 + ', ' + h6 + ', "0", ' + p6 + ', "' + price_dsc + '", "' + add_path + '");' + "'" + '>'; 
      con_ = con_ + '<img border=0 alt="Design ' + id6 + '. Click to enlarge" src="' + add_path + 'images/catalog/' + id6 + 's.jpg" width=70 height=70 style="border: 2px solid #FFFFFF"></a>';
      con_ = con_ + '</td>';
    }        
    
    con_ = con_ +  '</tr>';     
  con_ = con_ + '</table>';
   
  //if IE 4+
  if (document.all)
    dcontent_a.innerHTML=con_;
  //else if NS 4
  else if (document.layers){
    document.ns4dcontent_a.document.ns4dcontent2_a.
    document.write(con_);
    document.ns4dcontent_a.document.ns4dcontent2_a.
    document.close();
  }
  //else if NS 6 (supports new DOM)
  else if (document.getElementById){
    rng = document.createRange();
    el = document.getElementById("dcontent_a");
    rng.setStartBefore(el);
    htmlFrag = rng.createContextualFragment(con_);
    while (el.hasChildNodes())
    el.removeChild(el.lastChild);
    el.appendChild(htmlFrag);
  } 
  
  var anyString=set_;

  con_ = '<img src="' + add_path + 'images/set.gif">';
  con_ = con_ + '<img src="' + add_path + 'images/' + anyString.charAt(0) + '.gif">';
  con_ = con_ + '<img src="' + add_path + 'images/' + anyString.charAt(1) + '.gif">';  
  con_ = con_ + '<img src="' + add_path + 'images/' + anyString.charAt(2) + '.gif">';
  con_ = con_ + '<img src="' + add_path + 'images/' + anyString.charAt(3) + '.gif">';

  //if IE 4+
  if (document.all)
    dcontent_b.innerHTML=con_;
  //else if NS 4
  else if (document.layers){
    document.ns4dcontent_b.document.ns4dcontent2_b.
    document.write(con_);
    document.ns4dcontent_b.document.ns4dcontent2_b.
    document.close();
  }
  //else if NS 6 (supports new DOM)
  else if (document.getElementById){
    rng = document.createRange();
    el = document.getElementById("dcontent_b");
    rng.setStartBefore(el);
    htmlFrag = rng.createContextualFragment(con_);
    while (el.hasChildNodes())
    el.removeChild(el.lastChild);
    el.appendChild(htmlFrag);
  } 

  con_ = ""

  //if IE 4+
  if (document.all)
    dcontent.innerHTML=con_;
  //else if NS 4
  else if (document.layers){
    document.ns4dcontent.document.ns4dcontent2.
    document.write(con_);
    document.ns4dcontent.document.ns4dcontent2.
    document.close();
  }
  //else if NS 6 (supports new DOM)
  else if (document.getElementById){
    rng = document.createRange();
    el = document.getElementById("dcontent");
    rng.setStartBefore(el);
    htmlFrag = rng.createContextualFragment(con_);
    while (el.hasChildNodes())
    el.removeChild(el.lastChild);
    el.appendChild(htmlFrag);
  } 

}

var qsParm = new Array();
qsParm['set'] = null;
  
function qs() {

  var query = window.location.search.substring(1);
  var parms = query.split('&');
  for (var i=0; i<parms.length; i++) {
     var pos = parms[i].indexOf('=');
     if (pos > 0) {
        var key = parms[i].substring(0,pos);
        var val = parms[i].substring(pos+1);
        qsParm[key] = val;
        }
     }
  }

qs();

// End hiding script from old browsers -->