function fixIE(){
		IE7 = navigator.userAgent.indexOf("MSIE 7.0") >= 0;
		IE6 = navigator.userAgent.indexOf("MSIE 6.0") >= 0;
		if (IE7) {
			type_height = jQuery("#type_menu ul.level-1 ul.level-2").height();
			brend_height = jQuery("#brend_menu ul.level-1 ul.level-2").height();
			
			jQuery("#type_menu ul.level-1 ul.level-2").parent().css("paddingBottom", type_height);
			jQuery("#type_menu ul.level-1 ul.level-2").css("marginTop", "10px")
			
			jQuery("#brend_menu ul.level-1 ul.level-2").parent().css("paddingBottom", brend_height);
			jQuery("#brend_menu ul.level-1 ul.level-2").css("marginTop", "10px");
		}
		
		if (IE6) {
			all_height = jQuery("#center_wrap").height();
			jQuery("#left_bg").height(all_height);
			jQuery("#right_bg").height(all_height);
		}
}
function show_hide(ind,subindex,v){
    for(i=0;i<=subindex;i++){
        $("#price_"+ind+'_'+i).hide();
    }
    $("#price_"+ind+'_'+v).show();
    v=$("#pid_value_"+ind+'_'+v).val();
    
    $("#pid_"+ind).val(v);
}
function dropdown(c_id){
	
	var lay=$(".menu_show-"+c_id);
	var li = $("li.menu-"+c_id);
	var link = $("a.menu-"+c_id);
	
	//var isMSIE = /*@cc_on!@*/false;
	var isIE6 = /msie|MSIE 6/.test(navigator.userAgent);
	var IE7 = navigator.userAgent.indexOf("MSIE 7.0") >= 0;
	
	if(dropped==c_id){
		if(lay.css('display')=='none'){
			if (isIE6 == true) {
				lay.css("display","block");
			} else {
				lay.show('slow');
			}
			li.addClass("active");
			link.addClass("active");
			dropped=c_id;
		}
		else {
			if (isIE6 == true) {
				lay.css("display","none");
			} else {
				lay.hide('slow');
			}
			li.removeClass("active");
			link.removeClass("active");
			dropped=0;
		}
	}
	else {
		if(dropped>0){
			if (isIE6 == true) {
				$(".menu_show-"+dropped).css("display","none");
			} else {
				$(".menu_show-"+dropped).hide('slow');
			}
			$("li.menu-"+dropped).removeClass("active");
			$("a.menu-"+dropped).removeClass("active");
		}
		if (isIE6 == true) {
			lay.css("display","block");
		} else {
			lay.show('slow');
		}
		li.addClass("active");
		link.addClass("active");
		dropped=c_id;
	}
	
}
dropped=0


function DecCnt(obj_id){
	inp = document.getElementById(obj_id);
	if (inp.value>0)inp.value--;
}

function IncCnt(obj_id){
	inp = document.getElementById(obj_id);
	inp.value++;
}

function targetBlank (url,width,height) {
  blankWin = window.open(url,'_blank','width='+width+',height='+height+',menubar=no,toolbar=no,location=no,directories=no,fullscreen=no,titlebar=no,hotkeys=yes,status=no,scrollbars=yes,resizable=yes');
}

function img_reload(img_src,img_href) {
	jQuery(".big_img a").attr('href',img_href);
	jQuery("#big_img").attr('src',img_src)
}
