﻿	
		 
       /* $("li.PlsLogin a.More").hover(function () {
          $("li.PlsLogin a.More").fadeIn(3000, function () {
            $("div").fadeIn(100);
          });
		  $("li.PlsLogin a.More").each(function(){
			var offsetMore = $(this).offset();
			//var offsetMore = $("li.PlsLogin a.More").each(function(index).offset();
			//$("li.PlsLogin a.More div").css({ left:offsetMore.left, top:offsetMore.top+20});
			$(this).children("div").css({ left:offsetMore.left, top:offsetMore.top+20});
			});
          return false;
        }); 
				
		 $("li.PlsLogin a.More").hover(function () {
          $("li.PlsLogin a.More").fadeIn(3000, function () {
            $("div").fadeIn(100);
          });
		  */
		  
	//-------------------------------------------------------------
	// Class PlsLogin  olan linklerde tooltip gostermek icin
	$('li.PlsLogin a.More').append('<div style="display:none;position:absolute;" ><span><label id="lblLockedTooltip">Devam için giriş yapınız.</label></span></div>');
	$("li.PlsLogin a.More").each(function(intIndex,domEle){
		$(domEle).hover(function () {
				$(this).children("div").fadeIn(200);
			$(this).fadeIn(3000, function () {
			});
			var offsetMore = $(domEle).offset();
			$(this).children("div").css({ left:offsetMore.left, top:offsetMore.top+20});
			});	
	}); 

	$("li.PlsLogin a.More").mouseleave( function(){
		$('li.PlsLogin a.More div').css('display','none');
		return false;
	  });
	//-------------------------------------------------------------

	$("div.Search input[type='submit']").addClass('searchSubmit');
	$("div.Search input[type='submit']").val('.');
	
	function setFormBlur( itemQuery, classPrefix)
	{
		//name userCode
		if($(itemQuery).val()=='')
			{$(itemQuery).addClass( classPrefix + 'formBlur');}
		// check value first
		if($(itemQuery).val()=='')
		{
			// add class if there is no value
			
			$(itemQuery).focus(function() {
				$(this).addClass( classPrefix + 'formFocus');
				$(this).removeClass( classPrefix + 'formBlur');
				}).blur(function(){
					if($(this).val()=='')
					{
						$(this).removeClass(classPrefix + 'formFocus');
						$(this).addClass( classPrefix + 'formBlur');
					}
				});
		}
	}
	

	

	
	/*
	//name userCode
	if($("input[name='userCode']").val()=='')
		{$(this).addClass('formBlur');}
	// check value first
	if($("input[name='userCode']").val()=='')
	{
		// add class if there is no value
		$("input[name='userCode']").focus(function() {
			$(this).addClass('formFocus');
			$(this).removeClass('formBlur');
			}).blur(function(){
				if($(this).val()=='')
				{
					$(this).removeClass('formFocus');
					$(this).addClass('formBlur');
				}
			});
	}
*/

	
	// ORNEK---------------------------------------
	// form elementibi bulun watermark deger gir
	/*$("input[name='userCode']").attr('value', 'test');
	$("input[name='userCode']").focus(function() {
		$("input[name='userCode']").addClass('formHover');
		if($(this).val()=="test")
			{$(this).val('');}
		else alert( 'NOT OK');

		}).blur(function(){
			if($(this).val()=='')
				{$(this).val('test');}
		});
	*/
	
	
	
	
	
	  // MENU SCRIPT
	 /* $(document).ready(function () {

		$('#dropdown li a.parent1').hover(
			function () {
				//change the background of parent menu				
				$('#dropdown li a.parent1').addClass('hover1');
				//display the submenu
				$('#dropdown ul.children1').show();
			},
			function () {
				//change the background of parent menu
				$('#dropdown li a.parent1').removeClass('hover1');			
				//display the submenu
				$('#dropdown ul.children1').hide();
			}
		);
		
		$('#dropdown li a.parent2').hover(
			function () {
				//change the background of parent menu				
				$('#dropdown li a.parent2').addClass('hover');
				//display the submenu
				$('#dropdown ul.children2').show();
			},
			function () {
				//change the background of parent menu
				$('#dropdown li a.parent2').removeClass('hover');			
				//display the submenu
				$('#dropdown ul.children2').hide();
			}
		);
		$('#dropdown  li a.parent3').hover(
			function () {
				//change the background of parent menu				
				$('#dropdown li a.parent3').addClass('hover');
				//display the submenu
				$('#dropdown ul.children3').show();
			},
			function () {
				//change the background of parent menu
				$('#dropdown li a.parent3').removeClass('hover');			
				//display the submenu
				$('#dropdown ul.children3').hide();
			}
		);
		$('#dropdown  li a.parent4').hover(
			function () {
				//change the background of parent menu				
				$('#dropdown li a.parent4').addClass('hover');
				//display the submenu
				$('#dropdown ul.children4').show();
			},
			function () {
				//change the background of parent menu
				$('#dropdown li a.parent4').removeClass('hover');			
				//display the submenu
				$('#dropdown ul.children4').hide();
			}
		);
		$('#dropdown  li a.parent5').hover(
			function () {
				//change the background of parent menu				
				$('#dropdown li a.parent5').addClass('hover');
				//display the submenu
				$('#dropdown ul.children5').show();
			},
			function () {
				//change the background of parent menu
				$('#dropdown li a.parent5').removeClass('hover');			
				//display the submenu
				$('#dropdown ul.children5').hide();
			}
		);
	
});
*/
