function uWontGetIt(_var1, _var2) {
	var _m = "m" + "a" + "i" + "l" + "t" + "o";
	parent.location=_m + ":" + _var2 + "@" + _var1;       
}

function unterTitleSlide (){
  $('.unterTitle').tabSwitch('moveStep',{step: 1});
};

// shopping cart
function show_cart(obj)  {
  	var linky = $(obj).attr('href');
  	var cartStatus = $(obj).parent().parent().hasClass('empty');
  	if( cartStatus == true ){
	  	return false;
  	}else{
		$.ajax({
			url: linky,
			success: function(text) {
			$.facebox(text);
			}
		});
		return false;
    }
}

var navSlider = {
  
  // these are the attributes of the Object
  element:"",
  //these are the methods(functions) that I have in this Object
  showMe:function(toShow){

  },
  
  init:function(toHide, menu){
    $(toHide).children().hide();
    var heightNew = $(toHide).children(':first').height();
    $(toHide).height(heightNew);
    $(toHide).children(':first').show();
    navSlider.element = $(toHide).children(':first');
    $(menu).children().bind("click", function(){
       var item = $(this).attr('rel');
       navSlider.element.fadeOut('slow');
       var itemHeight = $("#" + item).height();
       $("#" + item).parent().animate({
         height: itemHeight
         }, 1000);
       $("#" + item).fadeIn(1500);
       navSlider.element = $("#" + item);
       return false;
    });
  }
};
//end sauceSlider Object


$(document).ready(function(){ 
  
  navSlider.init('#contentArea', '#nav');

	$('.mehr').show();
	$('.zuruck').show();
	

	if($('.sauces-row').length > 0 ){
		$('.sauces-row').tabSwitch('create',{width: 700, height: 400});
 
		$('.Nav').click(function(e){
			$('.sauces-row').tabSwitch('moveStep',{step: parseInt($(this).attr("rel"))});
			e.preventDefault();
		});
	}
  
  if($('.unterTitle').length > 0 ){
  	$('.unterTitle').tabSwitch('create',{width: 250, height: 50});
  }

//modal overlay
  $('div.sauce a.modal').click(function() {
  	var linky = $(this).attr('href');
  	$.ajax({
      url: linky,
      success: function(text) {
        $.facebox(text);
  	  }
    });
    return false;
  });


  if($('#main').height() < 476 ){
    $('#main').height(476);
  };  
  
  //if( $('#showMe').length !== 0 ){ $('#shoppingCart').show(); }else{ $('#shoppingCart').hide();} 
  setInterval("unterTitleSlide()", 5000 );
  
  
  if (navigator.appName != "Microsoft Internet Explorer"){
	Cufon.replace('.fontReplace', { fontFamily: 'Nomad' });
	Cufon.replace('#header h2 span.fontReplace', { fontFamily: 'Apple Chancery'});
	Cufon.now();
	$("body").css('visibility','visible');
  }else{
    $("body").css('visibility','visible');
  }
   
});//END $(document).ready(function(){
 
