/* pre cache info */
function ref_ud(a){document.write(a);}
var isIE6 = /msie 6/.test(navigator.userAgent.toLowerCase());
var dref_w = ((typeof reformal_wdg_w != "undefined") ? reformal_wdg_w : 713) ;
var dref_h = ((typeof reformal_wdg_h != "undefined") ? reformal_wdg_h : 450) ;
var dref_mode = ((typeof reformal_wdg_mode != "undefined") ? reformal_wdg_mode : 0) ;
var dref_title = ((typeof reformal_wdg_title != "undefined") ? reformal_wdg_title : "Реформал") ;
var dref_ltitle = ((typeof reformal_wdg_ltitle != "undefined") ? reformal_wdg_ltitle : "Оставить отзыв") ;
var dref_lfont = ((typeof reformal_wdg_lfont != "undefined") ? reformal_wdg_lfont : "") ;
var dref_lsize = ((typeof reformal_wdg_lsize != "undefined") ? reformal_wdg_lsize : "12px") ;
var dref_color = ((typeof reformal_wdg_color != "undefined" && '#'!=reformal_wdg_color) ? reformal_wdg_color : "orange") ;
var dref_bcolor = ((typeof reformal_wdg_bcolor != "undefined") ? reformal_wdg_bcolor : "#FFA000") ;
var dref_tcolor = ((typeof reformal_wdg_tcolor != "undefined") ? reformal_wdg_tcolor : "#FFFFFF") ;
var dref_align = ((typeof reformal_wdg_align != "undefined" && ''!=reformal_wdg_align) ? reformal_wdg_align : "left") ;
var dref_charset = ((typeof reformal_wdg_charset != "undefined") ? reformal_wdg_charset : "") ;
var dref_waction = ((typeof reformal_wdg_waction != "undefined") ? reformal_wdg_waction : "0") ;
/* Awesome crutch */
dref_waction = isIE6 ? true : dref_waction;
var dref_vcolor = ((typeof reformal_wdg_vcolor != "undefined") ? reformal_wdg_vcolor : "#9fce54") ;
dref_vcolor = dref_vcolor.substring(1, dref_vcolor.length);
var dref_cmline = ((typeof reformal_wdg_cmline != "undefined") ? reformal_wdg_cmline : "#E0E0E0") ;
dref_cmline = dref_cmline.substring(1, dref_cmline.length);
var dref_glcolor = ((typeof reformal_wdg_glcolor != "undefined") ? reformal_wdg_glcolor : "#105895") ;
dref_glcolor = dref_glcolor.substring(1, dref_glcolor.length);
var dref_tbcolor = ((typeof reformal_wdg_tbcolor != "undefined") ? reformal_wdg_tbcolor : "#FFFFFF") ;
dref_tbcolor = dref_tbcolor.substring(1, dref_tbcolor.length);
var dref_tcolor_aw4 = (typeof reformal_wdg_tcolor_aw4 != "undefined") ? reformal_wdg_tcolor_aw4 : "#3F4543" ;
dref_tcolor_aw4 = dref_tcolor_aw4.substring(1, dref_tcolor_aw4.length);
var dref_ext_img = (typeof reformal_wdg_bimage != "undefined" && reformal_wdg_bimage!='') ? 1 : 0 ;
var dref_ext_img_m = (dref_ext_img && reformal_wdg_bimage.substring(3, reformal_wdg_bimage).toLowerCase()=='htt') ? 1 : 0;
if (dref_ext_img_m && reformal_wdg_bimage.indexOf( 'rc1.reformal.ru/files/', 0 ) > 0) { dref_ext_img_m = 0; var v = reformal_wdg_bimage.toString().split ( '/' ); reformal_wdg_bimage = v[v.length-1]; }
var dref_ext_cms = ((typeof reformal_wdg_cms != "undefined") ? reformal_wdg_cms : 'reformal') ;
if (typeof reformal_wdg_vlink == "undefined")
out_link = 'http://'+reformal_wdg_domain+'.rc1.reformal.ru/proj/?mod=one';
else
out_link = ((typeof reformal_wdg_https != "undefined")?'https://':'http://')+reformal_wdg_vlink;
if (dref_waction){
if(typeof reformal_wdg_vlink != "undefined") {
var vlink = reformal_wdg_vlink;
} else {
if (!isIE6) {
var vlink = 'http://'+reformal_wdg_domain+'.rc1.reformal.ru/proj/?mod=one';
} else {
var vlink = 'http://'+reformal_wdg_domain+'.rc1.reformal.ru/proj/';
}
}
} else {
var vlink = 'javascript:MyOtziv.mo_show_box();'; }
MyOtzivCl = function() {
var siteAdr = 'http://rc1.reformal.ru/';
this.mo_get_win_width = function() {
var myWidth = 0;
if( typeof( window.innerWidth ) == 'number' ) myWidth = window.innerWidth;
else if( document.documentElement && document.documentElement.clientWidth ) myWidth = document.documentElement.clientWidth;
else if( document.body && document.body.clientWidth) myWidth = document.body.clientWidth;
return myWidth;
}
this.mo_get_win_height = function() {
var myHeight = 0;
if( typeof( window.innerHeight ) == 'number' ) myHeight = window.innerHeight;
else if( document.documentElement && document.documentElement.clientHeight ) myHeight = document.documentElement.clientHeight;
else if( document.body && document.body.clientHeight) myHeight = document.body.clientHeight;
return myHeight;
}
this.mo_get_scrol = function() {
var yPos = 0;
if (self.pageYOffset) {
yPos = self.pageYOffset;
} else if (document.documentElement && document.documentElement.scrollTop){
yPos = document.documentElement.scrollTop;
} else if (document.body) {
yPos = document.body.scrollTop;
}
return yPos;
}
this.mo_show_box = function() {
if (document.getElementById("fthere").innerHTML == "") {
document.getElementById("fthere").innerHTML = "";
}
var l = this.mo_get_win_width()/2 - dref_w/2;
var t = this.mo_get_win_height()/2 - dref_h/2 + this.mo_get_scrol();
document.getElementById('myotziv_box').style.top = (dref_ext_cms=='joomla') ? '35px' : t+'px';
document.getElementById('myotziv_box').style.left = l+'px';
document.getElementById('myotziv_box').style.display='block';
}
this.mo_hide_box = function() {
document.getElementById('myotziv_box').style.display='none';
}
this.mo_showcss = function() {
ref_ud("