﻿Cufon.set('letterSpacing', 'normal');
Cufon.set('fontSize', '16px');
Cufon.replace("DIV.search LABEL", { hover:true });
Cufon.replace("DIV.navigation LI", { hover:true });
Cufon.replace("DIV.sidebar LI", { hover:true });
Cufon.replace("UL.menu LI", { hover:true });
Cufon.replace("h1.title", {fontSize:'28px'});
Cufon.replace("h1.sub-title", {fontSize:'23px'});
Cufon.replace("h2,h3", {fontSize:'19px'});
Cufon.replace('DIV.no-selection', {fontSize:'28px'});
Cufon.replace("BODY.section-cart DIV#progress-tracker", { hover:true });
Cufon.replace("#language A", {fontSize:'14px',hover:true})
Cufon
('BODY.page-product DIV.form-item A')
("DIV#login LABEL")
("DIV#login A")
('DIV.footer SPAN.wellcome-message SPAN.logout');
Cufon.replace("DIV.quickresult .submit A", { hover:true });
Cufon.replace("DIV.quicklook .options A", { hover:true, fontSize:'14px' });
Cufon.replace("DIV.quicklook .submit A", { hover:true, fontSize:'14px' });
Cufon.replace("BODY.section-location #location h2", {fontSize:'28px'});
Cufon.replace("BODY.section-location #location h3", {fontSize:'16px'});

Cufon.replace('BODY.page-product DIV.bubble-inner STRONG', {fontSize:'14px'});


$(document).ready(function(){
						   
	$("body").addClass("js");
	
	if (jQuery.isFunction(jQuery.fn.tooltip)) {
		$('body.page-all .product-matrix ul li a').tooltip({format:true});
		$("body.page-material .bubble-thumbs ul li a").tooltip();
		$("body.page-search .product-matrix ul li a").tooltip();
		$("body.page-property .product-matrix ul li a").tooltip();
		$('body.page-collection #browser.bubble-collection LI A').imgtip();
	}
	
	// die warenkorb menge muß auf jeder Seite abgefragt werden
	if (jQuery.basket != null)
		$.basket.init();
	
	
	$('#block-menu-katalog-links .menu LI').hover(
		function(){$(this).addClass('hover')},
		function(){$(this).removeClass('hover')
	});
	
	
	// wechselt den Kunden Typ
	$('.client A').unbind('click').click(function() {
		// prüfen ob der warenkob leer ist
		if ($('.header .navigation .red').text() === "0") {
			window.location.href = $(this).attr('href');
		} else {
			// title, url, img
			tb_show('', $.goin.defaults.ajaxClientSwitch, '');
			return false;
		}
	});
	
	
});