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)
}
		
function a_hover(obj) {
	li = $(obj).parent();
	$(obj).addClass('hover');
	$(li).children(".left_round").show();
	$(li).children(".right_round").show();
}

function a_link(obj) {
	li = $(obj).parent();
	$(obj).removeClass('hover');
	$(li).children(".left_round").hide();
	$(li).children(".right_round").hide();
}

function authMenu_hide(){
	$("#auth_menu").hide();
	/*
	$("#auth_menu a").animate({ 
	    marginTop: "0",
	    opacity: 0.25,
	  }, 1000 );
	$("#auth_menu").animate({ 
	    height: "0",
	    opacity: 0.25,
	  }, 1500 );
	*/

}

function authMenu_show(){
	$("#auth_menu").show('slow');
	/*
	$("#auth_menu a").animate({
	    marginTop: "25",
	    opacity: 1,
	  }, 1500 );
	$("#auth_menu").animate({ 
	    height: "50px",
	    opacity: 1,
	  }, 1500 );
	*/
}

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);
	
	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
