	Cufon.replace(['h3','h4','form p', '.productmenu li a', '.right li a', '.title p', 'ul.de li', '.kid p'], { hover: true, fontFamily: 'Arial'});
	Cufon.replace(['h1'], { color: '-linear-gradient(#541800, #9c3912)', hover: true, fontFamily: 'Arial'});

  $(document).ready(function(){
    var box;
    var boxx;

	$('input:checkbox:not([safari])').checkbox();
	$('input:radio').checkbox();
	$('#main').pngFix();
	$('img[title]').tipsy({gravity: 'n'});
	$('a[title]').tipsy({gravity: 'n'});
	$(".cboxh").colorbox({width:"950px", height:"600px", transition:"none", iframe:true});
	$(".cboxst").colorbox({width:"950px", height:"550px", transition:"none", iframe:true});
	$(".cboxf").colorbox({width:"950px", height:"470px", transition:"none", iframe:true});
	$(".cboxo").colorbox({width:"500px", height:"250px", transition:"none", iframe:true});
	$(".cboxi").colorbox({width:"950px", height:"550px", transition:"none", iframe:true});
	$(".x").colorbox({width:"950px", height:"600px", transition:"none", iframe:true});
	$(".ebox").hover(function(){ $(this).addClass("hv"); },function(){ $(this).removeClass("hv"); });	
	$(".cbox[id!='twox']").hover(function(){ $(this).addClass("hv"); },function(){ $(this).removeClass("hv"); });
	
	function goster(x){
			$("#one").removeClass("sabunlar");
			$("#two").removeClass("kremler");
			$("#eleven").removeClass("galeri");
    		if (navigator.appName == "Microsoft Internet Explorer") {
				$(".boxicerik").hide();
                $("#geridon").show();
                $(".boxicerik" + x).show();
            } 
            else
       		{
		    $(".boxicerik").fadeOut(500, function(){
                $(".boxicerik" + x).fadeIn(250);
				$("#geridon").fadeIn(250);
			});
            } 
			box = x;
	}
	function gizle(){
		$("#one").addClass("sabunlar");
		$("#two").addClass("kremler");
		$("#eleven").addClass("galeri");
    	if (navigator.appName == "Microsoft Internet Explorer") {
        	$(".boxicerik" + box).hide();
            $(".boxicerik").show();
        }
        else
        {
			$(".boxicerik" + box).fadeOut(500, function(){
                $(".boxicerik").fadeIn(250);
			}); 
        }
	}
	
	$("#sabunlar").click(function(){ goster("sabun"); });
	$("#sampuanlar").click(function(){ goster("sampuan"); });
	$("#kremler").click(function(){ goster("krem"); });
	$("#spatabletleri").click(function(){ goster("spa"); });
	$("#bakimurunleri").click(function(){ goster("bakim"); });
	$("#masajyaglari").click(function(){ goster("yaglar"); });
	$("#banyosuttuz").click(function(){ goster("suttuz"); });
	$("#gunes").click(function(){ goster("gunes"); });
	$("#parfumdudak").click(function(){ goster("parfumdudak"); });	
	$("#peeling1").click(function(){ goster("peeling1"); });
	$("#geridon").click(function(){ gizle(); });
	$("#galeri").click(function(){ $.fn.colorbox({href:"galeri.asp", transition:"none", width: "828px", height: "567px", iframe: true}) });
	$("#galeri1").click(function(){ $.fn.colorbox({href:"galeri.asp", transition:"none", width: "828px", height: "567px", iframe: true}) });

		$.History.bind('', function(state){ gizle(); });
		$.History.bind('home', function(state){ gizle(); });
		$.History.bind('soaps', function(state){ goster("sabun"); });
		$.History.bind('shampoos' ,function(state){ goster("sampuan"); });
		$.History.bind('creams' ,function(state){ goster("krem"); });
		$.History.bind('spa' ,function(state){ goster("spa"); });
		$.History.bind('careproducts' ,function(state){ goster("bakim"); });
		$.History.bind('oils' ,function(state){ goster("yaglar"); });
		$.History.bind('bath' ,function(state){ goster("suttuz"); });
		$.History.bind('sun' ,function(state){ goster("gunes"); });
		$.History.bind('perfumeandlip' ,function(state){ goster("parfumdudak"); });
		$.History.bind('peeling' ,function(state){ goster("peeling1"); });
		$.History.bind('galeri' ,function(state){ $.fn.colorbox({href:"galeri.asp", transition:"none", width: "828px", height: "567px", iframe: true}) });
		
		
  });
    var sayac1 = 0;
    var sayac2 = 0;
    var sayac3 = 0;
    var toplam = 0;
	var form = ""
	
  	function radio1(){ if (sayac1 != 1) {sayac1 = 1} setTimeout("kontrol()",100); }
	function radio2(){ if (sayac2 != 1) {sayac2 = 1} setTimeout("kontrol()",100); }
	function radio3(){ if (sayac3 != 1) {sayac3 = 1} setTimeout("kontrol()",100); }
	
	function kontrol(){
		toplam = sayac1 + sayac2 + sayac3;
		form = "radio.1=" + $("input[name=radio.1]:checked").val() + "&radio.2=" + $("input[name=radio.2]:checked").val() + "&radio.3=" + $("input[name=radio.3]:checked").val();
	
		if(toplam == 3){
	      var href1  = "gonder.asp?" + form;
	      $.fn.colorbox({href:href1, transition:"none", width: "950px", height: "600px", iframe: true})
		  $("input[name=radio.1]").removeAttr("checked");
		  $("input[name=radio.2]").removeAttr("checked");
		  $("input[name=radio.3]").removeAttr("checked");
		  sayac1 = 0;
		  sayac2 = 0;
		  sayac3 = 0;
		  toplam = 0;
		}
	}   
