$(document).ready(function(){
	
	//footermenu
	$("#footer-bottom-wrapper-top-menu .footer-bottom-wrapper-top-menu-item .hover").hover(
	  function () {
		$(this).css({"background-color" : "#FFCB95"});	  
		},
	  function () {
       	$(this).css({"background-color" : "#FEECCD"});
	  }
	);
	
	//rightmenu
	$(".lvl2-menu-item-sub-title").hover(
	  function () {
		$(this).css({"background-color" : "#ff00b9"});	  
		},
	  function () {
       	$(this).css({"background-color" : "#fcd5d5"});
	  }
	);
	
	//pager
	$("div.inapoi img").hover(
	  function () {
		$(this).attr({ src : "images/inapoiHov.jpg" });
		},
	  function () {
		$(this).attr({ src : "images/inapoiPg.jpg" });
		}
	);
	$("div.inainte img").hover(
	  function () {
		$(this).attr({ src : "images/inainteHov.jpg" });
		},
	  function () {
		$(this).attr({ src : "images/inaintePg.jpg" });
		}
	);
	
	//creare cont
	$("#frm-site-createaccount-PF").click(function () {
		$("#createaccountContainerPJ").insertAfter("#createaccountContainerPF");
		$("#createaccountContainerPJ").hide();
		$("#createaccountContainerPF").fadeIn("def");
    });

	$("#frm-site-createaccount-PJ").click(function () {
		$("#createaccountContainerPF").insertAfter("#createaccountContainerPJ");
		$("#createaccountContainerPF").hide();
		$("#createaccountContainerPJ").fadeIn("def");
    });

	var isCheckedPF = $("#frm-site-createaccount-PF").attr("checked");
	var isCheckedPJ = $("#frm-site-createaccount-PJ").attr("checked");
	
	if (isCheckedPF) {
		$("#createaccountContainerPJ").hide();
		$("#createaccountContainerPF").show();
	} else if (isCheckedPJ) {
		$("#createaccountContainerPF").hide();
		$("#createaccountContainerPJ").show();
	} else {
		$("#frm-site-createaccount-PF").attr({"checked" : "checked"});	
	}
	
	//filtru shop
	$("#filtru-categorii-criterii").change(function () {
		$("#filtru-categorii").submit();
	});
	$("#filtru-branduri-criterii").change(function () {
		$("#filtru-branduri").submit();
	});
	$("#filtru-pret-criterii").change(function () {
		$("#filtru-pret").submit();
	});
	
	
});