

/**** Cufon *********************************************************/
Cufon.now();
var cufon_selectors = {



	
	
		'Helvetica World W02': 'h2, h3[class!=skip], .helvetica, .m_product_thumb dt a:visible, .m_product_thumb .price, .m_set_thumb dt a:visible, .m_set_thumb .price, .m_simple_text_impressum td, .navh a, .m_set_thumb_start .price'
	
	
	
	

};

function replace_fonts(obj) {

	var ignoreChildrenOfClass = "nocuf";
	var ignoreChildrenOfID = "seo-text";

	if (obj == undefined) {
		obj = $('#page');
	}

	$.each(cufon_selectors, function(fontFamily, cuf_selectors){
		var selectors = cuf_selectors.split(", ");
		$.each(selectors, function(k, v){
			$elements = $(v);                                                                  			// all matching elements
			var $filteredElementsClass = $('.' + ignoreChildrenOfClass).find(v);                    	// the matching elements which should not be changed
			var $filteredElementsID = $('#' + ignoreChildrenOfID).find(v);                    				// the matching elements which should not be changed
			var $comparedElements = $elements.not($filteredElementsClass).not($filteredElementsID); 	// the resulting elements which are to be changed
			if ($comparedElements.length > 0){
				try {
					Cufon.replace($comparedElements, {
						hover: false,
						fontFamily: fontFamily
					});
				} catch(e) {
					// console.log('EXCEPTION CAUGHT: ' + e);
				}
			}
		});
	});

}

replace_fonts();