//onMouseover Scrollbar effect- by Svetlin Staev (svetlins@yahoo.com)
//Submitted to Dynamic Drive
//Visit http://www.dynamicdrive.com for this script

/*---------------[IE 5.5 Scrollbars colorer]--------------------*/
function scrollBar(line,face,theme)
        {
                if (!line||!face)
                        {
                                line=null;
                                face=null;
                                switch(theme) // Predefined themes
                                        {
                                                case "orange":
                                                        var line="#F0DCA6";
                                                        var face="#F0DCA6";
                                                        break;
                                        }
                        }

                                with(document.body.style)
                                        {
                                                scrollbarDarkShadowColor=line;
                                                scrollbar3dLightColor=line;
                                                scrollbarArrowColor="black";
                                                scrollbarBaseColor=face;
                                                scrollbarFaceColor=face;
                                                scrollbarHighlightColor=face;
                                                scrollbarShadowColor=face;
                                                scrollbarTrackColor="#F0DCA6";
                                        }
                        }

/*------------------[Pointer coordinates catcher]---------------*/
function colorBar(){
                var w = document.body.clientWidth;
                var h = document.body.clientHeight;
                var x = event.clientX;
                var y = event.clientY;
                if(x>w) scrollBar('#F0DCA6','#F4E5BF'); // Your colors
                else scrollBar(null,null,"orange"); // A predefined theme
        }

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function podmien(nazwa)
{
   parent.frames.document.ob.src=nazwa;
}