function inputLable(name, lable){
    $(name).focus(function(){
        var input = $(this); 
        if (input.val() == lable){
            input.val('');
            input.removeClass('input_lable');
            }
        });
    $(name).blur(function(){
        var input = $(this);
        var v = input.val();
        if ((!v) || (v == lable)){
            input.val(lable);
            input.addClass('input_lable');
            }
        });
    $(name).blur();        
}
var best_products = new Array();
var best_product_num=0;

function nextBestProduct(n){
    best_product_num=best_product_num+n;
    if (best_product_num>=best_products_count) best_product_num=0;
    if (best_product_num<0) best_product_num=best_products_count-1;
    var b = best_products[best_product_num];
    alert
    var a = document.getElementById('best_product_img_link');
    a.href=b[0];
    a = document.getElementById('best_product_link');
    a.href=b[0];
    a = document.getElementById('best_product_img');
    a.src=b[1];
    a.alt=b[2];
    a.title=b[2];
    return false;
}


function menuCategories(){
	$(function(){
	$('li.SubMenue').hover(
		function(){
   			$(this).css('background','url(/templates/vamshop/img/new/menu1li.gif) repeat-y');
			$(this).children('ul.cat_level_2').show();
			},
		function(){
			$(this).css('background','url(/templates/vamshop/img/new/menu1.png) no-repeat');
			$(this).children('ul.cat_level_2').hide();
			}
		);
	});
}

function addBookmark(url, title)
{
 if (!url) url = location.href;
 if (!title) title = document.title;
 
 //Gecko
 if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, "");
 //IE4+
 else if (typeof window.external == "object") window.external.AddFavorite(url, title);
 //Opera7+
 else if (window.opera && document.createElement)
 {
   var a = document.createElement('A');
   if (!a) return false; //IF Opera 6
   a.setAttribute('rel','sidebar');
   a.setAttribute('href',url);
   a.setAttribute('title',title);
   a.click();
 }
 else return false;
 
 return true;
}
