$(document).ready(function(){
$("a.addcart").click(function(){
$("#cartForm").submit()
return false
})
})
$().ready(function(){
$(".ProductDescriptionContainer").truncate({
max_length: 550,
more: '...more',
less: 'less'
})
})
$(document).ready(function(){
$("#ReviewButton").toggle(
function(){
$("form#rating_box").show()
$(this).html("Close Review")
return false
},
function(){$("form#rating_box").hide()
$(this).html("Write A Review")
return false}
)
})
$(document).ready(function(){
$('span#topcost').show()
if($('#cartForm:contains("Quantity")').length>0){
$("span.ProductUnavailableText").hide()
}else{$('span#topcost').hide()}
})
$(document).ready(function(){
var bctext=$('#ProductBreadcrumb ul li:first-child').next('li').children().text()
var subbctext=$('#ProductBreadcrumb ul li:last-child').prev('li').children().text()
$('ul#accordion a:contains('+bctext+')').parent().addClass('special').children('ul').css('display','block')
$('ul#accordion a:contains('+subbctext+')').css('font-weight','bold')

})
$("div.contentToChange p.firstparagraph:hidden").slideDown("slow")
$("div.contentToChange p.firstparagraph:visible").slideUp("slow")
$(document).ready(function(){
$("#closeReviews").toggle(
function(){
$("#ProductReviews .BlockContent").slideUp("slow")
$(this).html("Show Reviews")
return false
},
function(){
$("#ProductReviews .BlockContent").slideDown("slow")
$(this).html("Hide Reviews")
return false}
)
})
<!--recipe code below-->
jQuery(function($){
$('a.new-window').click(function(){
$('#Container').addClass('noprint')
$('.new-window').addClass('noprint')
$('.jqmWindow .mainRecipe:not(:hidden), .logoimg').addClass('print')
window.print()
return false
})
})
$().ready(function(){
$('#recipe1')
.jqDrag('.jqDrag')
.jqResize('.jqResize')
.jqm({
trigger:'#recipe1Trigger',
overlay: 0,
onShow: function(h){
h.w.css('opacity',100).slideDown()
$("#Container").before($(".jqmWindow"))
$('#recipe2, #recipe3, .logoimg').hide()
},
onHide: function(h){
h.w.slideUp("slow",function(){if(h.o)h.o.remove();})
$('#Container').removeClass('noprint')}
})
})
$().ready(function(){
$('#recipe2')
.jqDrag('.jqDrag')
.jqResize('.jqResize')
.jqm({
trigger:'#recipe2Trigger',
overlay: 0,
onShow: function(h){
h.w.css('opacity',100).slideDown()
$("#Container").before($(".jqmWindow"))
$('#recipe1, #recipe3, .logoimg').hide()
},
onHide: function(h){
h.w.slideUp("slow",function(){if(h.o)h.o.remove();})
$('#Container').removeClass('noprint');}
})
})
$().ready(function(){
$('#recipe3')
.jqDrag('.jqDrag')
.jqResize('.jqResize')
.jqm({
trigger:'#recipe3Trigger',
overlay: 0,
onShow: function(h){
h.w.css('opacity',100).slideDown()
$("#Container").before($(".jqmWindow"))
$('#recipe1, #recipe2, .logoimg').hide()
},
onHide: function(h){
h.w.slideUp("slow",function(){if(h.o)h.o.remove();})
$('#Container').removeClass('noprint');}
})
})
