/* <![CDATA[ */
$().ready(function() {

$('#xcart_trigger').live('click', function(){
      $('#xcard').slideUp('fast', function() {
        $('#shoppingcart_trigger').parent().css('background', 'none');
        $('#shoppingcart_trigger').css({
                      color: '#cfd9dd'
                  });
        
      });
   return false;
});

$('#shoppingcart_trigger').live('click', function(){
    
      $('#xcard').slideToggle('fast', function() {
              if($('#xcard').css('display') == 'none'){
                  $('#shoppingcart_trigger').parent().css('background', 'none');
              } else {
                  $('#shoppingcart_trigger').parent().css({
                      background: '#e1e1e1'
                  });
                  $('#shoppingcart_trigger').css({
                      color: '#000'
                  });
                  
                  
              }
      });
      
      
      
   return false;
});



var p = $(window).width();

$('#adminBox').css({
    left:(p/2)+500
});

    $('body').append('<div id="cab_facebook"><a href="https://www.facebook.com/pages/aletoware/160284957360167">Jetzt auf Facebook folgen</a></div>');
	$('body').append('<div id="cab_twitter"><a href="https://www.twitter.com/Aletoware">Jetzt auf Twitter folgen</a></div>');
	$('body').append('<div id="cab_gplus"><g:plusone width="55" height="20" href="https://www.aletoware.de"></g:plusone></div>');

    $('#cab_facebook').css({
     top: ($(window).height()/2)-200
    });
	$('#cab_twitter').css({
     top: ($(window).height()/2)-250
    });
    $('#cab_gplus').css({
     top: ($(window).height()/2)-150
    });

	$('#cab_twitter').bind({
    mouseenter: function(e){
       $('#cab_twitter').animate({
             width: '200px'
       }, 200);
    },
    mouseleave: function(e){
        $('#cab_twitter').animate({
             width: '35px'
       }, 100);
    }
    });


    $('#cab_facebook').bind({
    mouseenter: function(e){
       $('#cab_facebook').animate({
             width: '200px'
       }, 200);
    },
    mouseleave: function(e){
        $('#cab_facebook').animate({
             width: '35px'
       }, 100);
    }
    });

    
    $('.thickbox').colorbox({
        width: '50%',
        height: '50%'
    });

    $('.imagebox').colorbox({
        width: '50%',
        height: '700px',
        title: $(this).attr('rel')
    });

    $('#loginSetter').colorbox({
        width: '450px',
        height: '330px',
        html:$('#login_c').html()
    });


//$('.carditem').bind('click', function(){  
//
//if($(this).find('.cardmeta').hasClass('hidden')){
//    
//    $('.cardmeta').each(function(){
//          $(this).animate({
//            width:0
//        }, function(){
//            $(this).removeClass('show').addClass('hidden')
//        });  
//    });    
//    
//    $(this).find('.cardmeta').animate({
//        width:200
//    }, function(){
//        $(this).removeClass('hidden').addClass('show')
//    });
//} 
//   
//});

});
/* ]]> */


