
var site_url="http://www.rabattfuchser.de/";
//var site_url="http://localhost/rabattfuchser/";

$(function() {
		   
    
			
 
	if(document.getElementById('shop_marq') != null){
		
		if(document.getElementById('top') != null){
			$('#top marquee').marquee().mouseover(function () {
			  $(this).trigger('stop');
			}).mouseout(function () {
			  $(this).trigger('start');
			}).mousemove(function (event) {
			});
			
			$('#top img').tooltip({ 
			   track: true,
				delay: 0,
				showURL: false,
				showBody: " * ",
				extraClass: "pretty",
				fixPNG: true,
				opacity: 0.95,
				fade: 250,
				left: -120
			});
		}
		
		if(document.getElementById('lp2010_1_bottom') != null){
			$("a#inline").fancybox();
			
			$('#lp2010_1_bottom marquee').marquee().mouseover(function () {
			  $(this).trigger('stop');
			}).mouseout(function () {
			  $(this).trigger('start');
			}).mousemove(function (event) {
			});
			
		
		}

		
	}
	
});


function catBonusaktionen(cat,tl){ 
     $(".catbonuslink").css("font-weight","normal");
	 $("#"+tl).css("font-weight","bold");
	 $("#bonusaktionen").hide();
	 $("#loader").show();
	
	 $.ajax({
		 url: 'ajax/xml/ajaxhandler.php5',
		 type: 'POST',
		 datatype: 'html',
		 data: 'cat='+cat+'&do=bonusaktionen_sort&PHPSESSID='+$("#sessid").val(),
		 error: function (request,error){
			alert("Übertragungsfehler. Bitte wiederholen Sie den Vorgang!");
		 },
		 success: function( html ) {
			 $("#bonusaktionen").html(html);
		 },
		 complete: function (){
			 $("#loader").hide(); 
			 $("#bonusaktionen").show();
		 }
	});
	return false;
}


