$(document).ready(function(){
	
	$('#cartbox').qtip({
		content: $('#fullcart'),
	  show: 'mouseover',
	  hide: 'mouseout',
	  position: {
			corner: {
				tooltip: 'bottomRight', 
				target: 'topLeft' 
			},
			adjust: { 
				x: 20, 
				y: 0,
				screen:true
			} 
		},
	  hide: { when: 'mouseout', fixed: true, delay: 1000 },
	  style: { 
	  	background: 'transparent',
	  	width: { 
	  		min: 300, 
	  		max: 300
	  	} 
	  }
	});
	
	
	$('.pdflink').qtip({
		content: $('#getreader'),
	  show: 'mouseover',
	  hide: 'mouseout',
	  position: {
			corner: {
				tooltip: 'bottomLeft', 
				target: 'topRight' 
			},
			adjust: { x: -20, y: -13} 
		},
	  hide: { when: 'mouseout', fixed: true, delay: 1000 },
	  style: { 
	  	background: 'transparent',
	  	width: { min: 400, max: 400 },
	  	border: { width:0, color: 'transparent' }
	  }
	});
	
	$("#revocationBlock").hide();
	$("#foldRevocation").click(function () {
      $("#revocationBlock").slideToggle("fast");
    });

	
	$(".prodthumb a").lightBox({
			imageLoading:		'templates/stil/javascript/loading.gif',		
			imageBtnPrev:		'templates/stil/javascript/lightbox-btn-prev.gif',		
			imageBtnNext:		'templates/stil/javascript/lightbox-btn-next.gif',		
			imageBtnClose:	'templates/stil/javascript/lightbox-btn-close.gif',
			imageBlank:			'templates/stil/javascript/lightbox-blank.gif',
			txtImage:				'Bild',	
			txtOf:					'von',
			overlayOpacity:	0.4
	});
	
	$(".prodimageblock a").lightBox({
			imageLoading:		'templates/stil/javascript/loading.gif',		
			imageBtnPrev:		'templates/stil/javascript/lightbox-btn-prev.gif',		
			imageBtnNext:		'templates/stil/javascript/lightbox-btn-next.gif',		
			imageBtnClose:	'templates/stil/javascript/lightbox-btn-close.gif',
			imageBlank:			'templates/stil/javascript/lightbox-blank.gif',
			txtImage:				'Bild',	
			txtOf:					'von',
			overlayOpacity:	0.4
	});
	
	$('input:radio').addClass('checkradio');
	$('input:checkbox').addClass('checkradio');
	

	$('#printpage').click(function(){
		$('#col2').print();
	}); 
	
});


jQuery(function($) {
	$('#slides').cycle({ 
	    fx:    'fade', 
	    delay: 7000,
	    timeout: 7000,	
	    speed: 700
	});
});
