function return_false(){return false;}

function go_home(){
	var url = window.location;
	switch(url.host){
		case 'volt.webdev':
			window.location='/cjd/cd/de/';
		break;
		default:
			window.location='/';
		break;
	}
}

function start_fancybox_for_ajax(){
	jQuery('.fancybox_ajax').each(function(index, value){
		cur_link = jQuery(this);
		target = jQuery('#'+cur_link.attr('data-open'));
		cur_link.fancybox({
			'autoScale'		: false,
			'autoDimensions': false,
			'width'			: target.width(),
			'height'		: target.height(),
			'content'		: target.html()
		});
	});
	
}


function load_wishlist(action, product_id, show, fullpage){
	post_data = 'action='+action+'&notepad_product_id=' + product_id +'&link=' + current_link+'&fullpage=' + fullpage;
	jQuery.ajax({
		type: 'POST',
		url: 'wishlist_preview.php?ajax=true',
		data:  post_data,
		dataType: 'text',
		success: function(data){
			response = data;
		},
		error: function(obj){
			response = false;
		},
		complete: function(obj){
			response = response.split('|');
			//set the cout
			jQuery('.wishlist_count').html(response[1]);
			if(show){
			//jQuery('#wishlist_ct').html(response);
			response = response[0].substring(0, response[0].indexOf('<!--end-->'));
			jQuery('#wishlist_ct').html(response);
			if(jQuery('.wRow').length > 0){
				jQuery('.wRow:first-child').removeClass('hidden');
			}
			if(jQuery('#redirect').length > 0){
				jQuery('#redirect').val(self_url+'#wishlist');
			}
			wPagination();				
			//if not logged in add the product after login
			jQuery('#wishlist_product').val(wish_prod);
			}
		}
	});
}

function wPagination(){
	var count = jQuery('.wRow').length;
	if(count){
		var ct = document.getElementById('wPages_ct');
		for(i=1; i<=count; i++){
			var pg = document.createElement('a');
			pg.id = 'wPage'+i;
			pg.className = 'wbtn wNr';
			pg.innerHTML = i;
			pg.setAttribute('href', current_link+'#wishlist_preview');
			pg.setAttribute('data-page', i);
			if(ct){	ct.appendChild(pg);	}
		}
		jQuery('.wNr:first-child').addClass('wCurrPage');
	}
	
	jQuery('.wNr').click(function(){
		wNext_row(jQuery(this).attr('data-page'));
	});
}

function refresh_wishlist_ct(){
	if (jQuery('#wishlist_toggler').hasClass('drop_open')){
		load_wishlist('','',true);
	}else{
		jQuery('#wishlist_ct').html('&nbsp;');
	}
}

function wShowAll(){
		var show_all = jQuery('#wShowAll');
		//switch text
		var text = show_all.html();
		show_all.html(show_all.attr('data-alt'));
		show_all.attr('data-alt', text);
		jQuery('#wishlist_ct').toggleClass('wShowAll');
		jQuery('.wNr').toggleClass('hidden');
	return false;
	}
	
function wNext_row(i){
	//alert('test');
	jQuery('.wCurrPage').removeClass('wCurrPage');
	jQuery('#wPage'+i).addClass('wCurrPage');
	jQuery('.wRow').addClass('hidden');
	i=parseInt(i) - 1;//eq instead of nth-child because of IE
	jQuery('.wRow:eq('+i+')').removeClass('hidden');
}

function lightbox(content, target){
	var target = target || 'page';
	var lightbox = document.createElement('div');
	lightbox.id = 'lightbox';
	if(typeof(content) == 'object'){
		lightbox.appendChild(content);
	}else{
		lightbox.innerHTML = content;
	}
	var btn_close = document.createElement('div');
	btn_close.id = 'btn_close';
	lightbox.appendChild(btn_close);
	jQuery('#'+target).append(lightbox);
	jQuery('#lightbox_bg').show();
	//hide_logo
	if(jQuery.browser.msie){jQuery('#flashLogo').hide();}
	jQuery('#btn_close').click(function(){
		close_lightbox();
	});
}

function close_lightbox(){
	jQuery('#lightbox_bg').hide();
	//show_logo
	if(jQuery.browser.msie){jQuery('#flashLogo').show();}
	jQuery('#lightbox').remove();
}

function quick_availability_check(parentID, productNumber){
	productId = jQuery('#'+parentID+' .quick_size').val();
	if(jQuery('.setItem_link').length > 0){
		itemIdsArr = new Array;
		jQuery ('.selected').each(function(f){
			itemIdsArr.push(jQuery(this).attr('id'));
		});
		itemIds=itemIdsArr.join('-');
	}else{
		itemIds = '';
	}
	jQuery.ajax({
		type: 'POST',
		url: 'product_availability.php?ajax=true&short_text=true',
		data: 'productId=' + productId + '&productNumber=' + productNumber + '&itemIds=' + itemIds,
		dataType: 'text',
		success: function(data){
			response = data;
		},
		error: function(obj){
			response = NO_INFO_MESSAGE_TXT;
		},
		complete: function(obj){
			availability = response.split('|');
			//availability : ava.text | ava.class | price | price.beta
			jQuery('#'+ parentID +' .availabilityStatus').html(availability[0]);
			jQuery('#'+ parentID +' .availabilityStatus').addClass(availability[1]);
			jQuery('#'+ parentID +' .quick_product_price').html(availability[2]);
		}
	});
}


function quick_prev(pid){
	//close all other prev
	jQuery('.quick_is_open').each(function(index,element){
		if(jQuery(this).parent().attr('id') != pid){
			jQuery(this).click();
		}
	});
	prod_teaser = jQuery('#'+pid);
	prev_ct = prod_teaser.children('.quick_prev_ct');
	//for the small grid extra actions needed
	if(jQuery('.containerProdListing7col').length){
		if(prod_teaser.children('.close_quick_prev').hasClass('quick_is_open')){ // => close	
			img_c =prod_teaser.find('.thumb_img');	
			prod_teaser.css('z-index','1');
			prod_teaser.parent().css('z-index','1');				
			img_c.delay(600).animate({
				width: 94,
				height: 141
				}, 200, function(){
					img_c.css('position','static');
					img_c.css('z-index','1');
					img_c.css('right','auto');
			});		
		}else{ // => open
			img =prod_teaser.find('.thumb_img');
			prod_teaser.css('z-index','10');
			prod_teaser.parent().css('z-index','10');
			img.css('position','absolute');
			img.css('z-index','10');	
			if(prod_teaser.hasClass('lastChild')){ // last row
			img.css('right','0px');
			prev_ct.css('right','0px');
			prod_teaser.children('.close_quick_prev').css('right','6px');
			}
			img.animate({
				width: 170,
				height: 255
				}, 200
			);
		}
	}
	//end small grid
	prev_ct.delay(200).slideToggle('slow');
	prev = prod_teaser.children('.quick_prev');
	prev.toggleClass('active_quick');
	prod_teaser.children('.close_quick_prev').delay(200).toggle().toggleClass('quick_is_open');
	if(prev_ct.children().length <= 1){ // ajax only once
		jQuery.ajax({
			type: 'POST',
			url: 'product_info_quick.php?ajax=true&quick=true&pid='+pid,
			data:  "",
			dataType: 'text',
			success: function(data){
					response = data;
				},
				error: function(obj){
					response = false;
				},
				complete: function(obj){
					if(response){
						prev_ct.html(response);
					}else{
						
					}
				}
		});
	}
}

function quick_shop(parentID){
		//start loading ani
		box_shopping_cart = jQuery('#box_cart .cartText');
		//build in_cart_ani
		ani = jQuery(document.createElement('div'));
		ani.css('position','absolute');
		ani.css('background','#7fbe35');
		ani.css('z-index','1500');
		ani.width(jQuery('#'+parentID+' .close_quick_prev'));
		box_shopping_cart.width(box_shopping_cart.width()).height(box_shopping_cart.height()).html('&nbsp;').css('background','url("images/loading.gif") center center no-repeat');
		source_btn = jQuery('#'+parentID+' .quick_buy_btn');
		jQuery('body').append(ani);
		ani.width(source_btn.width());
		ani.height(source_btn.height());
		ani.offset(source_btn.offset());
		target_position =  box_shopping_cart.offset();
		ani.animate({
			opacity: 0.25,
			left: target_position.left,
			top: target_position.top,
			width: 'toggle'
			}, 500,  function() {
			ani.remove();
		});
		//ani end
		
		pid = jQuery('#'+parentID+' .quick_size').val();
		jQuery.ajax({
		type: 'POST',
		url: 'shopping_cart_box.php?ajax=true&products_id='+pid+'&parent_id='+parentID,
		data:  "",
		dataType: 'text',
		success: function(data){
				response = data;
			},
			error: function(obj){
				response = false;
			},
			complete: function(obj){
				if(response){
					jQuery('#header_cart').replaceWith(response);
					setTimeout("quick_prev("+parentID+")",300);
					activeate_wk_slider();
				}else{
					window.location.reload();
				}
			}
		});	
		return false;
}

function activeate_wk_slider(){
	jQuery('.wk_slider').mouseenter(function(){
		jQuery('#cart_slider').slideDown();
	});
	
	jQuery('#header_cart').mouseleave(function(){
		jQuery('#cart_slider').slideUp();
	});
};

function expandNav(){
	if ( !jQuery.browser.msie || ( jQuery.browser.msie && parseInt(jQuery.browser.version) > 6 ) ) {
		//jQuery(this).addClass('hover').children('div').slideDown(10,function(){ jQuery(this).siblings('ul').slideDown('fast')});
		// Welches Element wurde gehovert
		overElement = jQuery(this).attr('id');
		//alert (overElement);
		jQuery(this).children('div').show();
		jQuery(this).addClass('hover');
		jQuery(this).children('div.navSpacer').show();
	}
}
function reduceNav(){
	jQuery(this).children('div.navSpacer').hide();
	if ( !jQuery.browser.msie || ( jQuery.browser.msie && parseInt(jQuery.browser.version) > 6 ) ) {
		if(jQuery(this).children('ul').length > 0){
			jQuery(this).children('ul').slideUp('fast',function(){jQuery(this).parent('li').removeClass('hover');});
		}else{
			jQuery(this).removeClass('hover');
		}
	}
}


function productTabNav(link, content) {
    /* hide all content */
    document.getElementById('prodDetails').style.display = 'none';
    document.getElementById('prodSizes').style.display = 'none';
    document.getElementById('prodCare').style.display = 'none';
    /* display selected all content */
    document.getElementById(content).style.display = "";
    
    /* clear activeTab */
    var activeTab = document.getElementById('productTabNav').getElementsByTagName("LI");
    
    for (var i=0; i<activeTab.length; i++) {
			activeTab[i].className="";
	}
    /* set activeTab */
    link.parentNode.className = " active";
    
}

function showSelectBoxes(){
        selects = document.getElementsByTagName("select");
        for (i = 0; i != selects.length; i++) {
                selects[i].style.visibility = "visible";
        }
}

function hideSelectBoxes(){
        selects = document.getElementsByTagName("select");
        for (i = 0; i != selects.length; i++) {
                selects[i].style.visibility = "hidden";
        }
}

function showlayer(){
	jQuery("div#flashlayer").show();
}
function hidelayer(){
	jQuery("div#flashlayer").empty().hide();
}

function grid_ani(grid_selection){
		if(jQuery('#grid_ct').hasClass('drop_open')){
			jQuery('#grid_ct').removeClass('drop_open');
			jQuery('#grid_ct').children().hide();
			jQuery('#'+grid_selection).show();
			jQuery('#grid_value').val(grid_selection);
			jQuery('#grid_form').submit();
		}else{
		jQuery('#grid_ct').addClass('drop_open');
		jQuery('#grid_ct').children().show();
		}
		
}

function closeCallback () {
	jQuery.fancybox.close();
}

function oHistory_open(oID, shop){
	var oct = jQuery('#'+oID+'_ct');
	if(oct.html() == ''){
		get_data = 'order_id='+oID+'&shop=' + shop+'&ajax=true';
		jQuery.ajax({
			type: 'GET',
			url: 'order_history.php',
			data:  get_data,
			dataType: 'text',
			success: function(data){
				response = data;
			},
			error: function(obj){
				response = false;
			},
			complete: function(obj){
				oct.html(response);
				oct.css('visibility','visible');
				oct.css('height','auto');
				start_tb();
				//oct.animate({'height': 'toggle'});
			}
		});
	}else{
		oct.html('');
		oct.css('visibility','hidden');
		oct.css('height','1px');
	}
}

function review_open(rID){
	jQuery('#'+rID+'_ct').animate({'height': 'toggle'});
}

function reloadShoppingCart()
{
	tb_remove();
	window.location.href=window.location.href;
}

function toggle_packstation(){
	jQuery('.non_packstation').toggle();
	jQuery('.packstation').toggle();
	if(jQuery('#new_default_shipping_address').length){
		jQuery('#new_default_shipping_address').removeAttr('checked').parent().toggle();
	}
}

function warn(message){
	jQuery.fancybox(message);
}





/************************************/
/***** DOCUMENT READY EVENT *********/

jQuery(document).ready(function(){
		
	//read the WK count
	var wcount = parseInt(jQuery('.wishlist_count').html());
	jQuery('.wishlist_count').html(wcount); //copy it in all instances
	

	$('#navCat').removeClass('noscript');
	$('#navTheme').removeClass('noscript');

	
	// Produktbewertungen - Sterne anzeigen & in input-Feld übernehmen
	jQuery('.set_rating a').click(function(e){
		e.preventDefault();
		input_field = '#set'+jQuery(this).parent().attr('id');
		if ( jQuery(this).next().hasClass('active') ) {
			jQuery(this).nextAll().removeClass('active');
			jQuery(input_field).attr('value',jQuery(this).attr('rel'));
			
		}
		else if ( jQuery(this).hasClass('active') ) {
			jQuery(this).removeClass('active').nextAll().removeClass('active');
			jQuery(input_field).attr('value',parseInt(jQuery(this).attr('rel'))-1);
		}
		else {
			jQuery(this).addClass('active').prevAll().addClass('active');
			jQuery(input_field).attr('value',jQuery(this).attr('rel'));
		}
		jQuery('#'+jQuery(this).parent().attr('id')+'_txt').html(jQuery(input_field).val());
		return false;
	});
	
	
	jQuery('.set_rating a').hover(
		function(){
			if ( !jQuery(this).hasClass('active') ) {
				jQuery(this).addClass('hover').prevAll().addClass('hover');
			}
		},
		function(){
			jQuery(this).removeClass('hover');
		}
	);
	
	jQuery('.set_rating').hover(
		function(){
			jQuery(this).children().removeClass('hover');
		}
	);
	
	
	// Landingpage Kundenbewertung
	jQuery('#kundenbewertung dt').hover(
		function(){
			jQuery(this).css({'cursor': 'pointer'});
		},
		function(){
			jQuery(this).css({'cursor': 'default'});
		}
	);

	// Landingpage Kundenbewertung
	jQuery('#kundenbewertung dt').click(function(event){
		event.preventDefault();
		jQuery(this).addClass('active').siblings('dt').removeClass('active');
		
		var id = 'anmelden';
		if ( jQuery(this).hasClass('bewerten') ) {
			id = 'bewerten';
		}
		else if ( jQuery(this).hasClass('kommentieren') ) {
			id = 'kommentieren';
		}
		jQuery('#'+id).addClass('active').siblings('dd').removeClass('active');
	});
	
	// Show Careinfos
	jQuery('.prodCareSymbol').mouseenter(function() {
		jQuery('#'+jQuery(this).attr('id')+'Desc').css('left',jQuery(this).position().left-(parseInt(jQuery('#'+jQuery(this).attr('id')+'Desc').css('width'))/2)+9+'px');
		jQuery('#'+jQuery(this).attr('id')+'Desc').css('top',jQuery(this).position().top-parseInt(jQuery('#'+jQuery(this).attr('id')+'Desc').css('height'))-10+'px');
	});
	
	jQuery('.prodCareSymbol').mouseout(function() {
		jQuery('#'+jQuery(this).attr('id')+'Desc').css('left','-5000px');
		jQuery('#'+jQuery(this).attr('id')+'Desc').css('top','-100px');
	});
	
		
	jQuery('.w_login').click(function(){
		jQuery(this).removeAttr('checked');
		wish_prod = jQuery(this).attr('data-wishlist');
		window.scroll(0,0);	
		jQuery('#wishlist_toggler').click();
	});
	
	// IE hack!!!
	jQuery('.to_wishlist').click(function(){
		this.blur();
	});
	
	jQuery('.to_wishlist').click(function(){
		var show = (jQuery('#wishlist_toggler').hasClass('drop_open')) ? true : false;
		var prid = jQuery(this).attr('data-wishlist');
		jQuery('#'+prid+' .quick_prev').css('visibility','hidden');
		jQuery(this).toggleClass('on_wishlist');
		if(jQuery(this).hasClass('on_wishlist')){
			load_wishlist('add', prid , show);
			jQuery('#label_'+prid+' .removed_w').hide();
			jQuery('#label_'+prid+' .added_w').show();
		}else{
			load_wishlist( 'delete', prid, show);
			jQuery('#label_'+prid+' .removed_w').show();
			jQuery('#label_'+prid+' .added_w').hide();
		}
		jQuery('#label_'+prid).slideDown();
		setTimeout("jQuery('#label_"+prid+"').slideUp()", 5000);
		setTimeout("jQuery('#"+prid+" .quick_prev').css('visibility','visible')", 5100);
	});
	
	jQuery('div#wishlist_toggler').click(function(e){
		e.preventDefault();
		jQuery(this).toggleClass('drop_open');
		var wct = jQuery('#wishlist_ct');		
		if(wct.html() != '&nbsp;'){//wct open => close!
			wct.animate({'height': 0}, 500);
			wct.removeClass('wShowAll');
		}else{//wct close => open!
			var height = 391; //default
			if(jQuery('#show_wishlist').hasClass('short_toggler')){
				height = 300;
			}
			wct.height(0);
			wct.show();
			wct.animate({'height': height}, 1500);
			
		}
		
		refresh_wishlist_ct();
		return false;
	});
	
	jQuery('.view_wishlist').click(function(e){
		e.preventDefault();
		window.scroll(0,0);
		if(jQuery('#wishlist_ct').html() == '&nbsp;'){
			jQuery('#wishlist_toggler').click();
		}
		return false;
	});
		
	//lightbox
	jQuery('.close_lightbox').click(function(){
		close_lightbox();
	});
	
	//quick preview
	jQuery('.quick_link').click(function(e){
		e.preventDefault();
		quick_prev(jQuery(this).attr('data-pid'));
		return false;
	});
	
	//wk_slider
	activeate_wk_slider();
	
	//packsattion
	
	// Produktentwicklung Lightbox
	jQuery('.produktentwicklung').click(function() {
		href = $(this).attr('href');
		
		jQuery.fancybox({
			'href'			: href,
			'width'			: 580,
			'height'		: 380,
			'autoScale'		: false,
			'autoDimensions': false
		});
		
		return false;
	});
	
	jQuery('#redirect-close').live('click', function() {
		jQuery.fancybox.close();
		return false;
	});
	
	jQuery('.fancybox').fancybox({
		'type' : 'iframe',
		'autoScale'		: true,
		'autoDimensions': true
	});
	
	jQuery('.fancybox_big').fancybox({
		'type' : 'iframe',
		'autoScale'		: false,
		'autoDimensions': false,
		'width' : 795,
		'height': 500
	});
	
	//FILTER------------------------------------
	jQuery('.filter_option').change(function(){
		jQuery('#filter_form').submit();
	});
	jQuery('.back').removeClass('actionlink').removeClass('back').addClass('backLink');
	
	
	jQuery('#sort_drop li').click(function(){
			var isOpen = false;
			if($('#sort_0').hasClass('drop_open'))
			{
				isOpen = true;
			}
			if(isOpen){	
				jQuery('#sort_drop li').removeClass('selected_drop');
				jQuery('#sort_drop li').removeClass('drop_open');
				jQuery(this).addClass('selected_drop');
				jQuery('.drop').hide();
				jQuery('.selected_drop').show();	
			}else{
				jQuery('#sort_drop li').removeClass('selected_drop');
				jQuery(this).addClass('drop');
				jQuery('#sort_drop li').show();
				jQuery('#sort_0').addClass('selected_drop drop_open');
				return false;
			}
		  });
		  
    //filters
	jQuery('#only_available').change(function(){
		if(jQuery('#only_available').attr('checked')){
			window.location.href = self_url + '&' + 'available=on';
		}else{
			window.location.href = self_url + '&' + 'available=off';
		}
	});
	jQuery('#stickservice_button').change(function(){
		if(jQuery('#stickservice_button').attr('checked')){
			window.location.href = self_url + '&' + 'stickservice=on';
		}else{
			window.location.href = self_url + '&' + 'stickservice=off';
		}
	});
	jQuery('.filter_title').click(function(){
				var filter_body = jQuery(this).siblings('.filter_body');
				if($(this).hasClass('color_title')){
						filter_body.css('height', filter_body.height());
				}
				if(jQuery(this).hasClass('title_closed')){
					h = filter_body.height();
					filter_body.height('1');
					filter_body.css('display', 'block');
					filter_body.animate({height:h},  300
					);
				}else{
					filter_body.height(filter_body.height());
					filter_body.hide();
				}
				jQuery(this).toggleClass('title_closed');
			});
	jQuery('.clear_onfocus').focus(function() {
			jQuery(this).attr("value","");
			});
		
		//open filter:
		if(jQuery('.selected_cat').length > 0 ){
			jQuery('.selected_cat .scroll_ct').animate({height:'toggle'},  300);
			jQuery('.selected_cat h6').toggleClass('size_closed');		
		}else{
			//find first and open
			jQuery('.scroll_ct').eq(0).animate({height:'toggle'}, 700);
			jQuery('.filter_cat h6').eq(0).toggleClass('size_closed');
		}
		//expand/collapse sizes
		jQuery('.size_title').click(function(){
			jQuery(this).parent().parent().removeAttr('style');
			jQuery(this).siblings('.scroll_ct').animate({height:'toggle'}, 700);
			jQuery(this).toggleClass('size_closed');
		});
		
	
	//page input
	jQuery('#pageInput').blur(function(){
			jQuery('#pageInput').val(current_page);
			jQuery('#pageInput').val(1);
	});
	
	/*jQuery('.tab_title').click(function(){
		name=jQuery(this).attr('id').substr(0,jQuery(this).attr('id').indexOf('_'));
		name += "_tab";
		jQuery('#read_more_ct a').html(jQuery('#read_more_ct a').attr('data-'+jQuery(this).attr('id')));
		jQuery('#'+name).css('z-index','100');
		jQuery(this).siblings().removeClass('active_tab');
		jQuery('#'+name).siblings().hide();
		jQuery(this).addClass('active_tab');
		jQuery('#'+name).show();
	});
	
	jQuery('#prodDetails .read_more').click(function(){
		jQuery('.tab_title').each(function(index){
			var tab = jQuery(this);
			
			if(!tab.hasClass('active_tab')){
				tab.click();
				return false;
			}
		});
		return false;
	});*/
	
	//tooltips
	if(jQuery('.tooltip_ct').length > 0){
		setTimeout("jQuery('.tooltip_ct').each(function(i,el){jQuery(this).delay(i*100).fadeOut(300);});", 5000);
	}
	
	jQuery('input, select').focus(function(){
		jQuery(this).parent().removeClass('error');
	});
	
	//material links
	jQuery('.material_radio').click(function(){
		window.location = jQuery(this).attr('data-link');
	});
	
		
	//navigation correct
	jQuery('.activeCatLink').parent().parent().parent().children('a').removeClass('activeCatLink');
	
	
	jQuery('.wk_dummy').click(function(){
		jQuery('.continue_btn').click();
		return false;
		});
	jQuery(".style_board_link").fancybox({
			'modal'						: true,
			'width'						: 900,
			'height'					: 560,
			'padding'					: 0,
			'autoScale'				: false,
			'overlayOpacity'	: 0.5,
			'overlayColor'		: '#222',
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'fade',
			'swf'							: {flashvars:'user=guest&appid=212865115399633&email=&language=deutsch&data=../../export/styleboard_products.php?languages_id=2'}
	});
	
	if(parseFloat(GetSwfVer()) > 0){
		var fashionshow_fversion = parseFloat(GetSwfVer().replace(/[A-Z]|[a-z]/g, "").replace(",","."));
		if(jQuery('#MainApplication').length >0){
			var fashionshow_fallback = jQuery('#MainApplication').html(); // IE will  not return the Fallback content
			if(fashionshow_min_version > fashionshow_fversion && fashionshow_fversion > 0) {
				fashionshow_fallback = fashionshow_fallback.substring(fashionshow_fallback.indexOf('<!--<![endif]-->') + '<!--<![endif]-->'.length);
				fashionshow_fallback = fashionshow_fallback.substring(0,fashionshow_fallback.indexOf('<!--[if !IE]>-->'));
				jQuery('#teaserLeft_ct').html(fashionshow_fallback);
			}
		}
	}
	
	jQuery('.hint_close').click(function(){
		jQuery(this).parent().slideUp();
	});
	
	jQuery('input[name$="street_address_name"]').blur(function(){
		if($(this).val().match('[0-9]') && typeof address_warning != "undefined"){
			warn(address_warning)
		}
	});
	
	//checkput packstation
	jQuery('.address_radio').click(function(){
		if(jQuery('#selected_default_shipping_address').length){
			if(jQuery(this).hasClass('packstation_radio')){
				jQuery('#selected_default_shipping_address').removeAttr('checked').parent().hide();
			}else{
				jQuery('#selected_default_shipping_address').parent().show();
			}
		}
	});
	
	
});//end document ready
