		$(document).ready(function(){

			// Default searchbox text
			var sb = $('#search input');
			var sText = sb.val();
			sb.focus(function() {
				if($(this).val() == sText) { $(this).val(''); }
			});
			sb.blur(function() {
				if($(this).val() == "") { $(this).val(sText); }
			});

			// Menu
			$('#nav li').hover(function() {
 				$(this).addClass('active');
 			}, function() {
 				$(this).removeClass('active');
 			});

			// Duyuru Slider
			$('.duyurular').addClass('clipped');
			$('#updownnav').show();

			var h = [];

			$('.duyurular li').each(function(index) {
				h.push($(this).outerHeight());
			});

			var dCntr = 0;
			var dNum = $('.duyurular li').size();
			$('.duyurular li:last-child, #nav li:last-child').addClass('last');

			$('#slides').innerfade({ speed: 1200, timeout: 8000, type: 'sequence' });
			$('#updownnav .down').click(function() {
				if(dCntr < $('.duyurular li').size() - 1) {
					$('.duyurular ul').animate({ marginTop: '-=' + h[dCntr] }, 300 );
					dCntr++;
				}
				return false;
			});

			$('#updownnav .up').click(function() {
				if(dCntr > 0) {
					$(this).css('opacity','1');
					$('.duyurular ul').animate({ marginTop: '+=' + h[dCntr - 1] }, 300 );
					dCntr--;
				}
				return false;
			});

			function cloudOne() {
				$('.one').animate({ marginLeft: ($('#header').width() / 2) + 100 }, 120000, "linear", function(){
					$(this).css('marginLeft', -($('#header').width() / 2) - 100);
					cloudOne();
				});
			}
			cloudOne();

			function cloudTwo() {
				$('.two').animate({ marginLeft: ($('#header').width() / 2) + 100 }, 100000, "linear", function(){
					$(this).css('marginLeft', -($('#header').width() / 2) - 100);
					cloudTwo();
				});
			}
			cloudTwo();

			function cloudThree() {
				$('.three').animate({ marginLeft: ($('#header').width() / 2) + 100 }, 110000, "linear", function(){
					$(this).css('marginLeft', -($('#header').width() / 2) - 100);
					cloudThree();
				});
			}
			cloudThree();

			function cloudFour() {
				$('.four').animate({ marginLeft: ($('#header').width() / 2) + 100 }, 90000, "linear", function(){
					$(this).css('marginLeft', -($('#header').width() / 2) - 100);
					cloudFour();
				});
			}
			cloudFour();

		});
