    $(document).ready(function() {
		$('#video-form').jqTransform();
		$('#Siralama-form').jqTransform();
		$('#Contact-Form').jqTransform();
		
    }); 


/*<![CDATA[*/ 
if (window.XMLHttpRequest)
		{
 			http = new XMLHttpRequest();

		} 
		else if (window.ActiveXObject) 
		{
			try {
				http = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e)
			{
				try {
					http = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e) {}
			}
		}
function addincele(ID) {
var fun_uye = document.getElementById('uye').value;
     if(fun_uye!=0) {
          http.open('get', '<%=strScriptYolu%>inc_sorgu.asp?p=addincele&l=<%=FnLangUrl(intLang)%>&ID='+ID+'&u=' + fun_uye);
          http.onreadystatechange = function() {
               document.getElementById('notificationsLoader').innerHTML = '<img src=images/loader.gif>';
               if (http.readyState == 4) {
                    document.getElementById('basketItemsWrap').innerHTML = http.responseText; 
		    document.getElementById('notificationsLoader').innerHTML = ''}
          };
          http.send(null);
     };
     return false;
}
     function delincele(ID) {
var fun_uye = document.getElementById('uye').value;
     if(fun_uye!=0) {
          http.open('get', '<%=strScriptYolu%>inc_sorgu.asp?p=delincele&l=<%=FnLangUrl(intLang)%>&ID='+ID+'&u=' + fun_uye);
          http.onreadystatechange = function() {
               document.getElementById('notificationsLoader').innerHTML = '<img src=images/loader.gif>';
               if (http.readyState == 4) {
                    document.getElementById('basketItemsWrap').innerHTML = http.responseText; 
		    document.getElementById('notificationsLoader').innerHTML = ''}
          };
          http.send(null);
     };
     return false;
}
/*]]>*/ 

$(document).ready(function(){
	$(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_rounded'});
});

		$(document).ready(function() {
		
			//When page loads...
			$(".tab_content").hide(); //Hide all content
			$("ul.tabs li:first").addClass("active").show(); //Activate first tab
			$(".tab_content:first").show(); //Show first tab content
		
			//On Click Event
			$("ul.tabs li").click(function() {
		
				$("ul.tabs li").removeClass("active"); //Remove any "active" class
				$(this).addClass("active"); //Add "active" class to selected tab
				$(".tab_content").hide(); //Hide all tab content
		
				var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
				$(activeTab).fadeIn(); //Fade in the active ID content
				return false;
			});
		
		});

//left menu
function initMenu() {
  $('#left-menu ul').hide();
  $('#left-menu ul').children('.current').parent().show();
  //$('#left-menu ul:first').show();
  $('#left-menu li a').click(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#left-menu ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
  }
$(document).ready(function() {initMenu();});

// enson 
$(function () {
    $('ul.spy').simpleSpy();
});

(function ($) {
    
$.fn.simpleSpy = function (limit, interval) {
    limit = limit || 4;
    interval = interval || 6000;
    
    return this.each(function () {
        // 1. setup
            // capture a cache of all the list items
            // chomp the list down to limit li elements
        var $list = $(this),
            items = [], // uninitialised
            currentItem = limit,
            total = 0, // initialise later on
            height = $list.find('> li:first').height();
            
        // capture the cache
        $list.find('> li').each(function () {
            items.push('<li>' + $(this).html() + '</li>');
        });
        
        total = items.length;
        
        $list.wrap('<div class="spyWrapper" />').parent().css({ height : height * limit });
        
        $list.find('> li').filter(':gt(' + (limit - 1) + ')').remove();

        // 2. effect        
        function spy() {
            // insert a new item with opacity and height of zero
            var $insert = $(items[currentItem]).css({
                height : 0,
                opacity : 0,
                display : 'none'
            }).prependTo($list);
                        
            // fade the LAST item out
            $list.find('> li:last').animate({ opacity : 0}, 1000, function () {
                // increase the height of the NEW first item
                $insert.animate({ height : height }, 1000).animate({ opacity : 1 }, 1000);
                
                // AND at the same time - decrease the height of the LAST item
                // $(this).animate({ height : 0 }, 1000, function () {
                    // finally fade the first item in (and we can remove the last)
                    $(this).remove();
                // });
            });
            
            currentItem++;
            if (currentItem >= total) {
                currentItem = 0;
            }
            
            setTimeout(spy, interval)
        }
        
        spy();
    });
};
    
})(jQuery);

$(document).ready(function(){
	$('.shadow').hover(
	  function(){
		$(this).stop().animate({backgroundColor: "#f5f5f5"}, 300);
	  }, 
	  function(){
		$(this).stop().animate({backgroundColor: "#dfdfdf"}, 300);
	  });
});

/**
       * The 'updateColor' function checks the value of a text field to
       * determine whether its value is a hexadecimal color. If so, it updates
       * an element with a specific ID (the text field's ID + '-preview') so
       * that it's background is the color, enabling the user to preview the
       * color setting.
       * @param {object} box Mandatory The object where the color is entered.
       */
      function updateColor(box) {
        var colorValue = box.value;
        var result = colorRegex.exec(colorValue);
        if (result != null) {
          if (colorValue.length == 6) {
            colorValue = '#' + colorValue;
          }
          if (document.getElementById(box.id + '-preview')) {
            document.getElementById(box.id + '-preview').style.backgroundColor =
                colorValue;
          }
        }
      }

