// SEARCHBOX
function clearText(field) 
{
	if (field.defaultValue == field.value) field.value = '';
	else if (field.value == '') field.value = field.defaultValue;
}


// MENU 
$(document).ready(function() {
$("#menu li").hover(
               function (){
                $(this).find("ul").animate({height:'show'}).show();
                      }			  
				   )
$("#menu li").mouseleave(
               function (){
                $(this).find("ul").hide().stop(true,true)
                          }					  
					    )
						
$("#lifemenu li").hover(
               function (){
                $(this).find("ul").show();
                      }			  
				   )
$("#lifemenu li").mouseleave(
               function (){
                $(this).find("ul").slideUp(375).stop(true,true)
                          }					  
					    )


//CONTACT

$(".iletisim input, .iletisim textarea").focus(
				 function(){
				$(this).css('border','1px solid #fe7600') 
				 })
$(".iletisim input, .iletisim textarea").blur(
				 function(){
				$(this).css('border','1px solid #CCC') 
				 })
$(".iletisim .submit").hover(
							function(){
							$(this).css({background:"#fe7600", color:"#FFF"})
							},
                            function(){
							$(this).css({background:"#CCC", color:"#FFF"})
							})

//reyon
$(".reyon").hover(
							function(){
							$(this).find(".arrow").css({background:"#fe7600"})
							},
                            function(){
							$(this).find(".arrow").css({background:"#f0f0f0"})
							})

$(".arrow").hover(
							function(){
							$(this).find("img").animate({paddingLeft:"10px"})
							},
                            function(){
							$(this).find("img").stop(true,true).animate({paddingLeft:"0px"})
							})

//tabs
			$(".happy_menu:first").css({backgroundImage:"url(_img/happy_menu.gif)"})
			$(".show_me").html($(".happy_menu:first").find("div").html())
			$(".happy_menu").mouseover(
						   function(){
							         $(".happy_menu").css({backgroundImage:""})
									 $(".happy_menu span a").css({color:"#7a7a7a"})
							         $(this).css({backgroundImage:"url(_img/happy_menu.gif)"})
									 $(this).find("span a").css({color:"#f60"})
									 $(".show_me").html($(this).find("div").html())
									 }
						   )

//insert
			$(".i1").css({background:"#F60", color:"#FFF"})
			
			
//iş ortakları
$(".box").hover(
											function(){
												$(this).find(".aciklama").animate({top:0})
												},
											function(){
												$(this).find(".aciklama").stop(true,true).animate({top:119})
												}
											)
			
});  


