$(document).ready(function(){
	

	//collapsible management
	$('.collapsible').collapsible();
	
	$('#sticky').cluetip({sticky: true, closePosition: 'title', arrows: true});
	
	$("#SideCategoryList").siblings("ul").siblings("li").addClass("head");
//	$('.GiftCertificateThemeList br').hide('');
	
	$( "#accordion" ).accordion({autoHeight: false,collapsible: false,active: false,navigation: true});
	
	$(".SideCategoryListClassic ul:gt(13)").css("display","none");

	$(".pressbox li:nth-child(8)").addClass("ProductListNoMargin");
	$(".pressbox li:nth-child(16)").addClass("ProductListNoMargin");
	$(".pressbox li:nth-child(24)").addClass("ProductListNoMargin");
	$(".pressbox li:nth-child(32)").addClass("ProductListNoMargin");
	$(".pressbox li:nth-child(40)").addClass("ProductListNoMargin");
	$(".pressbox li:nth-child(48)").addClass("ProductListNoMargin");
	$(".pressbox li:nth-child(56)").addClass("ProductListNoMargin");
	$(".pressbox li:nth-child(64)").addClass("ProductListNoMargin");	

    // Mods to Gift Certificates //
	$('#frmGiftCertificate label').css('float','left');
	$('#frmGiftCertificate label').css('margin','0 47px 20px 0');
	$('.GiftCertificateThemeList').addClass('clearfix');
	$('#frmGiftCertificate dd.GiftCertificateThemeList').after('<div class="GiftCertBar"></div>');
    $('.GiftCertificateThemeList label:nth-child(1)').append('<span>Birthday</span><br /><img src="/templates/__custom/images/cert_birthday.jpg" alt="Birthday" />');
	$('.GiftCertificateThemeList label:nth-child(3)').append('<span>Wedding</span><br /><img src="/templates/__custom/images/cert_wedding.jpg" alt="Wedding" />');
	$('.GiftCertificateThemeList label:nth-child(5)').append('<span>Baby</span><br /><img src="/templates/__custom/images/cert_baby.jpg" alt="Baby" />');
	$('.GiftCertificateThemeList label:nth-child(7)').append('<span>Celebrate</span><br /><img src="/templates/__custom/images/cert_celebrate.jpg" alt="Celebrate" />');
	$('.GiftCertificateThemeList label:nth-child(9)').append('<span>Love</span><br /><img src="/templates/__custom/images/cert_love.jpg" alt="Love" />');
	$('.GiftCertificateThemeList label:nth-child(11)').append('<span>Graduation</span><br /><img src="/templates/__custom/images/cert_graduation.jpg" alt="Graduation" />');
	$('.GiftCertificateThemeList label').addClass('HideText');
});
