$(function () {
		$("body").live('load',function(){
			alert("Niniaiga");
			$(".uiGrid").css("display","none");
		});
		$( "#dialog-modal" ).dialog({
			height: 310,
			width:970,
			scroll: false,
			draggable:false,
			resizable:false,
			modal: true
		});
	
		$('#kapat').click(function(){
			$("#dialog-modal").dialog( "close");
		});
		
		$('.editor').ckeditor({
			width:600
			});
				
		$( "#accordion" ).accordion({
			event: "mouseover"
		});
		$("#newsticker-demo").jCarouselLite({
        vertical: true,
        hoverPause:true,
        btnPrev: ".previous",
        btnNext: ".next",
        visible: 4,
        auto:2500,
        speed:500
    });
	$(".sliderlink").click(function(){
		var href = $(this).attr('link');
		//alert(href);
		document.location.href=href;
	});
	
	$( "#tabs" ).tabs();
	
	// run the currently selected effect
		function runEffect() {
			// get effect type from 
			var selectedEffect = $( "blind" ).val();

			// most effect types need no options passed by default
			var options = {};
			// some effects have required parameters
			if ( selectedEffect === "blind" ) {
				options = { percent: 100 };
			} else if ( selectedEffect === "size" ) {
				options = { to: { width: 280, height: 185 } };
			}

			// run the effect
			$( "#effect" ).show( "blind", options, 500);
			
			$(".geri").click(function(){
				$( "#effect" ).hide( "blind", options, 1000);
			});	
		};

		// set effect from select menu value
		$( "#button" ).click(function() {
			runEffect();
			return false;
		});

		$( "#effect" ).hide();
		$(".gonder").button();
		$(".geri").button();
});
