function BVsubmissionCheckLoadState(a){if(!BVisLoaded){document.getElementById("BVSubmissionFrame").src="";document.getElementById("BVSubmissionContainer").innerHTML=a}}function frescaBVSubmit(d,a){if(d!=null){$('<div id="BVSubmissionContainer"><img src="'+a+'/static/4567-en_gb/bv_sub_loading_60.gif" id="BVLoaderImage" width="60" height="60" alt="Loading..."/></div>').appendTo("#prod_review_container");$('<iframe id="BVSubmissionFrame" name="BVSubmissionFrame" src="" style="visibility: hidden; position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"></iframe>').appendTo("#prod_review_container");if(typeof(BVisLoaded)=="undefined"){BVisLoaded=false}function b(){var g=d;var h="Review Submission Currently Unavailable";var f=/[?&]bvpage=([^&#]+)/.exec(window.location.search);var e=f?decodeURIComponent(f[1]):null;var i=new RegExp("^"+window.location.protocol+"//([A-Za-z0-9-.]+[.])?"+document.domain+"/");if(e&&i.test(e)){BVisLoaded=false;document.getElementById("BVSubmissionFrame").src=e.replace(/__USERID__/,g);setTimeout('BVsubmissionCheckLoadState("'+h+'")',15000)}else{document.getElementById("BVSubmissionContainer").innerHTML=h}}b()}else{var c=/[?&]bvproductid=([^&#]+)/.exec(window.location.search)[1];$("#prod_review_container").append('<div id="bazaarvoice_login_message">Please first <a href="/pws/secure/ssnBazaarvoice.jsp?prodID='+c+'">login</a> before writing a review.</div>')}};