//defs:
reformal_wdg_vlink    = "otziv.highspec.ru";
reformal_wdg_https	= 0;
reformal_wdg_w    = "713";
reformal_wdg_h    = "450";
reformal_wdg_domain    = "highspec";
reformal_wdg_mode    = 0;
reformal_wdg_title   = "Специализированное ПО";
reformal_wdg_ltitle  = "Есть идеи? Выскажите их!…";
reformal_wdg_lfont   = "Verdana, Geneva, sans-serif";
reformal_wdg_lsize   = "11px";
reformal_wdg_color   = "#456285";
reformal_wdg_bcolor  = "#516683";
reformal_wdg_tcolor  = "#ffffff";
reformal_wdg_align   = "right";
reformal_wdg_charset = "windows-1251";
reformal_wdg_waction = 0;
reformal_wdg_vcolor  = "#27548C";
reformal_wdg_cmline  = "#E0E0E0";
reformal_wdg_glcolor  = "#105895";
reformal_wdg_tbcolor  = "#FFFFFF";
reformal_wdg_tcolor_aw4  = "#3F4543";

reformal_wdg_bimage = "7688f5685f7701e97daa5497d3d9c745.png";

function ref_ud(a){document.write(a);}

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") ;
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( '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+'.reformal.ru/proj/?mod=one';
else
        out_link = (reformal_wdg_https?'https://':'http://')+reformal_wdg_vlink;


if (dref_waction){
    		if(typeof reformal_wdg_vlink != "undefined")
		vlink = reformal_wdg_vlink;
        else
	    	vlink = 'http://'+reformal_wdg_domain+'.reformal.ru/proj/?mod=one';
}
else
    	vlink = 'javascript:MyOtziv.mo_show_box();';

MyOtzivCl = function() {
    var siteAdr = 'http://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.getDocHeight = function() {
        var db = document.body;
        var dde = document.documentElement;
        return Math.max(
            $(document).height(),
            $(window).height(),
            /* For Opera: */
            document.documentElement.clientHeight,
            db.scrollHeight,
            dde.scrollHeight,
            db.offsetHeight,
            dde.offsetHeight,
            db.clientHeight,
            dde.clientHeight
        );
    };

    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_box1 = function() {
        $( '#myotziv_box' ).fadeIn(500);
    }

    this.mo_show_box = function() {
	    if (document.getElementById("fthere").innerHTML == "") {
		    document.getElementById("fthere").innerHTML = "<iframe id=\"thrwdgfr\" src=\""+siteAdr+"wdg4.php?w="+(dref_w-10)+"&h=450px&domain="+reformal_wdg_domain+"&bcolor="+dref_tbcolor+"&glcolor="+dref_glcolor+"&cmline="+dref_cmline+"&vcolor="+dref_vcolor+"&tcolor_aw4="+dref_tcolor_aw4+"\" width=\""+dref_w+"\" height=\""+(dref_h-15)+"\" frameborder=\"0\" scrolling=\"no\">Frame error</iframe>";
		}
        var l = this.mo_get_win_width()/2 - 497;
        var t = this.mo_get_win_height()/2 - 300 + 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='none';
        document.getElementById('fader').style.height=this.getDocHeight()+'px';
	    $( '#fader' ).fadeTo(500, 0.2, this.mo_show_box1);
    }

    this.mo_hide_box = function() {
        $( '#myotziv_box' ).fadeOut(300);
	    $( '#fader' ).fadeOut(300);
        //document.getElementById('myotziv_box').style.display='none';
    }

//    this.mo_showcss = function() {
//       ref_ud("<style type=\"text/css\">");
//       ref_ud(".widsnjx {margin:0 auto; position:relative;}.widsnjx fieldset {padding:0; border:none; border:0px solid #000; margin:0;}");
//       ref_ud("#poxupih { width:"+(dref_w-(-40))+"px; height:auto; position:relative;z-index:1001; min-height:490px;}.poxupih_top {background:url(http://widget.reformal.ru/i/wdt/box_shadow_n.png) top left repeat-x ; padding-top:20px; margin:0 20px;_background-image: none; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://widget.reformal.ru/i/wdt/box_shadow_n.png');}.poxupih_btm {background:url(http://widget.reformal.ru/i/wdt/box_shadow_s.png) bottom repeat-x; padding-bottom:20px;_background-image: none; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://widget.reformal.ru/i/wdt/box_shadow_s.png');}.poxupih_1t {background:url(http://widget.reformal.ru/i/wdt/box_shadow_w.png) left repeat-y; padding-left:20px; margin:0 -20px;_background-image: none; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://widget.reformal.ru/i/wdt/box_shadow_w.png');}.poxupih_rt {background:url(http://widget.reformal.ru/i/wdt/box_shadow_e.png) right repeat-y; padding-right:20px;_background-image: none; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://widget.reformal.ru/i/wdt/box_shadow_e.png');}.poxupih_center {width:"+(dref_w)+"px;min-width:"+(dref_w)+"px; min-height:"+(dref_h-10)+"px; height:"+(dref_h-10)+"px; background:"+dref_bcolor+";color:"+(dref_tcolor)+";}#poxupih_tl {position:absolute;top:0;left:0;height:20px;width:20px;background:url(http://widget.reformal.ru/i/wdt/box_shadow_nw.png) 0 0 no-repeat;*behavior: url(http://reformal.ru/iepngfix.htc)}#poxupih_bl {position:absolute;bottom:0;left:0;height:20px;width:20px;background:url(http://widget.reformal.ru/i/wdt/box_shadow_sw.png) 0 0 no-repeat;*behavior: url(http://reformal.ru/iepngfix.htc)}#poxupih_tr {position:absolute;top:0;right:0;height:20px;width:20px;background:url(http://widget.reformal.ru/i/wdt/box_shadow_ne.png) 0 0 no-repeat;*behavior: url(http://reformal.ru/iepngfix.htc)}#poxupih_br {position:absolute;bottom:0;right:0;height:20px;width:20px;background:url(http://widget.reformal.ru/i/wdt/box_shadow_se.png) 0 0 no-repeat;*behavior: url(http://reformal.ru/iepngfix.htc)}");
//       ref_ud('.gertuik { padding:10px 20px; font-size:18px; font-weight:bold; font-family:Arial, Helvetica, sans-serif; overflow:hidden; max-height:42px;}a.pokusijy {cursor:pointer;display:block; width:16px; height:16px; background: url(http://reformal.ru/i/wdg_data/expand.png) 100% 0px no-repeat; float:right; margin-top:3px;*behavior: url(http://reformal.ru/iepngfix.htc)}');
//       ref_ud('.drsdtf { font-family: Tahoma, Geneva, sans-serif; padding:3px 20px; text-align:right; font-size:10px; max-height:22px;}.drsdtf a { font-weight:bold; color:#fff; text-decoration:none;}');
//       ref_ud('#poxupih  a {position:relative; z-index:10;}/*меняем размеры окна*/#poxupih { width:"+(dref_w)+"px;}.poxupih_center {width:"+(dref_w)+"px; height:"+(dref_h)+"px; background:"+dref_bcolor+";color:#fff;} /*меняем фон и цвет шрифта заголовка и футера*/');
//       ref_ud(".tdsh{background-image: none; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+(dref_ext_img ? (dref_ext_img_m ?reformal_wdg_bimage : siteAdr+'files/images/buttons/'+reformal_wdg_bimage) : siteAdr+'i/feedback_tab.png' )+"');} .frby {position:fixed; left:0; top:263px; z-index:5; width:22px; height:151px;}* html .frby {position:absolute;}.frby a {display:block; width:22px; height:151px; background:"+(dref_ext_img_m ? 'none' :dref_color)+";}.frby a:hover {background:"+(dref_ext_img_m ? 'none' :dref_color)+";}.frby img {border:0;} .frgtd {position:fixed; right:1px; top:263px; z-index:5; width:22px; height:151px;}* html .frgtd {position:absolute;}.frgtd a {display:block; width:22px; height:151px; background:"+(dref_ext_img_m ? 'none' :dref_color)+";}.frgtd a:hover {background:"+(dref_ext_img_m ? 'none' :dref_color)+";}.frgtd img {border:0;}</style>");
//    }


    this.mo_showcss = function() {
        ref_ud("<style type=\"text/css\">");
        ref_ud(".bvnmrte {padding:0; width:100%;overflow:hidden;}");

        ref_ud(".tdsfh{background: url('/feedback_tab.png');}");
        ref_ud("* html .tdsfh{background-image: none; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/feedback_tab.png');}");
        ref_ud(".furjbqy {position:fixed; left:0; top:263px; z-index:5; width:22px; height:151px;}* html .furjbqy {position:absolute;}.furjbqy a {display:block; width:22px; height:151px; background:"+reformal_wdg_color+";}.furjbqy a:hover {background:"+reformal_wdg_color+";}.furjbqy img {border:0;}");
        ref_ud(".furrghtd {position:fixed; right:1px; top:263px; z-index:5; width:22px; height:163px;}* html .furrghtd {position:absolute;}.furrghtd a {display:block; width:22px; height:163px; background:"+reformal_wdg_color+";}.furrghtd a:hover {background:"+reformal_wdg_color+";}.furrghtd img {border:0;}");

        ref_ud(".tegdiw_tnoc {font-size:11px;font-family: Arial, Tahoma, sans-serif;color:#3F4543} .tegdiw_tnoc a img {border:0;} .tegdiw_tnoc a {color:#4F94D0; text-decoration:none;} .tegdiw_tnoc a:hover {text-decoration:underline;} .tegdiw_tnoc {width:713px;height:489px;position:absolute;margin: 55px 0 0 110px;z-index:10;}");
        ref_ud(".tegdiw {width:713px;height:489px;background: url("+siteAdr+"i/wd/widget_bg1.png) no-repeat;padding:15px 21px 0 21px;} .tegdiw_pot {height:52px;background:"+reformal_wdg_bcolor+";} .tegdiw_pot h2 {display:inline;float:left!important;margin:0;color:#FFF;font-size:18px;line-height:48px;vertical-align:middle;padding: 0 0 0 19px;}");
        ref_ud(".tegdiw_snottub {float:right !important;padding:10px 11px 0 0;} .tegdiw_snottub a {display:inline;float:right;margin-left:8px;}");
        ref_ud(".tegdiw_unem {background:#EFEFEF;height:25px;} .tegdiw_unem * {float:left;height:25px;line-height:25px;vertical-align:middle;text-align:center;padding: 0 17px;} .tegdiw_unem span {background:#FFF;} .tegdiw_unem a {color:#105895;} .tegdiw_unem .right {float:right;}");

        ref_ud(".derewop_yb {font-size:11px;color:#FFF;float:right;padding:8px 17px 0 0;} .tegdiw iframe {border:0;margin:0 0 -3px 0;padding:0;} .tegdiw_mottob {background:"+reformal_wdg_bcolor+";position:relative;width:713px;height:25px;}");
        ref_ud("#tegdiw_dnapxe {background:url("+siteAdr+"i/wd/expand.png) left top no-repeat;width:17px;height:14px;}");
        ref_ud("#tegdiw_esloc {background:url("+siteAdr+"i/wd/close.png) left top no-repeat;width:16px;height:16px;}");

        ref_ud("</style><!--[if IE]><style type=\"text/css\">");
        ref_ud(".tegdiw {_background-image:none; _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+siteAdr+"i/wd/widget_bg1.png');} .tegdiw * {position:relative;} .tegdiw iframe {margin:0;} .tegdiw_snottub {width:100px;}");
        ref_ud("#tegdiw_dnapxe {_background-image:none; _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+siteAdr+"i/wd/expand.png');}");
        ref_ud("#tegdiw_esloc {_background-image:none; _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+siteAdr+"i/wd/close.png');}");
        ref_ud("</style><![endif]-->");
    }

    this.mo_showframe = function() {
        this.mo_showcss();

	    if (!reformal_wdg_mode) {
                if ('left' == reformal_wdg_align) {
             document.write("<div class=\"furjbqy\"><a style=\"border-bottom: 0px\" href=\""+vlink+"\""+((reformal_wdg_waction)?' target=\"_blank\"':"")+"><img src=\""+siteAdr+"i/transp.gif\" width=\"22\" height=\"151\" alt=\"\" style=\"border: 0;\" class=\"tdsfh\" /></a></div>");
                }
                else {
             document.write("<div class=\"furrghtd\"><a style=\"border-bottom: 0px\" href=\""+vlink+"\""+((reformal_wdg_waction)?' target=\"_blank\"':"")+"><img src=\""+siteAdr+"i/transp.gif\" width=\"22\" height=\"151\" alt=\"\" style=\"border: 0;\" class=\"tdsfh\" /></a></div>");
                }
           } else {
		     document.write("<a href=\""+vlink+"\" style=\"color:"+reformal_wdg_color+"; "+(reformal_wdg_lfont ? 'font-family:'+reformal_wdg_lfont+';' : '')+" "+(reformal_wdg_lsize ? 'font-size:'+reformal_wdg_lsize+';' : '')+"\""+((reformal_wdg_waction)?' target=\"_blank\"':"")+">"+reformal_wdg_ltitle+"</a>");
           }

	        document.write("<div class=\"tegdiw_tnoc\" style=\"position:absolute; display: none; top: 0px; left: 0px;\" id=\"myotziv_box\">");
		document.write("<div class=\"tegdiw\"><div class=\"tegdiw_pot\"><div class=\"tegdiw_snottub\"><a style=\"border-bottom: 0px\" href=\"javascript:MyOtziv.mo_hide_box();\" id=\"tegdiw_esloc\"><img src=\""+siteAdr+"i/wd/sp.gif\" width=\"16\" height=\"16\" alt=\"Закрыть\" /></a><a style=\"border-bottom: 0px\" href=\""+out_link+"\" target=\"_blank\" id=\"tegdiw_dnapxe\"><img src=\""+siteAdr+"i/wd/sp.gif\" width=\"17\" height=\"14\" alt=\"Развернуть\" /></a></div><h2 style=\"color:"+reformal_wdg_tcolor+"\">"+reformal_wdg_title+"</h2></div>");
		document.write("<div class=\"bvnmrte\" style=\"height: 385px;\" id=\"fthere\">");
		document.write("</div>");
		document.write("<div class=\"tegdiw_mottob\"><div class=\"derewop_yb\"><img src=\""+siteAdr+"i/wd/reformal.png\" width=\"64\" height=\"9\" alt=\"Reformal.ru\" /></div></div></div></div>");
    }
}

var MyOtziv = new MyOtzivCl();
MyOtziv.mo_showframe();
