var lockSteps = false; // IF VAR IS TRUE DONT EXECUTE STEPNAVIGATION CLICKS var addring; var setGender; var activeOption = 'pair'; var groovesSet; var posX; var maxGrooveWidth; var genderOptions = new Array(); genderOptions['male'] = 0; genderOptions['female'] = 0; genderOptions['solitaire'] = 0; genderOptions['memoire'] = 0; genderOptions['additional'] = 0; var eternityStyleVal = 0; function loadExternalId(){ var id = location.href; id = id.split('?meineRinge='); var base = id[0]; if(id[1] != undefined){ id = id[1]; LoadConfiguration(id); } } function testReset(data){ if(!(data.any)){ $.each(data.items, function(i,item){ if(item == 'eternity'){ var reset = 4; }else if(item == 'memoryring'){ var reset = 2; }else if(item == 'solitaire') { var reset = 3; }else{ var reset = 1; } InitConfigurator(reset); }); } } function setMaxGrooveWidth(data){ maxGrooveWidth = data.value; } function disable(){ // CHECK FOR ELEMENTS WITH CLASS DISABLED AND APPLY DISABLE if($('.disabled').length != 0){ $('.disabled').click(function(){ return false; }); } } function setLayout(){ // SET THE LAYOUT CONTAINER //alert('setLayout'); var windowHeight = $(window).height(); // WINDOW HEIGHT var windowWidth = $(window).width(); // WINDOW WIDTH var contentHeight = Math.round(windowHeight-(26+88)); // CALC CONTENT HEIGHT var footPos = contentHeight; // CALC FOOTER POSITION var posPetal = $('#petal').position(); // POSITION OF THE PETAL if(contentHeight > 556){ $('#main > .wrapper, .container_main .previewcontainer').css('height', contentHeight+'px'); $('.container_main .previewcontainer .inner').css('height', contentHeight-Math.round((contentHeight/100)*5)+'px'); }else{ $('#main > .wrapper, .container_main .previewcontainer').css('height', '556px'); $('.container_main .previewcontainer .inner').css('height', 556-Math.round((contentHeight/100)*5)+'px'); } if(windowWidth > 1200){ fposx=-Math.round(1024-windowWidth)/3; if (fposx<43) fposx=43; $('.container_footer .footeroptions').css('right', fposx + 'px'); } else { $('.container_footer .footeroptions').css('right', '43px'); } if($('body').attr('class') !== ('static' && 'start')){ if(windowWidth > 1024){ $('#petal').css('left', '20%'); }else{ $('#petal').css('left', '243px'); } if(windowHeight > 715){ $('#petal').css('top', '70%').show(); }else{ $('#petal').css('bottom', '563px').hide(); } } if(windowWidth < 1200){ $('#petal').hide(); $('.container_main .previewcontainer').css('right', '50%'); }else{ $('#petal').show(); $('.container_main .previewcontainer').css('right', '55%'); } } // INHALT DES KONFIGURATORS LADEN function loadContent(e, step){ $('#steps li').removeClass('active').addClass('inactive'); if(step == undefined){ $('#step_profile').addClass('active'); var stepBox = 'stepbox_profile'; $('fieldset[class~=jqTrans]').jqTransform({imgPath:'styles/img/jqtransformplugin/'}); $('#container_configurator .fading').fadeOut(500, 'linear'); $('#container_configurator .stepbox').removeClass('stepboxActive'); $('#'+stepBox).addClass('stepboxActive'); $('#container_help .inner').load('includes/help/step_profile.html'); getPropertyProfiles(); disable(); }else{ $(e).addClass('active'); var stepBox = step; stepBox = 'stepbox_'+stepBox.substr(5); $('#container_configurator .fading').css('z-index', '3500').css('opacity', '1.0').fadeIn(500, 'linear', function(){ $('.container_main .configurator .fading span').css('display', 'block'); $('fieldset[class~=jqTrans]').jqTransform({imgPath:'styles/img/jqtransformplugin/'}); //alert('stepBox: '+stepBox); $('#container_configurator .stepbox').removeClass('stepboxActive'); $('#'+stepBox).addClass('stepboxActive'); if(stepBox == 'stepbox_profile'){ getPropertyProfiles(); }else if(stepBox == 'stepbox_dimensions'){ getPropertyDimensions(); }else if(stepBox == 'stepbox_material'){ getPropertyMaterial(); }else if(stepBox == 'stepbox_diamonds'){ getPropertyDiamonds(); diaSlider(); }else if(stepBox == 'stepbox_engraving'){ getPropertyEngraving(); }else if(stepBox == 'stepbox_persdata'){ getPropertyPersData(); }else if(stepBox == 'stepbox_solitaire'){ getPropertySolitaire(); }else if(stepBox == 'stepbox_memoire'){ getPropertyMemoire(); }else if(stepBox == 'stepbox_additional'){ getPropertyEternity(); } $('#container_help .inner').load('includes/help/step_'+step.substr(5)+'.html'); disable(); showConfi(); }); } } // FADE OUT THE WHITE LAYER COVERING THE CONFIGURATOR function showConfi(){ //alert('showConfi'); $('#container_configurator .fading').delay(1000).fadeOut(300, 'linear', function(){ $('.container_main .configurator .fading span').css('display', 'none'); $('#steps li').removeClass('inactive'); lockSteps = false; }); } // OPEN/CLOSE HELP LAYER function openHelp(){ $('#container_help').animate({ width: 'toggle' },500); if($('html').width() >= '1005'){ if(($('#container_help').width()) == '1'){ $('#main').animate({ width: '85%' }, 500); $('#petal').animate({ left: '-=120' }, 500); }else{ $('#main').animate({ width: '100%' }, 500); $('#petal').animate({ left: '+=120' }, 500); } //setLayout(); }else{ // slide over content } }; // SHOW/HIDE OPTION-HINTS function optionHint(e){ var ele = $(e).attr('id'); var opt = $('a', e).attr('title'); $(''+opt+'').appendTo($('#'+ele)); $(e).mouseout(function(){ $('.hint', this).remove(); }); }; // INIT LAYER function initLayer(){ $('body').append('
'); }; // CENTER LAYER HORIZONTAL function centerLayer($l) { contentWidth = $('body').width(); contentHeight = $('body').height(); lwidth=$l.width(); lheight=$l.height(); nh=Math.round((contentHeight-lheight-80)/2); if (nh<0) nh=0; $l.css('left',Math.round((contentWidth-lwidth)/2)+'px'); $l.css('top',nh+'px'); }; // REMOVE LAYER function closeLayer(){ $('#layer, .layer').remove(); $('.eternity_options').removeAttr('style'); }; function setConfiSteps(e){ var steps = 'conf_'+e; var step; if((e == 'memoire') || (e == 'solitaire') || (e == 'additional')){ step = 'step_'+e; $('#steps ul li').removeClass('active'); $('#steps ul').hide(); $('#steps #conf_login').show(); $('#steps #'+steps).show(); $('#steps #step_'+e).addClass('active'); }else{ step = $('#conf_steps li.active').attr('id'); $('#steps ul li').removeClass('active'); $('#steps ul').hide(); $('#steps #conf_login').show(); $('#steps #conf_steps').show(); $('#'+step).addClass('active'); } if(step == undefined){ step = 'step_profile'; } loadContent($('#'+step), step); } // RINGPAAR-DAMEN-HERREN-BEISTECK SELECTION function switchGenderOptions(gender){ //alert(gender+' | '+activeOption); if(gender == activeOption){ //alert('schon ausgewählt'); }else{ activeOption = gender; if((gender != 'solitaire') && (gender != 'memoire') && (gender != 'additional')){ setGender = gender+'ring'; $('#gender_options div').removeClass('selected').hide(); $('#ring'+gender).addClass('selected').show(); if(addring != ''){ $('.'+addring).parent().addClass('added'); } //getProperty(); setConfiSteps(gender); }else{ addring = gender; $('#gender_options div').removeClass('selected').hide(); $('#ring'+gender).addClass('selected').show(); $('#gender_options div').hide(); $('#gender_options div li').removeClass('added'); $('#ring'+gender).show(); if(gender != ''){ $('.'+gender).parent().addClass('added'); } //getProperty(); setConfiSteps(addring); } } if(activeOption == 'solitaire'){ setAcutalSelection('solitaire'); }else if(activeOption == 'memoire'){ setAcutalSelection('memoryring'); }else if(activeOption == 'additional'){ setAcutalSelection('eternity'); }else{ setAcutalSelection(activeOption); } } function updateTestArray(){ $('#test').html(genderOptions['male']+'
'+genderOptions['female']+'
'+genderOptions['solitaire']+'
'+genderOptions['memoire']+'
'+genderOptions['additional']); } function testActiveProfile(data){ if((data.value == 4) || (data.value == 7)){ $('#select_ringheight .normal').hide(); $('#select_ringheight .p4').show(); }else{ $('#select_ringheight .p4').hide(); $('#select_ringheight .normal').show(); } } // UI FRAME HANDLER $(document).ready(function(){ //loadExternalId(); ReloadCollageImage(); $('#layer_langselection li').removeClass('selected'); $('#layer_langselection li input[value="us"]').parent().addClass('selected'); $('#btn_langselection').click(function(){ $('#layer_langselection').toggle(); //getPropertySolitaire(); }); $('#open_diamondshop_nosel, #open_diamondshop_sel').live('click',function(){ // STUARTMOORE öffnen initLayer(); $('body').append('

Diamond Data Base

Close
'); centerLayer($('#diamondshoplayer')); $('#diamondshoplayer .sinner').load('includes/diamondshop_en.php', function(){ //alert('onOpen: '+activeStyle); }); }); $('#open_diamonddetail').live('click',function(){ // STUARTMOORE öffnen initLayer(); $('body').append('

Diamond Data Base

Close
'); centerLayer($('#diamondshoplayer')); $('#diamondshoplayer .sinner').load('includes/diamonddetail_en.php', function(){ //alert('dia_1'); }); }); $('#open_diamondshop2').live('click',function(){ // STUARTMOORE öffnen initLayer(); $('body').append('

Diamond Data Base

Close
'); centerLayer($('#diamondshoplayer')); $('#diamondshoplayer .sinner').load('includes/diamondshop2_en.php', function(){ //alert('onOpen: '+activeStyle); }); }); if($('body').attr('class') !== ('static' && 'start')){ $.getJSON("system/gateway/getvalue",{item:'width',object:'femalering'},setMaxGrooveWidth); var testGender = $('#gender_options div[class="selected"]').attr('id'); testGender = testGender.split('ring'); setGender = testGender[1]+'ring'; // SET GLOBAL VAR SELECTED GENDER $('#container_help').hide(); // HILFELAYER AUSBLENDEN loadContent(); // AUFRUF DER FUNKTION ZUM LADEN DES INHALTS //setLayout(); // AUFRUF DER FUNKTION ZUM BERECHNEN DER LAYOUT GRÖSSEN/POSITIONEN setTimeout('setLayout()', 80); $(window).resize(function(){ // AUFRUF DER FUNKTION ZUM BERECHNEN DER LAYOUT GRÖSSEN/POSITIONEN BEI RESIZE setTimeout('setLayout()', 80); }); $('#footer .options li a').mouseover(function(){ // AUFRUF DER FUNKTION ZUM EINBLENDEN DER HINWEISTEXTE BEI DEN OPTIONEN optionHint($(this).parent()); }); $('#help, #container_help .closeHelp').click(function(e){ // FUNKTION ZUM EINBLENDEN DES HILFELAYERS e.preventDefault(); openHelp(); }); $('#steps li').click(function(e){ // FUNKTION ZUM NAVIGIEREN IN DEN TABS e.preventDefault(); if(lockSteps == false){ lockSteps = true; var step = $(this).attr('id'); if(step == 'step_dimensions'){ if(setGender == 'pairring'){ GetActiveItem('femalering','profile',testActiveProfile); }else{ GetActiveItem(setGender,'profile',testActiveProfile); } } loadContent($(this), step); } }); $('#opt_save').click(function(e){ // RINGE SPEICHERN ÖFFNEN e.preventDefault(); initLayer(); $('body').append('
Close
'); centerLayer($('#savelayer')); $('#savelayer .sinner').load('includes/saveringLayer.php', function(){ t=0; for (element in $.cookies.filter( /^hd_/ )) { t++; element = element.substring(3); //alert(element); $('').html(element).appendTo('#savelayer select#myRings'); } if (t==0) { $("#savedRings").hide(); $("#savedRings2").show(); } else { $("#savedRings2").hide(); $("#savedRings").show(); } $('fieldset[class~=jqTrans]').jqTransform({imgPath:'styles/img/jqtransformplugin/'}); }); }); $('#sendIdMail, #opt_email').live('click', function(e){ e.preventDefault(); id=savering("email"); var url = location.href; if(url.match(/#/) != null){ url = url.split('#'); url = url[0]; } url = url.split("?"); url = url[0]; // alert(url.substr(url.length-1)); location.href="mailto:?subject=H|D Trauringe&body=View my desired wedding rings: "+url+"?meineRinge="+id; //location.href="mailto:?subject=H|D Trauringe&body=Schau Dir mal hier meine Wunsch-Trauringe an: http://localhost/designyourring/htdocs/configurator.php?meineRinge="+id; }); $('#savering_new').live('click', function(e){ e.preventDefault(); if($('#hd_name').val() != ''){ id=savering("new"); }else{ alert('Please enter a name for your configuration!'); } }); $('#savering_over').live('click', function(e){ e.preventDefault(); id=savering("over"); /*if(){ savering("over"); }else{ alert('Bitte') }*/ }); $('#opt_load').click(function(e){ // RINGE LADEN ÖFFNEN e.preventDefault(); initLayer(); $('body').append('
Close
'); centerLayer($('#loadlayer')); $('#loadlayer .sinner').load('includes/loadringLayer.php', function(){ for (element in $.cookies.filter( /^hd_/ )) { element = element.substring(3); $('').html(element).appendTo('#loadlayer select#myRings'); } $('fieldset[class~=jqTrans]').jqTransform({imgPath:'styles/img/jqtransformplugin/'}); }); }); $('#loadring_cookie').live('click', function(e){ e.preventDefault(); if($('#myRings option:selected').text() != ''){ //alert($('#myRings option:selected').text()); var cookiename = 'hd_'+$('#myRings option:selected').text(); //alert($.cookies.get(cookiename)); LoadConfiguration($.cookies.get(cookiename)); }else{ alert('Please choose a Ring Configuration!'); } }); $('#deletering_cookie').live('click', function(e){ e.preventDefault(); if($('#myRings option:selected').text() != ''){ //alert($('#myRings option:selected').text()); var cookiename = 'hd_'+$('#myRings option:selected').text(); //alert($.cookies.get(cookiename)); $('#myRings option:selected').remove(); $.cookies.del(cookiename, null); }else{ alert('Please choose a Ring Configuration!'); } }); $('#loadring_id').live('click', function(e){ e.preventDefault(); if($('#myRingTID').val() != ''){ //alert($('#myRingTID').val()); LoadConfiguration($('#myRingTID').val()); }else{ alert('Please enter your Wedding Ring ID!'); } }); $('#opt_print').click(function(e){ // FUNKTION ZUM DRUCKEN AUFRUFEN //e.preventDefault(); //alert("Drucken"); }); $('#opt_reset').click(function(e){ // FUNKTION ZUM ZURÜCKSETZEN AUFRUFEN e.preventDefault(); var values = {'name':'','surname':'','birthday':'','street':'','postalcode':'','city':'','email_customer':'','phone':'','fax':'','mobile':'','delivery':'','wedding':'','messagemethod':'0'}; SavePersonalData(values); InitConfigurator(1); }); $('#layer').live('click', function(e){ // FUNKTION ZUM SCHLIESSEN DES LAYERS AUFRUFEN e.preventDefault(); closeLayer(); }); $('#gender_options li a').click(function(e){ // FUNKTION ZUM SWITCHEN DER GENDEROPTIONS e.preventDefault(); var $target = $(e.target); var gender = $(this).attr('class'); if($target.is("input")) { //IF THE RADIO BUTTON IS CLICKED if(gender == 'male' || gender == 'female'){ if(genderOptions[gender] != 0){ genderOptions[gender] = 0; $(this).parent().removeClass('added'); $('#gender_options li a.'+gender+' input').removeAttr('checked').attr('value', 0); $('#'+gender+'ringli').hide(); RemoveThirdRing(gender); GetAvalibleItems('malering', 'pseudo_selectedring', testSelectedRing); }else{ genderOptions[gender] = 1; $('#gender_options li a.'+gender+' input').attr('checked', 'checked').attr('value', 1); $('#'+gender+'ringli').show(); switchGenderOptions(gender); GetAvalibleItems('malering', 'pseudo_selectedring', testSelectedRing); } }else{ if(genderOptions[gender] != 0){ genderOptions[gender] = 0; $(this).parent().removeClass('added'); $('#gender_options li a.'+gender+' input').removeAttr('checked').attr('value', 0); if(gender == 'memoire'){ gender = 'memoryring'; } if(gender == 'additional'){ gender = 'eternity'; } RemoveThirdRing(gender); GetAvalibleItems('malering', 'pseudo_selectedring', testSelectedRing); }else{ $('#gender_options li a.solitaire input,#gender_options li a.memoire input,#gender_options li a.additional input').removeAttr('checked'); $('#gender_options li a.'+gender+' input').attr('checked', 'checked').attr('value', 1); genderOptions['solitaire'] = 0; genderOptions['memoire'] = 0; genderOptions['additional'] = 0; genderOptions[gender] = 1; switchGenderOptions(gender); } } }else{ //IF THE BUTTON IS CLICKED if(gender == 'pair'){ genderOptions['male'] = 1; genderOptions['female'] = 1; $('#maleringli,#femaleringli').show(); $('#gender_options li a.male input, #gender_options li a.female input').attr('checked', 'checked').attr('value', 1); }else if(gender == 'male' || gender == 'female'){ if(genderOptions[gender] != 0){ // do nothing }else{ genderOptions[gender] = 1; $('#gender_options li a.'+gender+' input').attr('checked', 'checked').attr('value', 1); $('#'+gender+'ringli').show(); } }else{ if(genderOptions[gender] != 0){ }else{ $('#gender_options li a.solitaire input,#gender_options li a.memoire input,#gender_options li a.additional input').removeAttr('checked'); $('#gender_options li a.'+gender+' input').attr('checked', 'checked').attr('value', 1); genderOptions['solitaire'] = 0; genderOptions['memoire'] = 0; genderOptions['additional'] = 0; genderOptions[gender] = 1; } } switchGenderOptions(gender); } //updateTestArray(); }); }else{ setLayout(); // AUFRUF DER FUNKTION ZUM BERECHNEN DER LAYOUT GRÖSSEN/POSITIONEN $(window).resize(function(){ // AUFRUF DER FUNKTION ZUM BERECHNEN DER LAYOUT GRÖSSEN/POSITIONEN BEI RESIZE setTimeout('setLayout()', 80); }); } // PAGINATION HELP BOX $('#pagenav a').live('click', function(e){ e.preventDefault(); var action = $(this).attr('id'); var count = $('div.page').length; var pageItem = $('.help_content div.selected'); var i = $('div.page').index(pageItem); if(action == 'nextpage'){ i = i+1; if(i < count){ $('.help_content div.page').removeClass('selected').hide(); $('.help_content div.page:eq('+i+')').addClass('selected').show(); $('#pagenum').html(i+1); }else{ //alert('geht nicht weiter'); } }else{ i = i-1; if(i >= 0){ $('.help_content div.page').removeClass('selected').hide(); $('.help_content div.page:eq('+i+')').addClass('selected').show(); $('#pagenum').html(i+1); }else{ //alert('geht nicht zurück'); } } }); }); if ("en"=="de") { window.cookieconsent_options = { message: 'Um unsere Webseite für Sie optimal zu gestalten und fortlaufend verbessern zu können, verwenden wir Cookies. Durch die weitere Nutzung der Webseite stimmen Sie der Verwendung von Cookies zu.', dismiss: 'Zustimmen', learnMore: 'Datenschutzerklärung', link: '/dataprotection.php', theme: '' }; } else { window.cookieconsent_options = { message: 'In order to optimize our website for you and to be able to continuously improve it, we use cookies. By continuing to use the website, you agree to the use of cookies.', dismiss: 'Agree', learnMore: 'Further information', link: '/dataprotection.php', theme: '' }; } !function(){if(!window.hasCookieConsent){window.hasCookieConsent=!0;var e="cookieconsent_options",t="update_cookieconsent_options",n="cookieconsent_dismissed",i="//s3.amazonaws.com/valao-cloud/cookie-hinweis/";if(!(document.cookie.indexOf(n)>-1)){"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var o,s={isArray:function(e){var t=Object.prototype.toString.call(e);return"[object Array]"==t},isObject:function(e){return"[object Object]"==Object.prototype.toString.call(e)},each:function(e,t,n,i){if(s.isObject(e)&&!i)for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e);else for(var r=0,c=e.length;c>r;r++)t.call(n,e[r],r,e)},merge:function(e,t){e&&s.each(t,function(t,n){s.isObject(t)&&s.isObject(e[n])?s.merge(e[n],t):e[n]=t})},bind:function(e,t){return function(){return e.apply(t,arguments)}},queryObject:function(e,t){var n,i=0,o=e;for(t=t.split(".");(n=t[i++])&&o.hasOwnProperty(n)&&(o=o[n]);)if(i===t.length)return o;return null},setCookie:function(e,t,n){var i=new Date;n=n||365,i.setDate(i.getDate()+n),document.cookie=e+"="+t+"; expires="+i.toUTCString()+"; path=/"},addEventListener:function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,n)}},r=function(){var e="data-cc-event",t="data-cc-if",n=function(e,t,i){return s.isArray(t)?s.each(t,function(t){n(e,t,i)}):void(e.addEventListener?e.addEventListener(t,i):e.attachEvent("on"+t,i))},i=function(e,t){return e.replace(/\{\{(.*?)\}\}/g,function(e,n){for(var i,o=n.split("||");token=o.shift();){if(token=token.trim(),'"'===token[0])return token.slice(1,token.length-1);if(i=s.queryObject(t,token))return i}return""})},o=function(e){var t=document.createElement("div");return t.innerHTML=e,t.children[0]},r=function(e,t,n){var i=e.parentNode.querySelectorAll("["+t+"]");s.each(i,function(e){var i=e.getAttribute(t);n(e,i)},window,!0)},c=function(t,i){r(t,e,function(e,t){var o=t.split(":"),r=s.queryObject(i,o[1]);n(e,o[0],s.bind(r,i))})},a=function(e,n){r(e,t,function(e,t){var i=s.queryObject(n,t);i||e.parentNode.removeChild(e)})};return{build:function(e,t){s.isArray(e)&&(e=e.join("")),e=i(e,t);var n=o(e);return c(n,t),a(n,t),n}}}(),c={options:{message:"Diese Website nutzt Cookies, um bestmögliche Funktionalität bieten zu können. ",dismiss:"Got it!",learnMore:"More info",link:null,container:null,theme:"light-floating",markup:['
','
','{{options.dismiss}}','

{{options.message}} {{options.learnMore}}

',"
","
"]},init:function(){var t=window[e];t&&this.setOptions(t),this.setContainer(),this.options.theme?this.loadTheme(this.render):this.render()},setOptionsOnTheFly:function(e){this.setOptions(e),this.render()},setOptions:function(e){s.merge(this.options,e)},setContainer:function(){this.container=this.options.container?document.querySelector(this.options.container):document.body,this.containerClasses="",navigator.appVersion.indexOf("MSIE 8")>-1&&(this.containerClasses+=" cc_ie8")},loadTheme:function(e){var t=this.options.theme;-1===t.indexOf(".css")&&(t=i+t+".css");var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=t;var o=!1;n.onload=s.bind(function(){!o&&e&&(e.call(this),o=!0)},this),document.getElementsByTagName("head")[0].appendChild(n)},render:function(){this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),delete this.element),this.element=r.build(this.options.markup,this),this.container.firstChild?this.container.insertBefore(this.element,this.container.firstChild):this.container.appendChild(this.element)},dismiss:function(e){e.preventDefault&&e.preventDefault(),e.returnValue=!1,this.setDismissedCookie(),this.container.removeChild(this.element)},setDismissedCookie:function(){s.setCookie(n,"yes")}},a=!1;(o=function(){a||"complete"!=document.readyState||(c.init(),a=!0,window[t]=s.bind(c.setOptionsOnTheFly,c))})(),s.addEventListener(document,"readystatechange",o)}}}();