$(document).ready(function(){ $('.tooltip').tooltip({ bordercolor: '#6A6A6A', bgcolor: '#E0E0E0', fontcolor: '#000000', fontsize: '11px' }); $('#remember').click(function (e) { $("#rememberDialog").dialog( { title: 'Восстановление пароля', width: 300, height: 300, buttons: { "Далее": function() { var $email = $(".rememberForm input").val(); $.ajax({ url: "ajax_actions.phtml?action=rememberPass&email="+$email, cache: false, success: function(html){ if (html=='ok') { $("#rememberDialog").dialog('close'); alert('Ваш пароль выслан на email:'+$email); } else { $("#rememberDialog").dialog('close'); alert('Пользователь с E-mail '+$email+' на neopoliscasa.ru не зарегистрирован'); } //$("#payerInfo").html(html); } }); } } }); }); }); function initJQ() { jQuery.fn.addOpenWindow = function () { var str = this.html(); var hat_mod = this.attr("hat_mod"); var item_id = this.attr("item_id"); if (hat_mod == "1") { this.html(""+str+""); } else { this.html(""+str+""); } return this; } $(".itemImage").each( function () { $(this).addOpenWindow(); } ); jQuery.fn.addOpenWindow = function () { var str = this.html(); var url = this.attr("url"); this.html(""+str+""); return this; } $(".itemImage2").each( function () { $(this).addOpenWindow(); } ); jQuery.fn.interiorOpen = function () { var str = this.html(); var url = this.attr("url"); this.html(""+str+""); return this; } $(".interiorImage").each( function () { $(this).interiorOpen(); } ); jQuery.fn.addToCase = function () { var str = this.html(); var item_id = this.attr("item_id"); this.html(""+str+""); return this; } $(".addToCaseImg").each( function () { $(this).addToCase(); } ); jQuery.fn.showDetails = function () { var str = this.html(); var item_id = this.attr("item_id"); // this.html(""+str+""); this.html(""+str+""); return this; } $(".detailsItemImg").each( function () { $(this).showDetails(); } ); } function BorderOn (id) { id.className='btnOn' } function BorderOff(id) { id.className='btnOff' } var HINTS_CFG = { 'wise' : true, // don't go off screen, don't overlap the object in the document 'margin' : 50, // minimum allowed distance between the hint and the window edge (negative values accepted) 'gap' : 0, // minimum allowed distance between the hint and the origin (negative values accepted) 'align' : 'brtl', // align of the hint and the origin (by first letters origin's top|middle|bottom left|center|right to hint's top|middle|bottom left|center|right) 'css' : 'wrapped', // a style class name for all hints, applied to DIV element (see style section in the header of the document) 'show_delay' : 200, // a delay between initiating event (mouseover for example) and hint appearing 'hide_delay' : 700, // a delay between closing event (mouseout for example) and hint disappearing 'follow' : false, // hint follows the mouse as it moves 'z-index' : 100, // a z-index for all hint layers 'IEfix' : false, // fix IE problem with windowed controls visible through hints (activate if select boxes are visible through the hints) 'smart' : true, 'IEtrans' : ['blendTrans(DURATION=.3)'], // [show transition, hide transition] - transition effects, only work in IE5+ 'opacity' : 70 // opacity of the hint in %% }; // text/HTML of the hints var myHint = new THints (null, HINTS_CFG); function setAjaxMessageTime(timeout) { var hideAjaxMessageFunction = function() { document.all.ajaxMessage.style.visibility = 'hidden'; } addOrOverwriteTimer("ajaxMessage", timeout, hideAjaxMessageFunction); } function header(selectedMenu, isAuthorized) { var text = ""; text = text + " "; text = text + "
"; text = text + "
"; text = text + " "; text = text + "
"; text = text + "
"; if (isAuthorized == 0) { text = text + "
"; text = text + " Регистрация / забыли пароль?"; text = text + "
"; } text = text + "
+7 (495) 730-55-49
+7 (495) 730-55-32
"; if (isAuthorized == 0) { text = text + "
"; text = text + "
"; text = text + "
    "; text = text + "
  • Email: "; text = text + "
  • "; text = text + "
  • пароль: "; text = text + "
  • "; text = text + "
  • "; text = text + "
  • "; text = text + "
"; text = text + " "; text = text + "
"; text = text + "
"; } else { text = text + "
"; text = text + " Выход"; text = text + "
"; } text = text + "
"; text = text + "
"; text = text + "
"; text = text + ""; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + "
"; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + "
"; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + " "; text = text + "
НОВОСТИ"; text = text + " О КОМПАНИИ"; text = text + " КАТАЛОГ"; text = text + " ИНТЕРЬЕРЫ"; text = text + " НАШИ ПАРТНЕРЫ"; text = text + " ПАРТНЕРАМ"; text = text + " ИНТЕРЕСНО"; text = text + " КОНТАКТЫ"; text = text + " КАРТА САЙТА"; text = text + " "; text = text + "
"; text = text + " "; text = text + " "; text = text + "
"; text = text + "
"; text = text + "
"; text = text + "
"; text = text + "
 "; text = text + "
"; text = text + "
"; text = text + "КАТАЛОГ"; text = text + "
"; return text; } function footer() { var text = ""; text = text + " "; text = text + "
"; text = text + "
РЕГИСТРАЦИЯ
"; text = text + "
"; text = text + "
"; text = text + "
    "; text = text + "
  • "; text = text + "
  • "; text = text + "
  • "; text = text + "
  • "; text = text + "
  • "; text = text + "
  • "; text = text + "
"; text = text + " "; text = text + "
"; text = text + "
"; text = text + "
"; return text; } function finder() { var text = ""; text = text + " "; text = text + "
"; text = text + "
"; text = text + ""; text = text + ""; text = text + ""; text = text + ""; text = text + "
"; text = text + "
"; return text; } function howPrice() { var text = ""; text = text + "Узнать цену"; return text; }