How To Housebreak Your Dog In 7 Days By Shirlee Kalstone Pdf Download
DOWNLOAD ->>> https://shoxet.com/2t88VM
While most people do not look at books nowadays for information, books are actually not that bad. Although one can find videos on the Internet for videos on how to train your dog, these videos, most times only teach one particular skill or how to fix one bad behavior.
");$('.sortby_select').css("margin-left", "50px");$('.sortby_select').css( "font-size", "12px");/*$(".sortby_select option[value='3']").remove();$(".sortby_select option[value='4']").remove();$(".sortby_select option[value='9']").remove();$(".sortby_select option[value='11']").remove();*/$(".sortby_select option:contains('Condition')").remove();$(".sortby_select option:contains('Newest')").remove();$(".sortby_select option:contains('Oldest')").remove();//$(".sortby_select option:contains('Availability')").remove();$('.sortby_select option:contains("Availability")').text('Quantity: High to Low');$('.sortby_select option:contains("Title")').text('Title: A to Z');$('.sortby_select option:contains("Most Popular")').text('Most Popular First');}catch(e) {var my_err = JSON.stringify(e, Object.getOwnPropertyNames(e));my_err = my_err.replace(/\s/g, "_");$("body").after("");$("#err").load("/v/vspfiles/schema/Generic/log_error_message.asp?error="+my_err );}}function putSearchTermBackInSearchField(){// If someone searches on a phrase, put the phrase back in the search textbox// this makes it easier for someone on a mobile device to tweak their search - instead of re-typing it againtry {var search_term = $("a[href^='?searching=Y&sort=']").text();if ( location.pathname.indexOf("SearchResults.asp") != -1 || location.pathname.indexOf("searchresults.asp") != -1 || location.pathname.indexOf("searchResults.asp") != -1 ){if ( localStorage['searchPharse'] ) { $("a[href^='?searching=Y&sort=']").text(localStorage['searchPharse']); search_term = localStorage['searchPharse'];}if ( localStorage['searchPharse'] ) { // $("a[href^='?searching=Y&sort=']").text(localStorage['searchPharse']);var els = document.getElementsByTagName("a");for (var i = 0, l = els.length; i < l; i++) {var el = els[i];//alert(el.href);if (el.href.indexOf("searching=Y&sort=") != -1 ) {el.innerHTML = localStorage['searchPharse'];break;}}}}search_term = search_term.replace('Search for ','');search_term = search_term.replace('"','');search_term = search_term.replace('"','');if (typeof document.getElementsByClassName("search__input")[0] !== 'undefined' ) {document.getElementsByClassName("search__input")[0].value = search_term ;}}catch(e) {var my_err = JSON.stringify(e, Object.getOwnPropertyNames(e));my_err = my_err.replace(/\s/g, "_");$("body").after("");$("#err").load("/v/vspfiles/schema/Generic/log_error_message.asp?error="+my_err );}} function loadAlsoBought(){ if ( PageName() == 'productdetails.asp' ) { if ( $('#alsoBought').length == 0 ) { $('.vol-reviews__wrap').before(''); setTimeout( loadAlsoBought, 500 ); } else { $("#alsoBought").load("/v/vspfiles/schema/Generic/alsoBoughtStatic.asp" ); //check for related blog post if ( PageName() == 'productdetails.asp' && typeof global_Current_ProductCode != 'undefined' ) { $("#alsoBought").before(""); $("#related_blogs").load("/v/vspfiles/schema/Generic/getBlogInfoByAsin.asp?Asin="+global_Current_ProductCode, function() { setTimeout(checkBlogs, 1 ) } ); } } }}var googlecheckattempts = 0;function checkForConditionCheckFromGoogle(){var my_condition = getQueryVariable("cond");//console.log("checkForConditionCheckFromGoogle my_condition ="+ my_condition );//alert("later my_condition = " + my_condition );if ( my_condition == "0004" && $("input[value='"+g_optionId_Acceptable+"']").is(":visible") ){ $("input[value='"+g_optionId_Acceptable+"']").click();} else if ( my_condition == "0003" && $("input[value='"+g_optionId_Good+"']").is(":visible") ){ $("input[value='"+g_optionId_Good+"']").click();} else if ( my_condition == "0002" && $("input[value='"+g_optionId_VeryGood+"']").is(":visible") ){ $("input[value='"+g_optionId_VeryGood+"']").click();} else if ( my_condition == "0001" && $("input[value='"+g_optionId_LikeNew+"']").is(":visible") ){ $("input[value='"+g_optionId_LikeNew+"']").click();} else if ( my_condition == "0005" && $("input[value='"+g_optionId_New+"']").is(":visible") ){ $("input[value='"+g_optionId_New+"']").click();} // if we have the condition in the url but we haven't checked the checkbox, it hasn't rendered yet// call itself until it renders - or quit after 20 triesif ( ( my_condition == '0001' && $("input[value='"+g_optionId_LikeNew+"']").is(':checked') == false ) ||( my_condition == '0002' && $("input[value='"+g_optionId_VeryGood+"']").is(':checked') == false ) ||( my_condition == '0003' && $("input[value='"+g_optionId_Good+"']").is(':checked') == false ) ||( my_condition == '0004' && $("input[value='"+g_optionId_Acceptable+"']").is(':checked') == false ) ||( my_condition == '0005' && $("input[value='"+g_optionId_New+"']").is(':checked') == false ) ){if ( googlecheckattempts < 20 ){ googlecheckattempts++; setTimeout(checkForConditionCheckFromGoogle, 200);}}}function updateProductDetailsPageUnderImageDescription(){try{if ( PageName() == 'productdetails.asp' ){$('.vCSS_img_product_photo_small').parent().html( $('.vCSS_img_product_photo_small').parent().html().replace("Stock Image - Actual Cover May Vary", " Stock Image - Actual Cover May Vary") );}}catch(e) {// do nothing}}function addProductNameSpacing() {$(".text.v-product__desc").each(function() { $(this).html( $(this).html() + " " )});$(".v-product__title.productnamecolor.colors_productname").each(function() { $(this).html( $(this).html() + " " )});}function checkBlogs(){try {var content = $("#related_blogs").html();if ( content.length > 0 ){var title = $("span[itemprop='name']").html();;var new_content = "Read more about "+title +" in our blogs: " + content + "";$("#related_blogs").html(new_content );}}catch(e) {// do nothing}}function productPageUpdateConditionText() {try{$(".vol-option-heading").html($(".vol-option-heading").html().replace("Condition", " Available In Stock:") );}catch(e) {// do nothing}}function cartAndCheckout( productCode, qty){document.location = "/ShoppingCart.asp?ProductCode="+productCode+"&Qty."+productCode+"="+qty; localStorage['checkout'] = "yes";}function productPageAddToCartAndCheckoutButton(){if ( PageName() == 'productdetails.asp'){ if (typeof global_Current_ProductCode !== 'undefined'){var productCode = global_Current_ProductCode ;var qty = $(".v65-productdetail-cartqty.form-control").val(); ;$("#v65-product-wishlist-button").before( 'Buy Now ' );}}}function updateAddAndCheckoutJS(){if ( PageName() == 'productdetails.asp' ){ if (typeof global_Current_ProductCode !== 'undefined'){var productCode = global_Current_ProductCode ;var qty= $(".v65-productdetail-cartqty.form-control").val(); ;if ( $("input[value='"+g_optionId_LikeNew+"']").is(':checked') ){//alert(4);productCode = productCode + "-0004";} else if ( $("input[value='"+g_optionId_VeryGood+"']").is(':checked') ){//alert(3);productCode = productCode + "-0003";} else if ( $("input[value='"+g_optionId_Good+"']").is(':checked') ){//alert(2);productCode = productCode + "-0002";} else if ( $("input[value='"+g_optionId_Acceptable+"']").is(':checked') ){//alert(1);productCode = productCode + "-0001";} else if ( $("input[value='"+g_optionId_New+"']").is(':checked') ){//alert(1);productCode = productCode + "-0005";} //alert("code="+productCode +" qty= "+qty );$("#btn_addAndCheckout").attr("href", "javascript:cartAndCheckout(\'"+productCode +"\', "+qty + " );" );}setTimeout(updateAddAndCheckoutJS, 100 );}}function checkOutExpress(){if (location.pathname.indexOf("shoppingcart.asp") != -1 || location.pathname.indexOf("ShoppingCart.asp") != -1 ){if ( localStorage['checkout'] == "yes" ){ localStorage['checkout'] = "no";// document.location = "/one-page-checkout.asp"; document.location = "/checkout/";}}}function removeLocalStorage() {if ( location.pathname.indexOf("shoppingcart.asp") != -1 || location.pathname.indexOf("ShoppingCart.asp") != -1 ){ //do nothing}else{ localStorage['checkout'] = "no" ;}}function checkCartExpress(){if ( localStorage['checkout'] == "yes" && (location.pathname.indexOf("shoppingcart.asp") != -1 || location.pathname.indexOf("ShoppingCart.asp") != -1 )){ $(".myoverlay").show();}}function wishListText(){try {if ( PageName() == 'productdetails.asp' ){if( $("#v65-product-wishlist-button").val() != "Save to Must Read List" ) { setTimeout(wishListText, 200 );$("#v65-product-wishlist-button").val("Save to Must Read List");$('a[href^="/Email_Me_When_Back_In_Stock.asp"]').attr("rel","nofollow");$('#v65-product-wishlist-button').attr("rel","nofollow");}}}catch(e) {var my_err = JSON.stringify(e, Object.getOwnPropertyNames(e));my_err = my_err.replace(/\s/g, "_");$("body").after("");$("#err").load("/v/vspfiles/schema/Generic/log_error_message.asp?error="+my_err );} }function wishlistRemove(){try {if (location.pathname.indexOf("WishList.asp") != -1 || location.pathname.indexOf("wishlist.asp") != -1 ){var remove = $('.btn_addtowishlist_remove').html();var clear = $('.btn_addtowishlist_clear').html();if( !remove || !clear || remove.indexOf( "Remove from List") == -1 || clear.indexOf( "Clear All") == -1 ) { setTimeout(wishlistRemove, 200 );$('.btn_addtowishlist_remove').html( $('.btn_addtowishlist_remove').html().replace(' Remove from wishlist ', 'Remove from List') );$('.btn_addtowishlist_clear').html( $('.btn_addtowishlist_clear').html().replace( ' Clear entire wishlist ', ' Clear All ') );}}}catch(e) {} }function searchBoxBorder(){try {$("#additionalsearch]").css("border-color", "gainsboro") ;$("#additionalsearch]").css("margin", "0px 0") ;}catch(e) { //do nothing}try {$("input[name=password]").css("border", "1px #d0d0d0 solid") ;$("input[name=passwordagain]").css("border", "1px #d0d0d0 solid") ;}catch(e) { //do nothing}try {$("input[name=email]").css("border", "1px #d0d0d0 solid") ;$("input[name=email]").css("text-align", "left") ;}catch(e) { //do nothing}try {$("input[name=Email]").css("border", "1px #d0d0d0 solid") ;$("input[name=Email]").css("text-align", "left") ;}catch(e) { //do nothing}try {$("input[name=ShipCity]").css("text-align", "left") ;}catch(e) { //do nothing}try {$("input[name=ShipState]").css("text-align", "left") ;}catch(e) { //do nothing} try {$("input[name=BillingLastName]").css("text-align", "left") ;}catch(e) { //do nothing}try {$("input[name=Email]").css("border", "1px #d0d0d0 solid") ;}catch(e) { //do nothing}try {$("input[name=code1]").css("border", "1px #d0d0d0 solid") ;$("input[name=code2]").css("border", "1px #d0d0d0 solid") ;$("input[name=code3]").css("border", "1px #d0d0d0 solid") ;}catch(e) { //do nothing}try { var code = getQueryVariable("code"); if ( code != null && code.length == 13 ) { var code1 = code.substring(0,4); var code2 = code.substring(4,9); var code3 = code.substring(9); $('[name="code1"]').val(code1); $('[name="code2"]').val(code2); $('[name="code3"]').val(code3); }}catch(e) {var my_err = JSON.stringify(e, Object.getOwnPropertyNames(e));my_err = my_err.replace(/\s/g, "_");$("body").after("");$("#err").load("/v/vspfiles/schema/Generic/log_error_message.asp?error="+my_err );}/* This is for the new user registration pages - username and pasword*/try {$("input[name=Email]").css("border", "1px #d0d0d0 solid") ;$("input[name=Emailagain]").css("border", "1px #d0d0d0 solid") ;$("input[name=password]").css("border", "1px #d0d0d0 solid") ;$("input[name=passwordagain]").css("border", "1px #d0d0d0 solid") ;$("input[name=Email]").css("text-align", "left") ;$("input[name=Emailagain]").css("text-align", "left") ;$("input[name=password]").css("text-align", "left") ;$("input[name=passwordagain]").css("text-align", "left") ;}catch(e) { //do nothing}/* This is for the new user registration pages - shipping info */try {$("input[name=ShipFirstName]").css("border", "1px #d0d0d0 solid") ;$("input[name=ShipLastName]").css("border", "1px #d0d0d0 solid") ;$("input[name=ShipCompanyName]").css("border", "1px #d0d0d0 solid") ;$("input[name=ShipAddress1]").css("border", "1px #d0d0d0 solid") ;$("input[name=ShipAddress2]").css("border", "1px #d0d0d0 solid") ;$("input[name=ShipCity]").css("border", "1px #d0d0d0 solid") ;$("input[name=ShipPostalCode]").css("border", "1px #d0d0d0 solid") ;$("#ShipCountry").css("border", "1px #d0d0d0 solid") ;$("#ShipState_dropdown").css("border", "1px #d0d0d0 solid") ;$("#ShipState").css("border", "1px #d0d0d0 solid") ;$("input[name=ShipFirstName]").css("text-align", "left") ;$("input[name=ShipLastName]").css("text-align", "left") ;$("input[name=ShipCompanyName]").css("text-align", "left") ;$("input[name=ShipAddress1]").css("text-align", "left") ;$("input[name=ShipAddress2]").css("text-align", "left") ;$("input[name=ShipCity]").css("text-align", "left") ;$("input[name=ShipPostalCode]").css("text-align", "left") ;}catch(e) { //do nothing}/* This is for the new user registration pages - billing info */try {$("input[name=BillingFirstName]").css("border", "1px #d0d0d0 solid") ;$("input[name=BillingLastName]").css("border", "1px #d0d0d0 solid") ;$("input[name=BillingCompanyName]").css("border", "1px #d0d0d0 solid") ;$("input[name=BillingAddress1]").css("border", "1px #d0d0d0 solid") ;$("input[name=BillingAddress2]").css("border", "1px #d0d0d0 solid") ;$("input[name=BillingCity]").css("border", "1px #d0d0d0 solid") ;$("input[name=BillingPostalCode]").css("border", "1px #d0d0d0 solid") ;$("#BillingCountry").css("border", "1px #d0d0d0 solid") ;$("#BillingState_dropdown").css("border", "1px #d0d0d0 solid") ;$("#BillingState").css("border", "1px #d0d0d0 solid") ;$("input[name=BillingFirstName]").css("text-align", "left") ;$("input[name=BillingLastName]").css("text-align", "left") ;$("input[name=BillingCompanyName]").css("text-align", "left") ;$("input[name=BillingAddress1]").css("text-align", "left") ;$("input[name=BillingAddress2]").css("text-align", "left") ;$("input[name=BillingCity]").css("text-align", "left") ;$("input[name=BillingPostalCode]").css("text-align", "left") ;}catch(e) { //do nothing}try {$("input[name=points_to_redeem]").css("border", "1px #d0d0d0 solid") ;}catch(e) { //do nothing}try {$("input[name=Name]").css("border", "1px #d0d0d0 solid") ;$("input[name=Name]").css("text-align", "left") ;$("input[name=emailaddress]").css("border", "1px #d0d0d0 solid") ;$("input[name=emailaddress]").css("text-align", "left") ;$("input[name=Verification_Code]").css("gle Tag Manager (noscript) -->border", "1px black solid") ;$("input[name=Verification_Code]").css("text-align", "left") ;}catch(e) { //do nothing}}function giftCertificatePage(){try {$( '#gift_card_notes').html("GIFT CERTIFICATESA few notes about gift certificates:Within 2 hours of placing your order, the Gift Certificate will be sent to any email that you specifyIf you are giving this as a gift, we will email a printable Gift Certificate to the email address provided. To make a purchase using a Gift Certificate, from the Shopping Cart page click 'Credit Card Checkout.' Under the Total Order Amount, there is a link to click, which allows you to enter the Gift Certificate codeYou can check your Gift Certificate codes and balances from the My Account / View Gift Certificate Balance pageCoupon Codes can not be applied when purchasing a Gift Certificate, but Coupon Codes can be used when using a Gift Certificate to make a purchase. ");$('[name="Amount"]').hide();if ( $('[name="AmountTyped"]').val() == "" ){ $('[name="AmountTyped"]').val("25");}$('[name="Quantity"]').val("1");$('[name="Quantity"]').hide();$('[name="To"]').focus();//alert($('[name="Quantity"]').parent().prev().text());$('[name="Quantity"]').parent().prev().text("");//$('[name="Message"]').before("Please do not change the [:TEMPLATE:] value at the beginning of your messageThis ensures the proper template is used.");//$("input[value='Add Gift Certificates to My Shopping Cart']").css("background-color", "aqua");$("input[value='Add Gift Certificates to My Shopping Cart']").addClass("btn");$("input[value='Add Gift Certificates to My Shopping Cart']").addClass("v-form__button-img");$("input[value='Add Gift Certificates to My Shopping Cart']").addClass("btn-primary");$("input[name=To]").css("border", "1px gray solid") ;$("input[name=From]").css("border", "1px gray solid") ;$("input[name=AmountTyped]").css("border", "1px gray solid") ;$("textarea[name=Message]").css("border", "1px gray solid") ;$("textarea[name=EmailAddresses]").css("border", "1px gray solid") ;}catch(e) {//do nothing}}function setBinLocatorInputWidth(){try {$("#sl-search-input").css("min-width", "65px"); }catch(e) { //do nothing }}function setGoogleBadgeZindex(){try {//$("#___ratingbadge_0").css("z-index", "1");$("#chat-widget-container").css("z-index", "19");//$("#swiper-wrapper").css("display", "flex"); }catch(e) { //do nothing }setTimeout( setGoogleBadgeZindex, 1000 );}//Cookie functions for having the popup only display after a given intervalfunction setCookie(c_name, value, exdays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString() + "; path=/"); document.cookie = c_name + "=" + c_value;}function getCookie(c_name) { var i, x, y, ARRcookies = document.cookie.split(";"); for (i = 0; i < ARRcookies.length; i++) { x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("=")); y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); x = x.replace(/^\s+|\s+$/g, ""); if (x == c_name) { return unescape(y); } } return null;}function reloadSearchString() {if (location.pathname.indexOf("SearchResults.asp") != -1 ||location.pathname.indexOf("searchresults.asp") != -1 || location.pathname.indexOf("searchResults.asp") != -1 ){//console.log("reloading search box?");if ( localStorage['searchPharse'] ) {//console.log("yes = "+ localStorage['searchPharse']);document.getElementsByClassName("search__input")[0].value = localStorage['searchPharse'];vartextInput = document.getElementsByClassName("search__input")[0];clearBtn = document.getElementById('x_clear');// Show the clear button if text input value is not emptyclearBtn.style.visibility = (textInput.value.length) ? "visible" : "hidden";var searchString = encodeURIComponent(localStorage['searchPharse']);if( /Android|webOS|iPhone|iPad|Mac|Macintosh|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { // some code..}else{}}}}function orderFinishedChange() {try {var path = location.pathname;path = path.toLowerCase() if ( path.indexOf("orderfinished.asp") != -1 ){$('#content_area').css("padding-left","0px");$('#div_articleid_49').css("width","60%");//$('#vcb-editable').css("width","65%"); var width = window.innerWidth;if ( width < '760' ) { $('#div_articleid_50').parent().css("width","275"); $('#div_articleid_48').parent().css("width","255");}else{//alert(2);}} }catch(e) { //do nothing }}var seconds_global = "";function checkUK(){try {var from_uk = getQueryVariable("from");if ( from_uk == "uk" ){$('#free_ship_text').hide();var my_url = document.URL;my_url = my_url.replace('?from=uk', '');history.pushState("", "Discover Books", my_url);$('select[name="ER_ID"]').val("2");$('form[name="CurrencyChoice"]').submit();}var er_id = getCookie("ER%5FID");if ( er_id == "2" ){$('#free_ship_text').hide();$('#free_ship_text_bottom').hide();$('#free_ship_text_footer').hide();$('#free_ship_text_desc').hide();$('#phone_uk').show();$('#phone_us').hide();$('#uk_flag').show();}else{$('#free_ship_text').show();$('#phone_uk').hide();$('#phone_us').show();$('#uk_flag').hide();} }catch(e) {var my_err = JSON.stringify(e, Object.getOwnPropertyNames(e));my_err = my_err.replace(/\s/g, "_");$("body").after("");$("#err").load("/v/vspfiles/schema/Generic/log_error_message.asp?error="+my_err ); } }var sib_firstname;var sib_lastname;var sib_email;var sib_customerid;var sib_num_checks = 0;function checkReviewUserLoggedIn(){//console.log("begin checkReviewUserLoggedIn");if ( 'true' == document.documentElement.getAttribute("data-login-status") ) {if ( PageName() == 'myrewards.asp' ){localStorage['rewardsPoints'] = "";localStorage['rewardsPointsDate'] = "0";}var skipRewardsApi = false;if ( undefined != localStorage['rewardsPoints'] && localStorage['rewardsPoints'] != "" ){var rpoints = localStorage['rewardsPoints'];var rpoints_date = localStorage['rewardsPointsDate'];var now_ticks = new Date().getTime();if (now_ticks - (1.0*rpoints_date) < 1800000 ){$("#reward_circle_small").html(localStorage['rewardsPoints']);skipRewardsApi = true;}else{localStorage['rewardsPoints'] = "";localStorage['rewardsPointsDate'] = "0";}}//console.log("user IS logged in");var userInfo = getCookie("UserConfig");//console.log("userInfo = " + userInfo);var vars = userInfo.split("&");for (var i=0;i 2 ) { $('#my_account_span').html('My Account'); $('#my_rewards_span').html(' My Rewards' ); }setTimeout( checkReviewUserLoggedIn, 1000 );}}//console.log("end checkReviewUserLoggedIn");} function setRewardsLocalStorage(){localStorage['rewardsPoints'] = $("#reward_circle_small").html();localStorage['rewardsPointsDate'] = new Date().getTime();setTimeout(checkDrawRewardsProgressCircle, 50 );}function SendInBlueFunction(){var title = $('.vp-product-title span').html().replace('','').replace('', '');var event_name = "item_added_to_Cart"; // or cart_updatedvar properties = {"email": sib_email,"FIRSTNAME": sib_firstname ,"LASTNAME": sib_lastname,}var event_data = {"data": {"isbn10": global_Current_ProductCode,"url": "/p-p/"+global_Current_ProductCode+".htm","title": title}}window.sendinblue.track( event_name, properties, event_data )}function loadBlogFromWP(){if ( PageName() == "default.asp" || PageName() == "" ) { //$("#blog_image2").load("/v/vspfiles/schema/Generic/getWpLinksTop6.asp", function() { setTimeout(loadBlogFromWP2, 1 ) } ); $("#blog_image2").load("/v/vspfiles/schema/Generic/getWpLinks2Columns.asp", function() { setTimeout(loadBlogFromWP2, 1 ) } );}}function loadBlogFromWP2(){$('#blog_image2 img').each(function(){ ($(this).css('max-width', '95%'));});$("#blog_image1").html($("#blog_image2").html());if ( $('#blog_image1').is(":visible") ){ $('#blog_image1').css('width',$(window).width() - 20)$('#blog_image1 img').each(function(){ ($(this).css('max-width', '95%'));});}}function loadWpLinks(){ if ( $('#wp_links').is(':visible') || $('#wp_links').parent().is(':visible') ) { $('#wp_links').load("/v/vspfiles/schema/Generic/getWpLinks.asp");for ( var i = 0; i < 999; i++ ){ if ($('*:contains("discoverbooks.blog/wp-content")')[i] == undefined) { $('*:contains("discoverbooks.blog/wp-content")').eq(i-1).html(""); break; }} }}function addAutocomplete(){if ( $(".search__input").is(":visible") && PageName() != "one-page-checkout.asp" && (typeof $(".search__input").autocomplete!== 'undefined' && typeof $(".search__input").autocomplete === 'function') ){var my_width = $(".search__input").css("width" );my_width = my_width.replace("px", "");my_width = 1*my_width + 32;if ( 1*my_width 0 ){ $('a#product_photo_zoom_url').replaceTag('', true);}}$.extend({ replaceTag: function (currentElem, newTagObj, keepProps) { var $currentElem = $(currentElem); var i, $newTag = $(newTagObj).clone(); if (keepProps) {//{{{ newTag = $newTag[0]; newTag.className = currentElem.className; $.extend(newTag.classList, currentElem.classList); $.extend(newTag.attributes, currentElem.attributes); }//}}} $currentElem.wrapAll($newTag); $currentElem.contents().unwrap(); // return node; (Error spotted by Frank van Luijn) return this; // Suggested by ColeLawrence }});$.fn.extend({ replaceTag: function (newTagObj, keepProps) { // "return" suggested by ColeLawrence return this.each(function() { jQuery.replaceTag(this, newTagObj, keepProps); }); }});function showAppBanner(){$("#app_top_banner").show();$("#app_top_banner").animate({'margin-top': '0px'}, 3000);}function searchSubmit(){if ( $(".search__input").is(":visible") && typeof $(".search__input").autocomplete === 'function') {$(".search__input").autocomplete({source: []});} $('.outerHome').hide(); $('.myticker').hide(); $("#searchresults").html(' '); var searchString = $(".search__input").val();// START ISBN-13 - 978 checkvar searchString2 = searchString ;//alert("searchString=" + searchString);var re = new RegExp(' ', 'g');var re2 = new RegExp('-', 'g');searchString2= searchString2.replace(re, "" );searchString2= searchString2.replace(re2, "" );if ( searchString2.length == 13 && searchString2.substring(0, 3) == "978" ){ var isbn10 = searchString2.substring(3, 13); var checkdigit = 11 - ( ( 10 * (1*isbn10.substring(0,1)) + 9 * (1*isbn10.substring(1,2)) + 8 * (1*isbn10.substring(2,3)) + 7 * (1*isbn10.substring(3,4)) + 6 * (1*isbn10.substring(4,5)) + 5 * (1*isbn10.substring(5,6)) + 4 * (1*isbn10.substring(6,7)) + 3 * (1*isbn10.substring(7,8)) + 2 * (1*isbn10.substring(8,9)) ) % 11); // // convert the numeric check value // into the single char version // if ( checkdigit ==10 ) {checkdigit = "X"; } else if (checkdigit ==11) {checkdigit = 0; } //alert("check = " + checkdigit ); isbn10 = searchString2.substring(3, 12) + checkdigit ; var new_url = "/product-p/"+isbn10 +".htm"; document.location = new_url ; return;} // END ISBN-13 - 978 check//sandbox OLD if ( window.location.hostname == 'ktavc.equju.servertrust.com' ) { document.location = "/category-s/2957.htm?search="+encodeURIComponent(searchString.trim() ); }//sandbox NEW if ( window.location.hostname == 'unqgx-dzcws.servertrust.com' ) { document.location = "/category-s/119150.htm?search="+encodeURIComponent(searchString.trim() ); }//production if ( window.location.hostname == 'www.discoverbooks.com' ) {//103265 - old search page (non-sticky conditions and bindings)//119150 - new search page (sticky conditions and bindings) document.location = "/category-s/119150.htm?search="+encodeURIComponent(searchString.trim() ); }}function setCartZindex(){$(".push-cart").css("z-index", "22000");setTimeout( setCartZindex, 300 );}var ctx_small;var options_small;var radius_small;var i_small;var fillPercent_small;var drawCircleSmall;var span_small;var my_total_points;function checkDrawRewardsProgressCircle(){var pipe_ind = $("#reward_circle_small").html().indexOf("|");var percent = $("#reward_circle_small").html().substr( 0, pipe_ind );my_total_points = $("#reward_circle_small").html().substr( pipe_ind + 1 );$('#rewards_circle').html("");;var line_width = 4;var el_small = document.getElementById('rewards_circle'); // get canvasoptions_small = { percent: percent || 0, size: el_small.getAttribute('data-size') || 25, lineWidth: el_small.getAttribute('data-line') || line_width , rotate: el_small.getAttribute('data-rotate') || 0}var canvas_small = document.createElement('canvas');canvas_small.className = 'dbb_canvas';span_small = document.createElement('span');span_small.className = 'dbb_span_small';span_small.textContent = options_small.percent; if (typeof(G_vmlCanvasManager) !== 'undefined') { G_vmlCanvasManager.initElement(canvas_small);}var ctx_small = canvas_small.getContext('2d');canvas_small.width = canvas_small.height = options_small.size;el_small.appendChild(span_small);el_small.appendChild(canvas_small);ctx_small.translate(options_small.size / 2, options_small.size / 2); // change centerctx_small.rotate((-1 / 2 + options_small.rotate / 180) * Math.PI); // rotate -90 degvar radius_small = (options_small.size - options_small.lineWidth) / 2;drawCircleSmall = function(color, lineWidth, percent) {//console.log("percent="+ percent);percent = Math.min(Math.max(0, percent || 1), 1);ctx_small.beginPath();ctx_small.arc(0, 0, radius_small, 0, Math.PI * 2 * percent, false);ctx_small.strokeStyle = color; ctx_small.lineCap = 'square'; // butt, round or squarectx_small.lineWidth = lineWidthctx_small.stroke();};i_small = 0; //clear the circle with background color/greendrawCircleSmall('#62A544', options_small.lineWidth, 100 / 100);span_small.textContent = '';fillPercent_small = percent ;//$("#percent_fill_small").val(); if ( 1*fillPercent_small > 90 & 1*fillPercent_small < 100 ){fillPercent_small = "90";}if ( 1*options_small.percent > 0 ){setTimeout(fillCircleSmall, 1000);}// if we're on the rewards page - do all the same for the big oneif (PageName() == 'myrewards.asp' ) {document.title = "Rewards Program | Discover Books"; rewards_page_progress(percent ); }}function checkAppRewards() { if (typeof my_total_points !== 'undefined') { try { appRewards(my_total_points); } catch (err) { } try { //console.log("checkAppRewards = " + my_total_points); sendToApp(JSON.stringify({ a: "appRewards", d: my_total_points })); } catch (err) { } } else { setTimeout(checkAppRewards, 1000); }}checkAppRewards();var ctx_large ;var options ;var radius_large ;var i_large;var fillPercent ;var drawCircleLarge ;var span_large ;function rewards_page_progress(percent ){if ( 1*percent == 0 ){percent = 1;}var el = document.getElementById('rewards_page_placeholder'); // get canvasoptions = { percent: percent || 0, size: el.getAttribute('data-size') || 220, lineWidth: el.getAttribute('data-line') || 15, rotate: el.getAttribute('data-rotate') || 0}var canvas_large = document.createElement('canvas');canvas_large.className = 'dbb_canvas_large';span_large = document.createElement('span');span_large.className = 'dbb_span';span_large_label = document.createElement('span');span_large_label.className = 'dbb_span_label';span_large.textContent = "0" ;//span_large.textContent = options.percent ; if (typeof(G_vmlCanvasManager) !== 'undefined') { G_vmlCanvasManager.initElement(canvas_large);}ctx_large = canvas_large.getContext('2d');canvas_large.width = canvas_large.height = options.size;el.appendChild(span_large);el.appendChild(span_large_label );el.appendChild(canvas_large);span_large_label.textContent="Points";ctx_large.translate(options.size / 2, options.size / 2); // change centerctx_large.rotate((-1 / 2 + options.rotate / 180) * Math.PI); // rotate -90 deg//imd = ctx_large.getImageData(0, 0, 240, 240);radius_large = (options.size - options.lineWidth) / 2;drawCircleLarge = function(color, lineWidth, percent) {percent = Math.min(Math.max(0, percent || 1), 1);ctx_large.beginPath();ctx_large.arc(0, 0, radius_large, 0, Math.PI * 2 * percent, false);ctx_large.strokeStyle = color; ctx_large.lineCap = 'square'; // butt, round or squarectx_large.lineWidth = lineWidthctx_large.stroke();};i_large = 0; //clear the circle with background color/greendrawCircleLarge('#62A544', 16, 100 / 100);fillPercent = percent ; //$("#percent_fill").val(); if ( 1*fillPercent > 95 & 1*fillPercent < 100 ){fillPercent = "95";}if ( 1*options.percent > 0 ){setTimeout(fillCircleLarge, 1000);}}function fillCircleLarge(){ i_large++; var speed = 50;if ( 1*fillPercent > 50 ){speed = 30;}drawCircleLarge('#6e2b62', options.lineWidth, i_large/100); span_large.textContent=(1*i_large*5); if( 1*i_large < 1*fillPercent && 1*fillPercent > 0 ){setTimeout(fillCircleLarge, speed );}else{ span_large.textContent=my_total_points;}}function fillCircleSmall(){ i_small++; var speed = 30;if ( 1*fillPercent_small > 50 ){speed = 20;}drawCircleSmall('#6e2b62', options_small.lineWidth, i_small/100); span_small.textContent=i_small*5; if( 1*i_small < 1*fillPercent_small && 1*fillPercent_small > 0 ){setTimeout(fillCircleSmall, speed );}else{ span_small.textContent=my_total_points; }}function checkoutPayPalButtons(){ if ( PageName() == 'shoppingcart.asp' ) { if ( $('.paypal-buttons').is(":visible") ) { $('.paypal-buttons').css('z-index', '10'); } else { setTimeout( checkoutPayPalButtons, 500 ); } }}function clickCondition(val){ if ( val == "xx" ) { val = $('input[name="SELECT___'+global_Current_ProductCode +'___'+g_categoryId+'"]:checked').val(); } var google_condition = getQueryVariable("cond"); //clear all first $('#new_text_small').hide(); $('#likenew_text_small').hide() $('#verygood_text_small').hide() $('#good_text_small').hide() $('#acceptable_text_small').hide() //defaults var price = "999.99"; var stock = ' '; var cond = " "; if ( google_condition == "0005" ) { cond = " "; } $("meta[itemprop='itemCondition']").attr("content", " ") $('[itemprop="availability"]').attr('content', ' ') ;//console.log("val ="+val ); if ( val == g_optionId_New && (google_condition == false || google_condition == "0005") ) {//console.log("cond New"); price= $('.new_price').html() cond = " "; $('#new_text_small').fadeIn(); if ( $('.new_count').html() == "0") { stock = ' '; } $(('[itemprop="price"]') ).each(function(){ $(this).attr('content', $('.new_price').html()) ; $(this).html($('.new_price').html()) ; }); $('[itemprop="itemCondition"]').attr('content', ' ') ; } else if ( val == g_optionId_Acceptable && (google_condition == false || google_condition == "0004") ) {//console.log("cond Acceptable"); price= $('.acceptable_price').html() $('#acceptable_text_small').fadeIn(); if ( $('.acceptable_count').html() == "0") { stock = ' '; } $(('[itemprop="price"]') ).each(function(){ $(this).attr('content', $('.acceptable_price').html()) ; $(this).html($('.acceptable_price').html()) ; }); } else if ( val == g_optionId_Good && (google_condition == false || google_condition == "0003") ) {//console.log("cond Good"); price= $('.good_price').html() $('#good_text_small').fadeIn(); if ( $('.good_count').html() == "0") { stock = ' '; } $(('[itemprop="price"]') ).each(function(){ $(this).attr('content', $('.good_price').html()) ; $(this).html($('.good_price').html()) ; }); } else if ( val == g_optionId_VeryGood && (google_condition == false || google_condition == "0002") ) {//console.log("cond VeryGood"); price= $('.verygood_price').html() $('#verygood_text_small').fadeIn(); if ( $('.verygood_count').html() == "0") { stock = ' '; } $(('[itemprop="price"]') ).each(function(){ $(this).attr('content', $('.verygood_price').html()) ; $(this).html($('.verygood_price').html()) ; }); } else if ( val == g_optionId_LikeNew && (google_condition == false || google_condition == "0001") ) {//console.log("cond LikeNew"); price= $('.likenew_price').html() $('#likenew_text_small').fadeIn(); if ( $('.likenew_count').html() == "0") { stock = ' '; } $(('[itemprop="price"]') ).each(function(){ $(this).attr('content', $('.likenew_price').html()) ; $(this).html($('.likenew_price').html()) ; }); }else{//console.log("cond else"); stock = ' ';} $('.vol-option-name-empty').attr('style', 'display: block !important'); if ( $('.acceptable_count').length == 0 && $('.good_count').length == 0 && $('.verygood_count').length == 0 && $('.likenew_count').length == 0 && $('.new_count').length == 0 ) { // do not show the buttons in the ELSE below } else {showButtons();//console.log("price="+price+", stock="+stock+", cond="+cond);createStructuredData(price, stock, cond); var title = $("span[itemprop='name']").html(); //title = encodeURIComponent(title); title = title.replace(/\W+/g, "_"); if ( $('.acceptable_count').html()*1 > 0 && $('.acceptable_price').html()*1.0 >= 20 ) { $('.btn_addtowishlist').after(''); } else if ( $('.good_count').html()*1 > 0 && $('.good_price').html()*1.0 >= 20 ) { $('.btn_addtowishlist').after(''); } else if ( $('.verygood_count').html()*1 > 0 && $('.verygood_price').html()*1.0 >= 20 ) { $('.btn_addtowishlist').after(''); } else if ( $('.likenew_count').html()*1 > 0 && $('.likenew_price').html()*1.0 >= 20 ) { $('.btn_addtowishlist').after(''); } }}function createStructuredData(price, stock, cond){ var ind = $("#product_description").html().indexOf(" 2b1af7f3a8