/*	NB-NET	*/

var nbcontent=
'<BR><span class="style21">OBJAVLJEN JE NOVI RASPORED KREATIVNIH RADIONICA<p></span><span class="style23">20.03.2011</span><p><hr width=90% size=1 color="#FF6600">'
+
'<BR><span class="style21">OBJAVLJENA SU NA&#352;A AUTORSKA PRAVA<p></span><span class="style23">25.11.2010</span><p><hr width=90% size=1 color="#FF6600">'

;

var nbboxheight=290;        // BACKGROUND BOX HEIGHT IN PIXELS.
var nbboxwidth=200;         // BACKGROUND BOX WIDTH IN PIXELS.
var nbboxcolor="#FFFFFF";   // BACKGROUND BOX COLOR.
var nbspeed=50;             // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var nbpixelstep=1;          // PIXELS "STEPS" PER REPITITION.
var nbgodown=false;         // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE
var nbpauseOnmouseover=true; //SET TO "true" TO ENABLE PAUSE WHEN MOUSEOVER, "false" TO DISABLE IT.

// DO NOT EDIT BEYOND THIS POINT

var outer,inner,elementheight,ref,refX,refY;
var nbw3c=(document.getElementById)?true:false;
var nbns4=(document.layers)?true:false;
var nbie4=(document.all && !nbw3c)?true:false;
var nbie5=(document.all && nbw3c)?true:false;
var nbns6=(nbw3c && navigator.appName.indexOf("Netscape")>=0)?true:false;
var nbtxt='';
var nbgoscroll=true;
if(nbns4){
nbtxt+='<table cellpadding=0 cellspacing=0 border=0 height='+nbboxheight+' width='+nbboxwidth+'><tr><td>';
nbtxt+='<ilayer name="ref" bgcolor="'+nbboxcolor+'" width='+nbboxwidth+' height='+nbboxheight+'></ilayer>';
nbtxt+='</td></tr></table>'
nbtxt+='<layer name="outer" bgcolor="'+nbboxcolor+'" visibility="hidden" width='+nbboxwidth+' height='+nbboxheight+' '+((nbpauseOnmouseover)? 'onmouseover="nbgoscroll=false" onmouseout="nbgoscroll=true"':'')+'>';
nbtxt+='<layer  name="inner"  width='+(nbboxwidth-4)+' height='+(nbboxheight-4)+' visibility="hidden" left="2" top="2" >'+nbcontent+'</layer>';
nbtxt+='</layer>';
}else{
nbtxt+='<div id="ref" style="position:relative; width:'+nbboxwidth+'; height:'+nbboxheight+'; background-color:'+nbboxcolor+';"></div>';
nbtxt+='<div id="outer" style="position:absolute; width:'+nbboxwidth+'; height:'+nbboxheight+'; visibility:hidden; background-color:'+nbboxcolor+'; overflow:hidden"  '+((nbpauseOnmouseover)? 'onmouseover="nbgoscroll=false" onmouseout="nbgoscroll=true"':'')+'>';
nbtxt+='<div id="inner"  style="position:absolute; visibility:hidden; left:2px; top:2px; width:'+(nbboxwidth-4)+'; overflow:hidden; cursor:default;" '+((nbpauseOnmouseover)? 'onmouseover="nbgoscroll=false" onmouseout="nbgoscroll=true"':'')+'>'+nbcontent+'</div>';
nbtxt+='</div>';
}
document.write(nbtxt);
nbtxt='';

function getElHeight(el){
if(nbns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top;
else if(nbie4||nbie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height):parseInt(el.offsetHeight);
}

function getPageLeft(el){
var x;
if(nbns4)return el.pageX;
if(nbie4||nbw3c){
x = 0;
while(el.offsetParent!=null){
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}

function getPageTop(el){
var y;
if(nbns4)return el.pageY;
if(nbie4||nbw3c){
y=0;
while(el.offsetParent!=null){
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}

function scrollbox(){
if(nbgoscroll){
if(nbns4){
inner.top+=(nbgodown)? nbpixelstep: -nbpixelstep;
if(nbgodown){
if(inner.top>nbboxheight)inner.top=-elementheight;
}else{
if(inner.top<2-elementheight)inner.top=nbboxheight+2;
}}else{
inner.style.top=parseInt(inner.style.top)+((nbgodown)? nbpixelstep: -nbpixelstep)+'px';
if(nbgodown){
if(parseInt(inner.style.top)>nbboxheight)inner.style.top=-elementheight+'px';
}else{
if(parseInt(inner.style.top)<2-elementheight)inner.style.top=nbboxheight+2+'px';
}}}}

window.onresize=function(){
if(nbns4)setTimeout('history.go(0)', 400);
else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
}}

window.onload=function(){
outer=(nbns4)?document.layers['outer']:(nbie4)?document.all['outer']:document.getElementById('outer');
inner=(nbns4)?outer.document.layers['inner']:(nbie4)?document.all['inner']:document.getElementById('inner');
ref=(nbns4)?document.layers['ref']:(nbie4)?document.all['ref']:document.getElementById('ref');
elementheight=getElHeight(inner);
if(nbns4){
outer.moveTo(getPageLeft(ref),getPageTop(ref));
outer.clip.width=nbboxwidth;
outer.clip.height=nbboxheight;
inner.top=(nbgodown)? -elementheight : nbboxheight-2;
inner.clip.width=nbboxwidth-4;
inner.clip.height=elementheight;
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
inner.style.top=((nbgodown)? -elementheight : nbboxheight)+'px';
inner.style.clip='rect(0px, '+(nbboxwidth-4)+'px, '+(elementheight)+'px, 0px)';
outer.style.visibility="visible";
inner.style.visibility="visible";
}
setInterval('scrollbox()',nbspeed);
}

