MyOtzivCl = function() {
    var siteAdr = 'http://myconf.ru/';
    
    this.mo_get_win_width = function() {
        var myWidth = 0;
        if( typeof( window.innerWidth ) == 'number' ) //Non-IE
            myWidth = window.innerWidth;
        else if( document.documentElement && document.documentElement.clientWidth ) //IE 6+ in 'standards compliant mode'
            myWidth = document.documentElement.clientWidth;
        else if( document.body && document.body.clientWidth) //IE 4 compatible
            myWidth = document.body.clientWidth;
        return myWidth;
    }
	
    this.mo_get_win_height = function() {
        var myHeight = 0;
        if( typeof( window.innerHeight ) == 'number' ) //Non-IE
            myHeight = window.innerHeight;
        else if( document.documentElement && document.documentElement.clientHeight ) //IE 6+ in 'standards compliant mode'
            myHeight = document.documentElement.clientHeight;
        else if( document.body && document.body.clientHeight) //IE 4 compatible
            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() {
	
        var l = this.mo_get_win_width()/2 - 350;
        var t = this.mo_get_win_height()/2 - 200 + this.mo_get_scrol();
        document.getElementById('myotziv_box').style.top  = 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() {
        document.write("<style type=\"text/css\">");
        
        document.write(".tdsfh{background: url('"+siteAdr+"images/think/feedback_tab.png');}");
        document.write("* html .tdsfh{background-image: none; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+siteAdr+"images/think/feedback_tab.png');}");  
        document.write(".widsnjx {margin:0 auto; position:relative;}");
        document.write(".widsnjx fieldset {padding:0; border:0; margin:0;}");
        document.write(".furjbqy {position:fixed; left:0; top:185px; z-index:5; width:22px; height:152px;}* html .furjbqy {position:absolute;}.furjbqy a {display:block; width:22px; height:151px; background:transparent;}.furjbqy a:hover {background:transparent;}.furjbqy img {border:0;}");
        document.write(".furrghtd {position:fixed; right:1px; top:185px; z-index:5; width:22px; height:152px;}* html .furrghtd {position:absolute;}.furrghtd a {display:block; width:22px; height:151px; background:transparent;}.furrghtd a:hover {background:transparent;}.furrghtd img {border:0;}");
              document.write("</style>");
    }
    
    this.mo_showframe = function() {
        this.mo_showcss();
        
		                        document.write("<div class=\"furjbqy\"><a href=\"http://myconf.ru/forum/5-448-1\"><img src=\""+siteAdr+"images/think/transp.gif\" width=\"22\" height=\"152\" alt=\"\" style=\"border: 0;\" class=\"tdsfh\" /></a></div>");
                    	   	
    }
}

var MyOtziv = new MyOtzivCl();	
MyOtziv.mo_showframe();
