		

		var loginSlideTimer = null;
 
    	$(document).ready(function(){
    	
    	$("body").removeClass("nojs");
    	
    	$("#couponClick").click(function(){
			$.ajax({
			  type: "POST",
			  url: "/caddy.php",
			  data: "action=coupon&couponID=" + $("#coupon").val(),
		   	  success: function(msg) {
                   $.jGrowl(msg.slice(4),{ life: 10000, position: 'top-left' });
                   if (msg.substring(0,3) == "200") {
                   		self.location = "/index.php?id=50";
                   }
                }
			})
		});
		
		$('#payment1').click(function () {
			$('#lastschriftBVs').show();
		});
		$('#payment64,#payment32,#payment16,#payment8,#payment4,#payment2').click(function () {
			$('#lastschriftBVs').hide();
		});

    	/*************** Dropdown Menu ****************/
    	if ($.browser.msie) {
    		$("ul.sf-menu").superfish({
        			delay:       0,                               // one second delay on mouseout 
        	    	animation:   {opacity:'show'},  			  // fade-in and slide-down animation 
        	    	speed:       0,                          	  // faster animation speed 
        	    	autoArrows:  false,                           // disable generation of arrow mark-up 
        	    	dropShadows: false                            // disable drop shadows 
        	});
        }
        else {
        	$("ul.sf-menu").superfish({
        			delay:       0,                               // one second delay on mouseout 
        	    	animation:   {opacity:'show'},  			  // fade-in and slide-down animation 
        	    	speed:       'slow',                          	  // faster animation speed 
        	    	autoArrows:  false,                           // disable generation of arrow mark-up 
        	    	dropShadows: false                            // disable drop shadows 
        	});
        }
        /* Ende */

    	
    	/**************** Menu Tooltip H&ouml;he ****************/
    	/*** F&uuml;r das Men&uuml; m&uuml;ssen die Submenu-Grafiken nochmals erstellt werden sobald klar ist wieviel Eintr&auml;ge das jeweilige Men&uuml; hat; damit wird der folgende Code &uuml;berfl&uuml;ssig ***/
    		var countli1 = $(".tooltip_1 li").size();
    		
    		if (countli1 <= 5) {
    			$(".tooltip_1").css("height", "169px");
    			$(".tooltip_1").css("background", "url('/img/menu_tooltips/5_169.png')");
    		}
    		else if (countli1 > 5) {
    			$(".tooltip_1").css("height", "299px");
    			$(".tooltip_1").css("background", "url('/img/menu_tooltips/10_299.png')");
    		}
    		
    		var countli2 = $(".tooltip_2 li").size();
    		
    		if (countli2 <= 5) {
    			$(".tooltip_2").css("height", "169px");
    			$(".tooltip_2").css("background", "url('/img/menu_tooltips/5_169.png')");
    		}
    		else if (countli2 > 5) {
			     $(".tooltip_2").css("height", "598px");
			     $(".tooltip_2").css("background", "url('/img/menu_tooltips/20_598.png')");
			}
    		
    		var countli3 = $(".tooltip_3 li").size();
    		
    		if (countli3 <= 5) {
    			$(".tooltip_3").css("height", "169px");
    			$(".tooltip_3").css("background", "url('/img/menu_tooltips/5_169.png')");
    		}
    		else if (countli3 > 5) {
    			$(".tooltip_3").css("height", "299px");
    			$(".tooltip_3").css("background", "url('/img/menu_tooltips/10_299.png')");
    		}
    		
    		var countli4 = $(".tooltip_4 li").size();
    		
    		if (countli4 <= 5) {
    			$(".tooltip_4").css("height", "169px");
    			$(".tooltip_4").css("background", "url('/img/menu_tooltips/5_169.png')");
    		}
    		else if (countli4 > 5) {
    			$(".tooltip_4").css("height", "299px");
    			$(".tooltip_4").css("background", "url('/img/menu_tooltips/10_299.png')");
    		}
    		
    		var countli5 = $(".tooltip_5 li").size();
    		
    		if (countli5 <= 5) {
    			$(".tooltip_5").css("height", "169px");
    			$(".tooltip_5").css("background", "url('/img/menu_tooltips/5_169.png')");
    		}
    		else if (countli5 > 5) {
    			$(".tooltip_5").css("height", "299px");
    			$(".tooltip_5").css("background", "url('/img/menu_tooltips/10_299.png')");
    		}
    		/* Ende */
    	
    	
    	/************************** Quick Login Slide ***************************/
    	$('#slidedown_login').click(function() {
  		   $('#login_slide').slideDown("slow");
  		});
  		
  		$('div#login_container').mouseover(function(){
		
    	   window.clearTimeout(loginSlideTimer);
    	   loginSlideTimer = null;
 		
  		});
 		
  		$('div#login_container').mouseout(function(){
    	   loginSlideTimer = window.setTimeout(function(){$('div#login_slide').slideUp("slow");}, 5000);
  		});
  		/* Ende */
    	
    	
    	/* Produkt Float Margin */
    	$("div#browse #rightcol #product_float .product:nth-child(2n+1)").addClass("left");
    	$("div#browse #rightcol #product_float .product_a-z:nth-child(2n+1)").addClass("left");
    	/* Ende */
    	
    	
    	/* Single Product RightCol Recommended Products: Remove last border */
    	$("div.product_single_rightbox_content div.recommendedProduct:last-child").addClass("last");
    	$("div#browse div#abonnements table tr:nth-child(2n+2)").addClass("second");
    	$("table#orders tr:first-child").addClass("first");
    	$("table#orders tr:nth-child(2n+2)").addClass("even");
    	
    	$("table#cart tr:last-child").addClass("last");
    	$("table#cart_control tr:last-child").addClass("last");
    	/* Ende */
    	
    	$(".slideshow_product_img").reflect({height: 0.1});
    	
    	/************************** Cycle Plugin for main advertising area on index.php ***************************/
    	$('#slideshow').cycle({ 
    	    fx:      'fade', 
    	    speed:    1500, 
    	    timeout:  7500,
    	    pause: 1,
    	    pager: '#pager'
		});
		/* Ende */
		
		
		/************************** jCarousel for marketing display ***************************/
		$("#marketing_display_content").jCarouselLite({
		    btnNext: ".externalControl .next",
    	    btnPrev: ".externalControl .prev",
    	    speed: 750,
		    visible: 8,
		    circular: false,
    	    easing: "easeInOutBack"
    	});
    	/* Ende */
    	
    	
    	/************************** jCarousel for single issues ***************************/
    	$("#singleissues_jcarousel").jCarouselLite({
		    btnNext: ".externalControl .next",
    	    btnPrev: ".externalControl .prev",
    	    visible: 5,
    	    speed: 750,
    	    circular: false,
    	    easing: "easeInOutBack"
    	});
    	/* Ende */
    	
    	/************************** jCarousel for single issues large ***************************/
	     $(".singleissues_display_large .singleissues_jcarousel").jCarouselLite({
	    btnNext: ".externalControl .next",
	        btnPrev: ".externalControl .prev",
	        visible: 8,
	        speed: 750,
	        circular: false,
	        easing: "easeInOutBack"
	     });
	     /* Ende */
    	
    	
    	/************************** jCarousel for partners/mags/whatever at the bottom of the page ***************************/
    	$("#partners").jCarouselLite({
    	    auto: 6500,
    	    speed: 500,
    	    visible: 10
    	});
    	/* Ende */
    	
    	
    	/************************** partners/mags/whatever fade effects ***************************/
    	$("#partners ul li").fadeTo(0, 0.6);
    	$("#partners ul li").hover(
    	    function () {
    	    	$(this).stop().fadeTo("slow", 1.0);
    	    },
    	    function () {
    	    	$(this).stop().fadeTo("slow", 0.6);
    	    }
    	);
    	/* Ende */
    	
    	
    	/************************** Reflections ***************************/
    	$(".product_small_glass img").reflect({height: 0.08});
    	$("#marketing_display_content ul li img").reflect({height: 0.1});
    	$(".boxlarge ul li img").reflect({height: 0.1});
    	$("#singleissues_display_content ul li img").reflect({height: 0.1});
    	$(".prodimagereflect").reflect({height: 0.1});
    	$("#product_single #productImage").reflect({height: 0.1});
    	$("#singleEdition #productImg img").reflect({height: 0.1});
    	$("#vouchers img").reflect({height: 0.2});
    	$(".singleissues_display_content ul li img").reflect({height: 0.1});
		/* Ende */
    	
    	
    	/************************** Product Browse: FadeOut of active category onClick ***************************/
    	$(".remove").click(function () {
    	    $(this).parent().parent().fadeOut('slow', function () {
    	    // Animation complete.
    	    });
    	});
    	/* Ende */
    	
    	/************************* Abonnements: Incentive Selection *******************/
    	$("#abonnements .radio").click(function () {
		var active = false;
		if ($("#abonnements .radio:checked").is("[producttype=print]"))
			active = true;
		$(".chooseincentive").toggleClass("grey", !active);
    	});
  	$("#abonnements .radio").removeAttr("checked");
		
	/************************** FAQ Expandable Answers ***************************/
		$('.answer').hide();
		$('.question').click(function() {
		    $(this).children().toggleClass('hidden');
		    $(this).next().toggle();
		});
		/* Ende */
    	
		    	
    	$('a.product_small_print_on').qtip({
    		position: {
      			my: 'bottom center',  // Position my top left...
      			at: 'top center' // at the bottom right of...
   			},
   			content: {
   				text: 'Verf&uuml;gbar als Printausgabe'
   			},
   			style: {
      			classes: 'ui-tooltip-youtube'
  			},
  			show: {
  				solo: true
  			},
  			hide: {
  				delay: 2000,
  				fixed: true,
  				event: 'click mouseleave'
  			}
    	});
    	$('a.product_small_print_off').qtip({
    		position: {
      			my: 'bottom center',  // Position my top left...
      			at: 'top center' // at the bottom right of...
   			},
   			content: {
   				text: 'Nicht verf&uuml;gbar als Printausgabe'
   			},
   			style: {
      			classes: 'ui-tooltip-youtube'
  			},
  			show: {
  				solo: true
  			},
  			hide: {
  				delay: 2000,
  				fixed: true,
  				event: 'click mouseleave'
  			}
    	});
    	$('a.product_small_dl_on').qtip({
    		position: {
      			my: 'bottom center',  // Position my top left...
      			at: 'top center' // at the bottom right of...
   			},
   			content: {
   				text: 'Verf&uuml;gbar als Download'
   			},
   			style: {
      			classes: 'ui-tooltip-youtube'
  			},
  			show: {
  				solo: true
  			},
  			hide: {
  				delay: 2000,
  				fixed: true,
  				event: 'click mouseleave'
  			}
    	});
    	$('a.product_small_dl_off').qtip({
    		position: {
      			my: 'bottom center',  // Position my top left...
      			at: 'top center' // at the bottom right of...
   			},
   			content: {
   				text: 'Nicht verf&uuml;gbar als Download'
   			},
   			style: {
      			classes: 'ui-tooltip-youtube'
  			},
  			show: {
  				solo: true
  			},
  			hide: {
  				delay: 2000,
  				fixed: true,
  				event: 'click mouseleave'
  			}
    	});
    	$('a.product_small_view_on').qtip({
    		position: {
      			my: 'bottom center',  // Position my top left...
      			at: 'top center' // at the bottom right of...
   			},
   			content: {
   				text: 'Verf&uuml;gbar als Online-Version'
   			},
   			style: {
      			classes: 'ui-tooltip-youtube'
  			},
  			show: {
  				solo: true
  			},
  			hide: {
  				delay: 2000,
  				fixed: true,
  				event: 'click mouseleave'
  			}
    	});
    	$('a.product_small_view_off').qtip({
    		position: {
      			my: 'bottom center',  // Position my top left...
      			at: 'top center' // at the bottom right of...
   			},
   			content: {
   				text: 'Nicht verf&uuml;gbar als Online-Version'
   			},
   			style: {
      			classes: 'ui-tooltip-youtube'
  			},
  			show: {
  				solo: true
  			},
  			hide: {
  				delay: 2000,
  				fixed: true,
  				event: 'click mouseleave'
  			}
    	});
    	
    	
    	$('li.tooltip_mag[title]').qtip({
    		position: {
      			my: 'bottom left',  // Position my top left...
      			at: 'center center' // at the bottom right of...
   			},
   			style: {
      			classes: 'ui-tooltip-youtube'
  			},
  			show: {
  				solo: true
  			},
  			hide: {
  				delay: 2000,
  				fixed: true,
  				event: 'click mouseleave'
  			}
    	});
    	
    	$('li.tooltip_mag_gift[title]').qtip({
    		id: 'giftcard',
    		position: {
      			my: 'bottom left',  // Position my top left...
      			at: 'center center' // at the bottom right of...
   		},
   		style: {
      			classes: 'ui-tooltip-youtube'
  		},
  		show: {
  			solo: true
  		},
  		hide: {
  			delay: 0,
  			fixed: true,
  			event: 'click mouseleave'
  		}
    	});
    	
    	$('a.blackbar_btn[title]').qtip({
    		position: {
      			my: 'top center',  // Position my top left...
      			at: 'bottom center' // at the bottom right of...
   			},
   			style: {
      			classes: 'ui-tooltip-light ui-tooltip-rounded ui-tooltip-shadow'
  			},
  			show: {
  				solo: true
  			},
  			hide: {
  				delay: 2000,
  				fixed: true,
  				event: 'click mouseleave'
  			}
    	});
    	
    	/* $('li.tooltip_mag img').qtip({
    	id: 'modal',
    	content: {
      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      		title: {
				text: 'OnlineKiosk Popup',
				button: 'Schlie&szlig;en'
			},
      		ajax: {
      		   url: 'ajax/library_download_product.php', // URL to the local file
      		   type: 'GET', // POST or GET
      		   data: {} // Data to pass along with your request
      		}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		hide: false
		}); */
		
		$('li.tooltip_mag_gift img').qtip({
    	id: 'modal',
    	content: {
      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      		title: {
				text: 'OnlineKiosk Popup',
				button: 'Schlie&szlig;en'
			},
      		ajax: {
      		   url: 'ajax/giftcard.php', // URL to the local file
      		   type: 'GET', // POST or GET
      		   data: {} // Data to pass along with your request
      		}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		hide: false
		});
		
	$('.popup_singleissue').qtip({
		id: 'modal',
		content: {
			text: 'Laden...', // The text to use whilst the AJAX request is loading
			title: {
				text: 'Einzelausgabe kaufen',
				button: 'Schlie&szlig;en'
			}
   		},
   		position: {
			my: 'center',
			at: 'center',
			target: $(window)
   		},
		show: {
			modal: {
				effect: function(state) {
					$(this).fadeTo(900, state ? 0.5 : 0, function() {
						if(!state) { $(this).hide(); }
					});
				}
      			},
	   		event: 'click',
   			solo: true
		},
		hide: false,
		events: {
			show: function(event, api) {
				/* get product ID from element that caused the event */
				var productID = $(api.elements.target).attr('productID');

				/* fire custom ajax request */
				$.ajax({
					url: 'ajax/einzelausgabe.php',
					type: 'GET',
					data: { id: productID },
					dataType: 'html',
					cache: false,
					error: function(errmsg) {
						api.set('content.text', 'Laden fehlgeschlagen');
					},
					success: function(data) {
						api.set('content.text', data);
					}
				});
			}
		}
	});
	
	$('.popup_printgiftcard').qtip({
		id: 'modal',
		content: {
			text: 'Laden...', // The text to use whilst the AJAX request is loading
			title: {
				text: 'Geschenkkarte erstellen',
				button: 'Schlie&szlig;en'
			}
   		},
   		position: {
			my: 'center',
			at: 'center',
			target: $(window)
   		},
		show: {
			modal: {
				effect: function(state) {
					$(this).fadeTo(900, state ? 0.5 : 0, function() {
						if(!state) { $(this).hide(); }
					});
				}
      			},
	   		event: 'click',
   			solo: true
		},
		hide: {
			event: false,
		},
		events: {
			hide: function(event, api) {
				$(api.elements.content).find('*').remove();
			},
			show: function(event, api) {
				/* get product ID from element that caused the event */
				var productID = $(api.elements.target).attr('productID');

				/* fire custom ajax request */
				$.ajax({
					url: 'ajax/giftcard.php',
					type: 'GET',
					data: { id: productID },
					dataType: 'html',
					cache: false,
					error: function(errmsg) {
						api.set('content.text', 'Laden fehlgeschlagen');
					},
					success: function(data) {
						api.set('content.text', data);
					}
				});
			}
		}
	});
	
	$('.drm').qtip({
	    position: {
	    	my: 'bottom center',
	    	at: 'top center'
	    },
	    content: {
	   		text: 'Dieser Titel hat einen Adobe DRM Schutz. Sie k&ouml;nnen Ihn nur mit eRadern lesen, die Adobe DRM Inhalte entschl&uuml;sseln k&ouml;nnen und Sie ben&ouml;tigen hierf&uuml;r ein Benutzerkonto von Adobe mit Adobe ID. Um die Inhalte von Ihrem PC auf Ihren eRader &uuml;bertragen zu k&ouml;nnen, m&uuml;ssen Sie zun&auml;chst "Adobe Digital Editions" auf Ihrem PC installieren. Nicht f&uuml;r Mac, iPhone oder iPad geeignet!'
	    },
	    style: {
	    	classes: 'ui-tooltip-youtube'
	  },
	  show: {
	  	solo: true
	  },
	  hide: {
	  	delay: 2000,
	  	fixed: true,
	  	event: 'click mouseleave'
	  }
    });
	
	$('a.cancel').live('click', function() {
   		$(this).parents('.qtip').qtip("hide");
   		document.giftcard.submit();
   		alert("Ihr PDF wurde erstellt. Der Download sollte automatisch beginnen. Sie erhalten den Link zu Ihrem PDF zusaetzlich per E-Mail."); 
	});
	
	$('.popup_singleissues_library').qtip({
	 id: 'modal',
	 content: {
	   text: 'Laden...', // The text to use whilst the AJAX request is loading
	   title: {
		text: 'Einzelausgaben herunterladen',
		button: 'Schließen'
		}
	   },
	   position: {
	     my: 'center',
	     at: 'center',
	     target: $(window)
	   },
	   style: {
	     width: '450'
	   },
	   show: {
	     modal: {
	         effect: function(state) {
	            $(this).fadeTo(900, state ? 0.5 : 0, function() {
	               if(!state) { $(this).hide(); }
	            });
	         }
	       },
	     event: 'click',
	     solo: true
	   },
	   hide: false,
   		events: {
			show: function(event, api) {
				/* get product ID from element that caused the event */
				var productID = $(api.elements.target).attr('productID');

				/* fire custom ajax request */
				$.ajax({
					url: 'ajax/einzelausgaben_library.php',
					type: 'GET',
					data: { id: productID },
					dataType: 'html',
					cache: false,
					error: function(errmsg) {
						api.set('content.text', 'Laden fehlgeschlagen');
					},
					success: function(data) {
						api.set('content.text', data);
					}
				});
			}
		}
   });
		
				
	$('.chooseincentive').qtip({
		id: 'modal',
    		content: {
	      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      			title: {
				text: 'Alternative Pr&auml;mien verf&uuml;gbar',
				button: 'Schlie&szlig;en'
			}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		hide: false,
   		events: {
			show: function(event, api) {
				/* get product ID from checked attribute list radio button */
				var productID   = undefined;
				var selectedObj = $("#abonnements .radio:checked").get(0);

				if ($(selectedObj).is("[producttype=print]"))
					productID = $(selectedObj).val();

				if (typeof productID == 'undefined')
					return false;

				/* fire custom ajax request */
				$.ajax({
					url: 'ajax/addtocart.php',
					type: 'GET',
					data: { id: productID },
					dataType: 'html',
					cache: false,
					error: function(errmsg) {
						api.set('content.text', 'Laden fehlgeschlagen');
					},
					success: function(data) {
						api.set('content.text', data);
					}
				});
			}
		}
		});
		
		
		$('#mail_share').qtip({
    	id: 'modal',
    	content: {
      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      		title: {
				text: 'Produkt weiterempfehlen',
				button: 'Schlie&szlig;en'
			}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		 hide: false,
   		events: {
			show: function(event, api) {
				/* get product ID from element that caused the event */
				var productID = $(api.elements.target).attr('productID');

				/* fire custom ajax request */
				$.ajax({
					url: 'ajax/recommend.php',
					type: 'GET',
					data: { id: productID },
					dataType: 'html',
					cache: false,
					error: function(errmsg) {
						api.set('content.text', 'Laden fehlgeschlagen');
					},
					success: function(data) {
						api.set('content.text', data);
					}
				});
			}
		}
		});
		
		
		$('.addaddress').qtip({
    	id: 'modal',
    	content: {
      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      		title: {
				text: 'Adresse hinzuf&uuml;gen',
				button: 'Schlie&szlig;en'
			},
      		ajax: {
      		   url: 'ajax/addaddress.php', // URL to the local file
      		   type: 'GET', // POST or GET
      		   data: {} // Data to pass along with your request
      		}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		hide: false
		});
		
		$('.addbv').qtip({
    	id: 'modal',
    	content: {
      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      		title: {
				text: 'Bankverbindung hinzuf&uuml;gen',
				button: 'Schlie&szlig;en'
			},
      		ajax: {
      		   url: 'ajax/addbv.php', // URL to the local file
      		   type: 'GET', // POST or GET
      		   data: {} // Data to pass along with your request
      		}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		hide: false
		});
		
		$('#mydata_edit').qtip({
    	id: 'modal',
    	content: {
      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      		title: {
				text: 'Meine Daten &auml;ndern',
				button: 'Schlie&szlig;en'
			},
      		ajax: {
      		   url: 'ajax/settings_mydata_edit.php', // URL to the local file
      		   type: 'GET', // POST or GET
      		   data: {} // Data to pass along with your request
      		}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		hide: false
		});
		
		
		$('.edit_address').qtip({
    	id: 'modal',
    	content: {
      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      		title: {
				text: 'Meine Adresse &auml;ndern',
				button: 'Schlie&szlig;en'
			}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		hide: false,
   		events: {
			show: function(event, api) {
				/* get product ID from element that caused the event */
				var addrID = $(api.elements.target).attr('addrID');

				/* fire custom ajax request */
				$.ajax({
					url: 'ajax/settings_address_edit.php',
					type: 'GET',
					data: { id: addrID },
					dataType: 'html',
					cache: false,
					error: function(errmsg) {
						api.set('content.text', 'Laden fehlgeschlagen');
					},
					success: function(data) {
						api.set('content.text', data);
					}
				});
			}
		}
		});
		
		$('#add_address').qtip({
    	id: 'modal',
    	content: {
      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      		title: {
				text: 'Eine Adresse hinzuf&uuml;gen',
				button: 'Schlie&szlig;en'
			},
      		ajax: {
      		   url: 'ajax/settings_address_add.php', // URL to the local file
      		   type: 'GET', // POST or GET
      		   data: {} // Data to pass along with your request
      		}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		hide: false
		});
		
		$('.edit_bank').qtip({
    	id: 'modal',
    	content: {
      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      		title: {
				text: 'Meine Bankverbindung &auml;ndern',
				button: 'Schlie&szlig;en'
			}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		hide: false,
   		events: {
			show: function(event, api) {
				/* get product ID from element that caused the event */
				var bvID = $(api.elements.target).attr('bvID');

				/* fire custom ajax request */
				$.ajax({
					url: 'ajax/settings_bank_edit.php',
					type: 'GET',
					data: { id: bvID },
					dataType: 'html',
					cache: false,
					error: function(errmsg) {
						api.set('content.text', 'Laden fehlgeschlagen');
					},
					success: function(data) {
						api.set('content.text', data);
					}
				});
			}
		}
		});
		
		$('#add_bank').qtip({
    	id: 'modal',
    	content: {
      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      		title: {
				text: 'Eine Bankverbindung hinzuf&uuml;gen',
				button: 'Schlie&szlig;en'
			},
      		ajax: {
      		   url: 'ajax/settings_bank_add.php', // URL to the local file
      		   type: 'GET', // POST or GET
      		   data: {} // Data to pass along with your request
      		}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		hide: false
		});
		
		$('#change_pw').qtip({
    	id: 'modal',
    	content: {
      		text: 'Laden...', // The text to use whilst the AJAX request is loading
      		title: {
				text: 'Mein Passwort &auml;ndern',
				button: 'Schlie&szlig;en'
			},
      		ajax: {
      		   url: 'ajax/settings_change_pw.php', // URL to the local file
      		   type: 'GET', // POST or GET
      		   data: {} // Data to pass along with your request
      		}
   		},
   		position: {
   		   my: 'center',
   		   at: 'center',
   		   target: $(window)
   		},
   		show: {
   		   modal: {
      		   effect: function(state) {
      		      $(this).fadeTo(900, state ? 0.5 : 0, function() {
      		         if(!state) { $(this).hide(); }
      		      });
      		   }
      		},
   		   event: 'click',
   		   solo: true
   		},
   		hide: false
		});
		
		$('.digitalabo_gift').qtip({
    position: {
      my: 'bottom center',  // Position my top left...
      at: 'top center' // at the bottom right of...
    },
    content: {
    text: 'Digitalabo verschenken'
    },
    style: {
      classes: 'ui-tooltip-youtube'
  },
  show: {
  solo: true
  },
  hide: {
  delay: 2000,
  fixed: true,
  event: 'click mouseleave'
  }
    });
   
    $('.printabo_gift').qtip({
    position: {
      my: 'bottom center',  // Position my top left...
      at: 'top center' // at the bottom right of...
    },
    content: {
    text: 'Printabo verschenken'
    },
    style: {
      classes: 'ui-tooltip-youtube'
  },
  show: {
  solo: true
  },
  hide: {
  delay: 2000,
  fixed: true,
  event: 'click mouseleave'
  }
    });
   
    $('.digitalabo_gift_cart').qtip({
    position: {
      my: 'bottom center',  // Position my top left...
      at: 'top center' // at the bottom right of...
    },
    content: {
    text: 'Digitalabo wird verschenkt. Daten hierf&uuml;r werden nach dem Kaufvorgang bei "Geschenkkarte erstellen" eingegeben.'
    },
    style: {
      classes: 'ui-tooltip-youtube'
  },
  show: {
  solo: true
  },
  hide: {
  delay: 2000,
  fixed: true,
  event: 'click mouseleave'
  }
    });
   
    $('.printabo_gift_cart').qtip({
    position: {
      my: 'bottom center',  // Position my top left...
      at: 'top center' // at the bottom right of...
    },
    content: {
    text: 'Printabo wird verschenkt. Lieferadresse wird im n&auml;chsten Schritt eingegeben.'
    },
    style: {
      classes: 'ui-tooltip-youtube'
  },
  show: {
  solo: true
  },
  hide: {
  delay: 2000,
  fixed: true,
  event: 'click mouseleave'
  }
    });
			
			
 		});

