jQuery(document).ready(function() {
	//Png Fix
	$(document).pngFix();
	
	// Corner
	//$('#body_text').corner();
	//$('#body_left').corner();
	
	// Set Div Height
	//$('div.yukseklikesitle').yukseklikEsitle();


	//Ana Sayfa Tab Başlangıc	
	
	//$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 1000, true);
	$("#featured").tabs(
	{
		event: 'click'
	}, 
	{
		show: function(){
			//alert($(this).parent().find("div.info").html);
			//$(this).parent().find("div.info").hide();
			$(this).parent().find("div.info").hide().slideDown(1500);
			}
		}		
	).tabs("rotate",10000,true);
	
	$("#featured").hover(
		function() {
			$("#featured").tabs({event: 'mouseover'}).tabs("rotate",0,true);
		},
		function() {
			$("#featured").tabs({event: 'click'}).tabs("rotate",10000,true);
		}
		
		
		
	);

	$("#featured a").click(
		function() {
			//alert('test ' + this.title);
			location.href=this.title;
		}
		);
	

	$(".productnavlinks").hover(function() {
		
			jQuery(this).attr("src",function() {  return this.src.substring(0,this.src.length-4)+ '-h'+ this.src.substring(this.src.length-4,this.src.length)});  
            }, function() {  
            jQuery(this).attr("src",function() {  return  this.src.substring(0,this.src.length-6)+ this.src.substring(this.src.length-4,this.src.length)});  

	});		


	//Ana Sayfa Tab Son

	//Ust menu baslangic
	/*
	$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)

	$("ul.topnav li a").hover(function() { //When trigger is clicked...

		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click

		$(this).parent().hover(function() {
		}, function(){
			$(this).parent().find("ul.subnav").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up
		});

		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() {
			$(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
	*/
	
	//ust menu son
mainmenu();
});

function mainmenu(){
$(" #nav ul ").css({display: "none"}); // Opera Fix
$(" #nav li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(250);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
}
