 $('#runBaby').cycle({
    fx:'fade',
    speed:2000,
    timeout:6000,
    pause:1
 });

 $('#slideBaby').cycle({
    fx:'fade',
    speed:500,
    timeout:0,
    next:'.next' 
 });
 
 
$.facebox.settings.closeImage = '/v2/js/facebox/src/closelabel.png'
$.facebox.settings.loadingImage = '/v2/js/facebox/src/loading.gif'

jQuery(document).ready(function($) {

  $('a[rel*=facebox]').facebox();

	var handlerIn = function(current){
	
		$('#BigButtonzUl dl').each(function() {
			if($(this).attr('id') != current) {
				$(this).addClass('hover');
			}
		});	
								
	 };
			
	var handlerOut = function(){
		$('#BigButtonzUl dl').removeClass('hover');		
	};


  
	$('#BigButtonzUl dl').each(function(){
		var current = $(this).attr('id');
		$(this).mouseenter(function() { handlerIn(current)   });
		$(this).mouseleave(function() { handlerOut() });
	});
	
// ---------------------------------------------------------------------------------------------- language dropdown





	if ( langItems >= 3 ) {
    var lanpos = ((langItems * -19)+0);
		
		$('#langChoicePopup').css('top', lanpos);
		
		var busy = false;
		$('#langChoice').mouseenter(
  		function () {
  		  if (!busy){
  		    busy = true;
    		  $("#langChoicePopup").animate({"top": "0px"}, "slow", function() {busy=false;});
    		}
  		}
		);
		$('#langChoice').mouseleave(
  		function () {
  		  //if (!busy){
  		  //  busy = true;
    		  $("#langChoicePopup").animate({"top": "-95px"}, "slow", function() {busy=false; $("#langChoicePopup").clearQueue();});
    	//	}
  		}
		);
	}
	$('#langChoicePopup').css('visibility', 'visible');
		



});



// ---------------------------------------------------------------------------------------------- Swap form input value	
	/**
* Unobtrusively set up placeholder behaviors on all text inputs for which
* the title attribute has been set. The title text will be used as the
* placeholder text.
* @author Travis Miller
* @link http://www.electrumdigital.com/*/


$(function() {

  $("input[type=text][title],input[type=password][title],input[type=email][title],textarea[title]")
  .each( showPlaceholder ) // initialize each control on page load
  .blur( showPlaceholder )
  .focus( hidePlaceholder );

  $("form").submit( function() {
    $( "input[type=text][title],input[type=password][title],input[type=email][title],textarea[title]", this ).each( hidePlaceholder );
  } );

  function showPlaceholder() {
    var $control = $(this);
    var placeholderText = $control.attr("title");
    if ( $control.val() === "" || $control.val() === placeholderText ) {
      $control.addClass("placeholder");
      $control.val(placeholderText);
    }
  };

  function hidePlaceholder() {
    var $control = $(this);
    if ( $control.val() === $control.attr("title") ) {
      $control.removeClass("placeholder");
      $control.val("");
    }
  }

});
// ---------------------------------------------------------------------------------------------- 

