$(function() {
	$('.buyut').lightBox({txtImage: 'Fotoğraf', txtOf: '/'});
	$('#banner').flash({swf:'tr/images/ust.swf', width: '100%', height: 110, scaleMode: 'exactFit' });
    $('#footer').flash({swf:'tr/images/alt.swf', width: 950, height: 121 });
    $('ul.sf-menu').superfish({autoArrows:false,dropShadows:false});

     $("#content p").each(function(i){
            var bgcolor = (i % 2) == 0 ? "#EAF3F9" : "#FBFEFF";
            $(this).css("background-color",bgcolor);
        });
     $(".zdnot").each(function(i){
            var bgcolor = (i % 2) == 0 ? "#EAF3F9" : "#FBFEFF";
            $(this).css("background-color",bgcolor);
        });
    $('#slides').slides({
				preload: true,
				preloadImage: 'tr/images/loading.gif',
				play: 5000,
				pause: 2500,
				hoverPause: true
			});

    $("#formbasvur").validate({
		rules: {
			isimsoyad: "required",
			eposta: {
				required: true,
				email: true
			},
			tel: "required",
			mesaj: "required"

		},
		messages: {
			isimsoyad: "Lütfen adınızı soyadınızı girin",
			eposta: "Lütfen e-posta adresinizi girin",
			tel: "Lütfen telefon numaranızı girin",
			mesaj: "Lütfen mesajınızı yazın"

		}
	});
   /* var $fd = $('#mdh');
    var iFixedDivHeight = $fd.outerHeight({ 'margin': true });

    $(window).bind('scroll', function(e) {
        var iWindowHeight = $(window).height();
        var iScrollPosition = $(window).scrollTop(); // or document.body.scrollTop
        //$fd.css({ 'top': iWindowHeight + iScrollPosition - iFixedDivHeight });
        var fdtop = iWindowHeight - iFixedDivHeight;
        $fd.css({ 'top':  fdtop});
        $("#copyright").append(fdtop + " - ");
        $("#copyright").append(iWindowHeight + " - ");
        $("#copyright").append(iScrollPosition + " - ");
        $("#copyright").append(iFixedDivHeight + " - ");
    });*/
});



