<!-- 
// Use Freely as long as following disclaimer is intact ::
//---------------------------------------------------------------
// Cross Browser Multi-Directional Scroller v1.0 24th August 2004
// This script written by Rik Comery. www.ricom.co.uk
// For support, visit the "Resources" section at www.ricom.co.uk           
// All rights reserved.   
                                     
Article = new Array;
i=0;

/* DEFINE SCROLLER ELEMENTS
  Define new scroller elements here in the following format.
  Article[i] = new Array ("", "URL", "frame target to load link in");i++  
  Note: If you do not want the item to be a link, change the URL value to "none".
*/
  Article[i] = new Array ("<img SRC='img/klienci/cc.gif' width='140' height='44' border='0' alt='Coca-Cola'><img SRC='img/klienci/cyfra.gif' width='128' height='44' border='0' alt='CYFRA+'><img SRC='img/klienci/inne/euro2012.gif' width='44' height='44' border='0' hspace='3' alt='Euro 2012'><img SRC='img/klienci/fundusz_kropli_beskidu.gif' width='193' height='44' border='0' hspace='3' alt='Fundusz Kropli Beskidu'><img SRC='img/klienci/goodyear.gif' width='220' height='44' border='0' hspace='3' alt='Goodyear'><img SRC='img/klienci/goodyear_debica.gif' width='200' height='44' border='0' hspace='3' alt='Dębica'><img SRC='img/klienci/goodyear_dunlop.gif' width='168' height='44' border='0' hspace='3' alt='Dunlop'><img SRC='img/klienci/goodyear_fulda.gif' width='170' height='44' border='0' hspace='3' alt='Fulda'><img SRC='img/klienci/kraft.gif' width='108' height='44' border='0' hspace='3' alt='KRAFT FOODS'><img SRC='img/klienci/kraft_alpengold.gif' width='44' height='44' border='0' hspace='3' alt='Alpen Gold'><img SRC='img/klienci/kraft_jacobs.gif' width='97' height='44' border='0' hspace='3' alt='Jacobs'><img SRC='img/klienci/kraft_milka.gif' width='86' height='44' border='0' hspace='3' alt='Milka'><img SRC='img/klienci/kraft_philadelpfia.gif' width='78' height='44' border='0' hspace='3' alt='Philadelphia'><img SRC='img/klienci/mapei.gif' width='162' height='44' border='0' hspace='3' alt='Mapei'><img SRC='img/klienci/mddp.gif' width='44' height='44' border='0' hspace='3' alt='MDDP'><img SRC='img/klienci/msd.gif' width='117' height='44' border='0' hspace='3' alt='MSD'><img SRC='img/klienci/nutricia.gif' width='200' height='44' border='0' hspace='3' alt='NUTRICIA'><img SRC='img/klienci/nutricia_bebiko.gif' width='157' height='44' border='0' hspace='3' alt='Bebiko'><img SRC='img/klienci/nutricia_bebilon.gif' width='130' height='44' border='0' hspace='3' alt='Bebilon'><img SRC='img/klienci/nutricia_bobovita.gif' vspace='5' width='197' height='30' border='0' hspace='3' alt='Bobovita'><img SRC='img/klienci/nutricia_clinical.gif' width='93' height='44' border='0' hspace='3' alt='NUTRICIA Clinical'><img SRC='img/klienci/pilkington.gif' width='76' height='44' border='0' hspace='3' alt='Pilkington'><img SRC='img/klienci/publicis.gif' width='110' height='44' border='0' hspace='3' alt='PUBLICIS'><img SRC='img/klienci/inne/swiat.gif' width='45' height='44' border='0' hspace='3' alt='¦wiat przyjazny dziecku'><img SRC='img/klienci/tesco.gif' width='168' height='44' border='0' hspace='3' alt='Tesco'>", "firma.php?c=klienc1", "_blank");i++  
  
  

  
////// SCROLLER CONFIGURATION ///////////////////////////////////////////////////////////////////  

orientation = "horizontal"        // Orientation of scroller (Horizontal or vertical)
scrollerWidth = "206"             // Width of entire scroller.
scrollerHeight = "25"             // Height of Scroller.
borderWidth = 1                   // Width of border. (use 0 for no border).
borderColour = ""          // Colour of scroller border. (Use either hexadecimal or text values. e.g. "#FF0000" or "Red") 
backColour = "#ffffff"              // Colour of scroller background. (Use either hexadecimal or text values. e.g. "#FF0000" or "Red") 
staticColour = "#000000"          // Colour of scroller items that are NOT a link. (including scrollerDivider characters)
stopScroll = 1                    // Pause the scroller on mouseOver. (use 0 for no.)
textAlignment="center"            // Alignment of each scroller item.  Only really makes a difference on vertical scroller
                                  // (center, left, right, justify)

// Scroller Links
linkFont = "arial"                // Font of scroller links;
linkWeight = "normal"             // Weight of scroller links;
linkColour = "#006600"            // Colour of scroller links
linkSize = "10"                   // Size of links (in points)
linkDecoration = "none"           // Decoration of links. (underline, overline, none)

// Scroller Links On MouseOver
slinkFont = "arial"               // Font of scroller links;
slinkWeight = "normal"            // Weight of scroller links;
slinkColour = "#AFAF9D"           // Colour of scroller links
slinkSize = "10"                  // Size of links (in points)
slinkDecoration = "underline"     // Decoration of links. (underline, overline, none)

scrollerDivider = "" // Character to place between each scroller item. 
                                  // <img> tags can be used if an image is required. 
                                  // Use "0" for nothing.  For Vertical scrollers, it is best to use "<br>"

/* 
  Because Netscape version 4 does not support this scroller, configure the values below so NS4 users do not see an error. 
  In the scroller's place will be a static title which can be a link if require.  The appearance of the static text (colour, scroller border etc)
  will be exactly the same as for the working version in other browsers.
*/
ns4Text = "zobacz listę klientów";  // Alternative text to display in Netscape 4.
ns4URL = "firma.php?c=klienc1";            // URL of link in NS4. If no URL is required, enter "none"
ns4Target = "_top";                           // Frame target for link in NS4


////// DO NOT EDIT BELOW THIS LINE  ///////////////////////////////////////////////////////////////////

//Browser Sniffer
var isIE = (document.getElementById && document.all)?true:false;
var isNS4 = (document.layers)?true:false;
var isNS6 = (document.getElementById && !document.all)?true:false;

style='<style type="text/css">';
style+='p{font-family:'+linkFont+'; color:'+staticColour+'; font-size:'+linkSize+'pt; font-weight:'+linkWeight+'; text-align:'+textAlignment+'}';
style+='a.rcScroller,a.rcScroller:active,a.rcScroller:visited{color:'+linkColour+';text-decoration:'+linkDecoration+'; font-weight:'+linkWeight+'}';
style+='a.rcScroller:hover{color:'+slinkColour+';text-decoration:'+slinkDecoration+'; font-weight:'+slinkWeight+'}';
style+='rcScrollerHoverNS{color:red;text-decoration:'+slinkDecoration+'; font-weight:'+slinkWeight+'}';
style+='<\/style>';
document.writeln(style);

// Build the scroller and place it on the page
function buildScroller()
{
  if(isNS4){
    scroller='<table border="0" cellpadding="0" cellspacing="0" width="206" bgcolor="'+borderColour+'"><tr><td>'
    scroller+='<table border="0" cellpadding="3" cellspacing="1" width="100%" height="'+scrollerHeight+'" bgcolor="'+backColour+'"><tr><td align="center" nowrap><p>';
    if(ns4URL.toLowerCase()!="none"){scroller+='<a href="'+ns4URL+'" class="rcScroller" target="'+ns4Target+'">'+ns4Text+'</a>';}
    else{scroller+=ns4Text;} 
    scroller+='</p></td></tr></table></td></tr></table>'   
  }else{
    scroller='<table border="0" cellpadding="0" cellspacing="0" style="width:'+scrollerWidth+';height:'+scrollerHeight+';border:'+borderWidth+'px solid '+borderColour+';background-color:'+backColour+'">';
    scroller+='<tr valign="middle"><td><div id="div" style="';
    if(orientation.toLowerCase()=="vertical"){scroller+='height:'+scrollerHeight+';';}
    scroller+='width:'+scrollerWidth+'; position:relative; background-color:'+backColour+'; overflow:hidden">';
    scroller+='<div id="div1" style="position:relative; left:0; z-index:1">';
    scroller+='<table border="0" name="table" id="table"';
    if(orientation.toLowerCase()=="vertical"){scroller+='style="width:'+scrollerWidth+'"';}
    scroller+='><tr>';
    y=0;
    while (y<4)
    {
      for (x=0; x<(Article.length); x++)
      {
        if(orientation.toLowerCase()=="vertical"){scroller+='<tr>';}
        scroller+='<td ';
        if(orientation.toLowerCase()=="horizontal"){scroller+='nowrap';} if(stopScroll==1){scroller+=' onMouseOver="stopScroller();" onMouseOut="setWidth()"';}
        scroller+='><p>';
        if(Article[x][1].toLowerCase()!="none"){scroller+='<a class="rcScroller" href="'+Article[x][1]+'"  >'+Article[x][0]+'<\/a>';
        }else{scroller+=Article[x][0];}          
        scroller+='</p><\/td>';
        
        if(orientation.toLowerCase()=="vertical"){scroller+='<\/tr>';}
              
        if(scrollerDivider.toLowerCase() != "none"){scroller+='<td nowrap><p>'+scrollerDivider+'<\/p><\/td>';}
      }
      y++
    }
    scroller+='<\/tr><\/table><\/div><\/div><\/td><\/tr><\/table>';  
  }
  document.writeln(scroller);
}


// Ensure the width of the scroller is divisible by 2. This allows smooth flowing of the scrolled content
function setWidth()
{ 
  tableObj=(isIE)?document.all("table"):document.getElementById("table"); 
  obj=(isIE)?document.all.div1:document.getElementById("div1");   
  objWidth=(orientation.toLowerCase()=="horizontal")?getOffset(tableObj,"width"):getOffset(tableObj,"height");
  HalfWidth=Math.floor(objWidth/2);
  newWidth = (HalfWidth*2)+2;
  obj.style.width=newWidth
  moveLayer(obj, newWidth);
  
}

// Move the layer by one pixel to the left
function moveLayer(obj, width)
{
  
  maxLeft = (0-(width/2)+2)/2
  if(orientation.toLowerCase()=="horizontal"){
    obj.style.left=(parseInt(obj.style.left) <= maxLeft)?0:parseInt(obj.style.left)-1
  }else{
    if(obj.style.top==""){obj.style.top=0;}
   // alert(obj.style.top)
    if (parseInt(obj.style.top)<(0-(width/2)+6)){
      obj.style.top = 0
    }else{
      obj.style.top = parseInt(obj.style.top)-1
    }
  }
  timer = setTimeout ("moveLayer(obj, "+width+");", 25); 
}

// Get width and height of layer
function getOffset(obj, dim) 
{
  if(dim=="width")
  {
    oWidth = obj.offsetWidth
    return oWidth
  }  
  else if(dim=="height")
  {
    oHeight = obj.offsetHeight
    return oHeight
  }    
}

function stopScroller()
{
  clearTimeout(timer)  
}

function runScroller(){
  if(!isNS4){setWidth()}
}
////// END OF SCRIPT  ///////////////////////////////////////////////////////////////////
//-->

var nn=(document.layers)?true:false; //-- Netscape 4.7.1
var nn6=(document.getElementById)?true:false; //-- Netscape 6.0, FireFox 1.0.7
var ie=(document.all)?true:false;//-- IE 5.0

function popup()
{
if(nn) {	
		document.layers["popup"].visibility = "show";
	} 
	else if(ie) {	
		document.all["popup"].style.visibility = "visible";
	}
	else if(nn6)
	{
	document.getElementById("popup").style.visibility = "visible";
	}
	setTimeout("ukryj();", 5000);//--tutaj definiujemy czas ukazania się banneru
}



function ukryj() {
	if(nn) {	
	document.layers["popup"].visibility = "hide";
		 } 
	else if(ie) {
	document.all["popup"].style.visibility = "hidden";
			}
	else if(nn6) {
	document.getElementById("popup").style.visibility = "hidden";
			}
	
}

var warstwa=new Array();

warstwa[0]="euro2012_pol";
warstwa[1]="euro2012_ukr";
warstwa[2]="euro2012_pol_mar";
warstwa[3]="euro2012_ukr_mar";


function show_ver(g,r)
{
hideall();
if(nn) {	
	document.layers["makiet"].height=r;
		document.layers[g].visibility = "show";
	} 
	else if(ie) {	
		document.all[g].style.visibility = "visible";
		document.all["makiet"].style.height = r;
	}
	else if(nn6)
	{
	document.getElementById(g).style.visibility = "visible";
	document.getElementById("makiet").style.height = r;
	}
	
}



function hideall() {

for(i=0;i<=3;i++){
id1=warstwa[i];
	if(nn) {	
	document.layers[id1].visibility = "hide";
		 } 
	else if(ie) {
	document.all[id1].style.visibility = "hidden";
			}
	else if(nn6) {
	document.getElementById(id1).style.visibility = "hidden";
			}
	}
}






/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden; width: 193px; "><div class="innerDiv" style="position: absolute; width: 193px; " id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 193px; visibility: show;" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}