var dref_w = "713"; var dref_h = "450"; var dref_mode = 0; var dref_title = "Idea Informer"; var dref_ltitle = "Got ideas? Share!..."; var dref_lfont = ""; var dref_lsize = "12px"; var dref_color = "#EFEFEF"; var dref_bcolor = "#FFA000"; var dref_tcolor = "#FFFFFF"; var dref_align = "left"; var dref_charset = ""; var dref_waction = 0; var dref_vcolor = "#9fce54"; var dref_cmline = "#E0E0E0"; var dref_glcolor = "#105895"; var dref_tbcolor = "#FFFFFF"; var out_link = 'http://'+reformal_wdg_domain+'.idea.informer.com/proj/?mod=one'; if (reformal_wdg_waction) { /** show out design */ if(typeof reformal_wdg_vlink != "undefined") vlink = reformal_wdg_vlink; else vlink = 'http://'+reformal_wdg_domain+'.idea.informer.com/proj/?mod=one'; } else vlink = 'javascript:MyOtziv.mo_show_box();'; /** show widget */ function ref_ud(ameo3) { return (typeof ameo3 != "undefined"); } if(ref_ud('reformal_wdg_w')) dref_w = reformal_wdg_w; if(ref_ud('reformal_wdg_h')) dref_h = reformal_wdg_h; if(ref_ud('reformal_wdg_mode')) dref_mode = reformal_wdg_mode; if(ref_ud('reformal_wdg_title')) dref_title = reformal_wdg_title; if(ref_ud('reformal_wdg_ltitle')) dref_ltitle = reformal_wdg_ltitle; if(ref_ud('reformal_wdg_lfont')) dref_lfont = reformal_wdg_lfont; if(ref_ud('reformal_wdg_lsize')) dref_lsize = reformal_wdg_lsize; if(ref_ud('reformal_wdg_color')) dref_color = reformal_wdg_color; if(ref_ud('reformal_wdg_bcolor')) dref_bcolor = reformal_wdg_bcolor; if(ref_ud('reformal_wdg_tcolor')) dref_tcolor = reformal_wdg_tcolor; if(ref_ud('reformal_wdg_align')) dref_align = reformal_wdg_align; /*if(ref_ud('reformal_wdg_charset')) dref_charset = reformal_wdg_charset;*/ if(ref_ud('reformal_wdg_waction')) dref_waction = reformal_wdg_waction; if(ref_ud('reformal_wdg_vcolor')) dref_vcolor = reformal_wdg_vcolor; dref_vcolor = dref_vcolor.substring(1, dref_vcolor.length) if(ref_ud('reformal_wdg_cmline')) dref_cmline = reformal_wdg_cmline; dref_cmline = dref_cmline.substring(1, dref_cmline.length) if(ref_ud('reformal_wdg_glcolor')) dref_glcolor = reformal_wdg_glcolor; dref_glcolor = dref_glcolor.substring(1, dref_glcolor.length) if(ref_ud('reformal_wdg_tbcolor')) dref_tbcolor = reformal_wdg_tbcolor; dref_tbcolor = dref_tbcolor.substring(1, dref_tbcolor.length) var dref_ext_cms = ((typeof reformal_wdg_cms != "undefined") ? reformal_wdg_cms : 'reformal') ; MyOtzivCl = function() { var siteAdr = 'http://widget.idea.informer.com/'; 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 - 100; 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() { document.write(""); } this.mo_showframe = function() { this.mo_showcss(); if (!dref_mode) { if ('left' == dref_align) { document.write("
"); } else { document.write(""); } } else { document.write(""+dref_ltitle+""); } document.write(""); /*document.write("");*/ } } var MyOtziv = new MyOtzivCl(); MyOtziv.mo_showframe();