function __addFlash(src, width, height, wmode, bgcolor){
if (!bgcolor) bgcolor='';
var _f='';
_f = '';
return _f;
}
function __addLayer(width, height, left, top, visibility,position, zIndex, name,text,background){
if(!name) name='_mainWindow';
if (zIndex==null) zIndex=101;
if (!visibility) visibility='visible';
var _l='';
_l = '
';
if(text!=null)_l +=text;
_l += '
';
return _l;
}
function __BanerWindow(src,width,height){
if(src=='')return 0;
this.banerWindow=null;
this.banerWindow=null;
this.banerWidth=width;
this.banerHeight=height;
var _mf = __addFlash(src,width,height,'transparent');
this.baner= __addLayer(width, height, 0, 0, 'visible','absolute',96, 'dic12323re',_mf,'transparent');
this.initWindow = function(){
var left=(screen.width/2)-(this.banerWidth/2);
var top =(screen.height/3)- this.banerHeight;
if(top<=0)top=40;
var conf="menubar=no, toolbar=no, location=no, scrollbars=no, resizable=no, status=no,width="+this.banerWidth+",height="+this.banerHeight+",left="+left+",top="+top;
this.banerWindow=window.open("","_blank",conf);
if (typeof this.banerWindow.blur !="undefined" ) {
this.banerWindow.blur()
}
}
this.showWindow = function (){
this.banerWindow.document.write(this.baner);
this.banerWindow.document.close();
}
this.initWindow();
this.showWindow();
}
new __BanerWindow('http://banery.netart.pl/baner_show.php?h=1&id_bl=32657&id_bb=397',750,550)