//hd studio mebli kuchennych dabrowski
okno = null;
function picture(src, w, h){
if(window.screen){  aw=screen.availWidth;  ah=screen.availHeight;
}else{  aw=640;  ah=450;
}
if(okno==null || okno.closed){
 ustawienia=
  "left=" + (aw-w)/2 + ","
 +"top=" + (ah-h)/2 + ","
 +"screenX=" + (aw-w)/2 + ","
 +"screenY=" + (ah-h)/2 + ","
 +"width=" + w + ","
 +"height=" + h + ","
 +"innerWidth=" + w + ","
 +"innerHeight=" + h + ","
 +"toolbar=no,"
 +"location=no,"
 +"directories=no,"
 +"status=no,"
 +"menubar=no,"
 +"scrollbars=no,"
 +"resizable=no,"
 okno = window.open("",'obrazek',ustawienia);
}
okno.document.open();
okno.document.clear();
okno.document.write(
"<html><head>\n"
+"<style><!--"
+"body{background-repeat:no-repeat}"
+"--></style>\n"
+"<title> HD STUDIO-BIS MEBLE KUCHENNE// Galeria fotograficzna </title>"+"</head>\n<!-- (C)2006 -->\n"
+"<body background=" + src + "></body>\n"
+"</html>"
);
okno.document.close();
okno.focus();
}


var swfMenu = 'false';
var swfQuality = 'auto';
function BuildFlash(path, w, h, bckgColor, vars, name, live) {
    var str = '';
    var wmode = 'transparent';
    if ((path != '') && (path != undefined))  {
        str = '<object type="application/x-shockwave-flash" data="'+ path +'" width="'+ w +'" height="'+ h +'" id="'+ name +'">' +
        '<param name="movie" value="'+ path +'"/>' +
        '<param name="quality" value="' + swfQuality + '"/>' +
        '<param name="bgcolor" value="'+ bckgColor +'"/>' +
        '<param name="wmode" value="'+ wmode +'"/>' +
        '<param name="menu" value="' + swfMenu + '"/>' +
        '<param name="flashvars" value="' + vars + '"/>' +
        '<param name="allowScriptAccess" value="sameDomain" />' +
        '</object>';
    }
    document.write(str);
}


function PokazStatusMsg(msgStr) { status=msgStr; document.PSM_returnValue = true;}


function centerPopup(popup_url,popup_name,popup_with,popup_height,reopen,myScrollbar,myLeftPos,myTopPos) {
  if(!myLeftPos)  {myLeftPos    = 0;}
  if(!myTopPos)   {myTopPos     = 0;}
  if(!myScrollbar){myScrollbar  = 0;}
  var popup_left                = (window.screen.width/2)  - (popup_with/2 + myLeftPos);
  var popup_top                 = (window.screen.height/2) - (popup_height/2 + myTopPos);
  if ((typeof popup_window != 'object') || (typeof popup_window == 'object' && popup_window.closed)) {
    if (document.all) {
      var xyPos                 = 'left=' + popup_left + ',top=' + popup_top;
    } else {
      var xyPos                 = 'screenX=' + popup_left + ',screenY=' + popup_top;
    }
    popup_window                = window.open(popup_url, popup_name, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + myScrollbar + ",resizable=no,width=" + popup_with + ",height=" + popup_height + ",copyhistory=no," + xyPos + "");
    popup_window.opener         = self;
    popup_window.focus();
    winUrl                      = popup_url;
    windowWidth                 = popup_with;
    windowHeight                = popup_height;
  } else {
    if ((winUrl != popup_url) || reopen) {
      popup_window.location.href = popup_url;
    }
    if ((windowWidth + windowHeight > 0) && (popup_with != windowWidth || popup_height != windowHeight || myLeftPos != diffWidth || myTopPos != diffHeight)) {
      var newWidth              = popup_with  - windowWidth;
      var newHeight             = popup_height - windowHeight;
      popup_window.resizeBy(newWidth,newHeight);
      popup_window.moveTo(popup_left,popup_top);
    }
    popup_window.focus();
    winUrl                      = popup_url;
    windowWidth                 = popup_with;
    windowHeight                = popup_height;
  }
  diffWidth                     = myLeftPos;
  diffHeight                    = myTopPos;
}

function centerPopup2(popup_name,popup_url,popup_with,popup_height,myWidth,myHeight,myScrollbar) {
 
  if(!myWidth) {myWidth = 10;}
  if(!myHeight){myHeight = 50;}
  if(!myScrollbar){myScrollbar = 0;}
  var popup_left = (window.screen.width/2)  - (popup_with/2 + myWidth);
  var popup_top  = (window.screen.height/2) - (popup_height/2 + myHeight);
  okno = window.open(popup_url ,popup_name,"toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=no,resizable=no,width=" + popup_with + ",height=" + popup_height + ",left=" + popup_left + ",top=" + popup_top + ",screenX=" + popup_left + ",screenY=" + popup_top);

}

wnd = null;
function popimg(addrurl, x, y) {
wnd = window.open("",'obrazek','toolbar=0, scrollbars=0, resizable=0, status=0, directories=0, status=0,resizable=0, width='+(x+1)+', height='+(y+1)+', left='+parseInt((screen.width-x-1)/2)+', top='+parseInt((screen.height-y-1)/2) );

wnd.document.open();
wnd.document.clear();
wnd.document.write(
"<html><head>\n"
+"<style><!--"
+"body{background-repeat:no-repeat}"
+"--></style>\n"
+"<title> HD STUDIO-BIS MEBLE KUCHENNE// Galeria fotograficzna </title>"+"</head>\n<!-- (C)2006 -->\n"
+"<body background=" + addrurl + "></body>\n"
+"</html>"
);
wnd.document.close();
wnd.focus();
}

