var SearchEngine = window.SearchEngine = {}; SearchEngine.getCSS = function(css) { var head = document.getElementsByTagName("head")[0]; var style = document.createElement("link"); style.rel = "stylesheet"; style.type = "text/css"; style.href = css; head.appendChild(style); var done = false; // Attach handlers for all browsers style.onload = style.onreadystatechange = function(){ if ( !done && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") ) { if (!SearchEngine.msie) { head.removeChild( style ); done = true; } } }; } SearchEngine.CompleteLoad = function() { jQuery("#"+SearchEngine.destination).html(SearchEngine.Content); if (typeof imgLoader !== "undefined") { imgLoader.src = "http://www.mijeweler.net/img/thickbox/loadingAnimation.gif"; } jQuery('.thickbox').each(function(i) { jQuery(this).unbind('click'); }); tb_init('a.thickbox, area.thickbox, input.thickbox'); } SearchEngine.msie = /msie/.test( navigator.userAgent.toLowerCase() ) && !/opera/.test( navigator.userAgent.toLowerCase() ); SearchEngine.SearchInit = function(search_content_place) { if (!SearchEngine.ValidateKey("7d649eac09366cbe2b3e62922cd44d9446a44924")) { alert("Incorrect Key for SearchAPI."); return false; } //Init RSH window.dhtmlHistory.create({ debugMode: false, blankURL: "/blank.html?", toJSON:function(o) { return jQuery.compactJSON(o); }, fromJSON:function(s) { return jQuery.evalJSON(s); } }); SearchEngine.getCSS("http://www.mijeweler.net/css/search_grey.css"); SearchEngine.getCSS("http://www.mijeweler.net/css/jquery.ui/ui.slider.extras.css"); SearchEngine.getCSS("http://www.mijeweler.net/css/jquery.ui/search-style_grey.css"); SearchEngine.getCSS("http://www.mijeweler.net/css/jquery.ui/jquery-ui_grey.css"); SearchEngine.getCSS("http://www.mijeweler.net/css/product_details_grey.css"); SearchEngine.getCSS("http://www.mijeweler.net/css/thickbox.css"); jQuery.getScript("http://www.mijeweler.net/js/thickbox_mod.jgz?ver=u"); jQuery.getScript("http://www.mijeweler.net/js/imagetick.jgz?ver=1.0"); jQuery.getScript("http://www.mijeweler.net/js/jquery.mousewheel.jgz?ver=3.02"); jQuery.getScript("http://www.mijeweler.net/js/jquery.scrollable.jgz?ver=1.02"); jQuery.getScript("http://www.mijeweler.net/js/jquery.ui/ui.core.jgz?ver=1.7.2"); jQuery.getScript("http://www.mijeweler.net/js/jquery.ui/ui.slider.jgz?ver=1.7.2"); jQuery.getScript("http://www.mijeweler.net/js/selectToUISlider.jQuery.jgz?ver=2.0"); jQuery.getScript("http://www.mijeweler.net/js/utils.jgz?ver=u"); jQuery.getScript("http://www.mijeweler.net/js/jquery.alphanumeric.jgz?ver=0.1.1"); SearchEngine.destination = search_content_place; if (SearchEngine.msie) { var head = document.getElementsByTagName("head")[0]; var script = document.createElement("script"); //for IE added patched variant of jQuery //Please rewrite workaround for loading scripts in IE if jquery fix error in next versions script.src = "http://www.mijeweler.net/js/jquery_patched.jgz"; // Attach handlers for all browsers var done = false; script.onload = script.onreadystatechange = function() { if ( !done && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") ) { done = true; jQuery.getScript("http://www.mijeweler.net/pages/r_search?product=diamonds&code=7d649eac09366cbe2b3e62922cd44d9446a44924&search_mode=basic&markup=10p&width=611&style_sheet=grey&get_url="+window.location.protocol+"//"+window.location.host+"/"+window.location.pathname,SearchEngine.CompleteLoad); if (SearchEngine.msie) { script.parentNode.removeChild(script); } else { head.removeChild(script); } } }; head.appendChild(script); } else { jQuery.getScript("http://www.mijeweler.net/pages/r_search?product=diamonds&code=7d649eac09366cbe2b3e62922cd44d9446a44924&search_mode=basic&markup=10p&width=611&style_sheet=grey&get_url="+window.location.protocol+"//"+window.location.host+"/"+window.location.pathname,SearchEngine.CompleteLoad); } } SearchEngine.ValidateKey = function(key_hash) { if(window.location.protocol=="file:") return true; if(window.location.hostname=="localhost") return true; var b = SearchEngine.ParseLocation(window.location.protocol,window.location.host,window.location.pathname); for(var c=0;c1) { if(h!=2||g[0]!="co"&&g[0]!="off") { f.push(g.join(".")); g.shift() } h-- } c=c.split("/"); var i=[]; while(c.length>1) { c.pop(); i.push(c.join("/")+"/") } for(var k=0;k>30)*8; f[e-1][15]=(c-1)*8&2147483647; var i=1732584193,k=4023233417,m=2562383102,n=271733878,p=3285377520, s=new Array(80),t,x,w,Cb,y; for(var g=0;g>31; t=i; x=k; w=m; Cb=n; y=p; for(var Tb=0;Tb<80;Tb++) { var ha=Math.floor(Tb/20),Ba=(t<<5|t>>27)+SearchEngine.rt(ha,x,w,Cb)+y+b[ha]+s[Tb]&2147483647; y=Cb; Cb=w; w=x<<30|x>>2; x=t; t=Ba } i=i+t&2147483647; k=k+x&2147483647; m=m+w&2147483647; n=n+Cb&2147483647; p=p+y&2147483647 } return SearchEngine.st(i)+SearchEngine.st(k)+SearchEngine.st(m)+SearchEngine.st(n)+SearchEngine.st(p) } SearchEngine.st = function(a) { var b=""; for(var c=7;c>=0;c--) { var d=a>>c*4&15;b+=d.toString(16) } return b } SearchEngine.rt = function(a,b,c,d) { switch(a){ case 0:return b&c^~b&d; case 1:return b^c^d; case 2:return b&c^b&d^c&d; case 3:return b^c^d } }