/***********************************************
* Sliding Menu Bar Script- © Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
***********************************************/

var slidemenu_width='300px' //specify width of menu (in pixels)
var slidemenu_height='410px' //specify height of menu (in pixels)
var slidemenu_reveal='20px' //specify amount that menu should protrude initially
var slidemenu_top='15px'   //specify vertical offset of menu on page
var slidemenu_right='80px'   //specify horizontal offset of menu on page

var ns4=document.layers?1:0
var ie4=document.all
var ie7=(document.all && !window.opera && window.XMLHttpRequest)
var ns6=document.getElementById&&!document.all?1:0

if(ie7)	slidemenu_height='320px'

if (ie7){
document.write('<div id="slidemenubar2" style="top:'+((parseInt(slidemenu_height)-parseInt(slidemenu_reveal))*-1)+'px; right:'+slidemenu_right+'; width:'+slidemenu_width+';" onMouseover="pull()" onMouseout="draw()">')
} else if (ie4||ns6) {
document.write('<div id="slidemenubar2" style="top:'+((parseInt(slidemenu_height)-parseInt(slidemenu_reveal))*-1)+'px; right:'+slidemenu_right+'; width:'+slidemenu_width+';z-index:20;" onMouseover="pull()" onMouseout="draw()">')
} else if (ns4){
document.write('<style>\n#slidemenubar{\nwidth:'+slidemenu_width+';}\n<\/style>\n')
document.write('<layer id="slidemenubar" right=0 top='+slidemenu_top+' width='+slidemenu_width+' onMouseover="pull()" onMouseout="draw()" visibility=hide>')
}

var sitems=new Array()

///////////Edit below/////////////////////////////////

//siteitems[x]=["Item Text", "Optional URL associated with text"]
sitems[0]=["<img src=\"../images/gumbCut.gif\" width=\"47\" height=\"10\" /> Prika&#382;i gradivo po zaslonih"]
sitems[13]=["<img src=\"../images/gumbDown.gif\" width=\"47\" height=\"10\" /> Ob nalogah poka&#382;i gradivo"]
sitems[1]=["<img src=\"../images/gumbInft.gif\" width=\"47\" height=\"10\" /> Prika&#382;i gradivo skupaj na eni strani"]
sitems[14]=["<img src=\"../images/gumbUp.gif\" width=\"47\" height=\"10\" /> Skrij gradivo &ndash; prika&#382;i le naloge"]
sitems[2]=["<img src=\"../images/gumbFull.gif\" width=\"47\" height=\"10\" /> Raz&scaron;iri pogled na ves zaslon"]
sitems[5]=["<img src=\"../images/gumbNextI.gif\" width=\"47\" height=\"10\" /> Naslednje gradivo"]
sitems[3]=["<img src=\"../images/gumbFullNo.gif\" width=\"47\" height=\"10\" /> Obi&#269;ajni pogled"]
sitems[4]=["<img src=\"../images/gumbPrevI.gif\" width=\"47\" height=\"10\" /> Prej&scaron;nje gradivo"]
sitems[18]=["<img src=\"../images/gumbNast.gif\" width=\"47\" height=\"10\" /> Nastavitve"]
sitems[6]=["<img src=\"../images/gumbNavI.gif\" width=\"47\" height=\"10\" /> Navigacija"]
sitems[21]=["<img src=\"../images/gumbIsci.gif\" width=\"47\" height=\"10\" /> I&scaron;&#269;i gradivo po klju&#269;nih besedah "]
sitems[7]=["<img src=\"../images/gumbPrint.gif\" width=\"47\" height=\"10\" /> Natisni gradivo ali test"]
sitems[23]=["<img src=\"../images/gumbEum.gif\" width=\"47\" height=\"10\" /> E-um skupnost"]
sitems[8]=["<img src=\"../images/gumbScorm.gif\" width=\"47\" height=\"10\" /> Prenesi scorm paket"]
sitems[9]=["<img src=\"../images/gumbV.gif\" width=\"47\" height=\"10\" /> Re&scaron;i vajo"]
sitems[19]=["<img src=\"../images/gumbCmt.gif\" width=\"47\" height=\"10\" /> Komentiraj gradivo"]
sitems[10]=["<img src=\"../images/gumbN.gif\" width=\"47\" height=\"10\" /> Sestavi preverjanje"]
sitems[20]=["<img src=\"../images/gumbEmail.gif\" width=\"47\" height=\"10\" /> Po&scaron;lji komentar"]
sitems[11]=["<img src=\"../images/gumbT.gif\" width=\"47\" height=\"10\" /> Sestavi test s to&#269;kovanjem na koncu"]
sitems[16]=["<img src=\"../images/gumbX.gif\" width=\"47\" height=\"10\" /> Zapri okno"]
sitems[12]=["<img src=\"../images/gumbGen.gif\" width=\"47\" height=\"10\" /> Izdelaj test z izbranimi parametri"]
sitems[15]=["<img src=\"../images/gumbRefresh.gif\" width=\"47\" height=\"10\" /> Osve&#382;i naloge"]
sitems[17]=["<img src=\"../images/gumbCheck.gif\" width=\"47\" height=\"10\" /> Preveri pravilnost odgovorov"]
sitems[22]=["<img src=\"../images/gumbEumTim.gif\" width=\"47\" height=\"10\" /> E-um tim "]

//If you want the links to load in another frame/window, specify name of target (ie: target="_new")
var target=""

/////////////////////////////////////////////////////////

if (ie4||ns4||ns6||ie7){
for (i=0;i<sitems.length;i++){
if (sitems[i][1])
document.write('<a href="'+sitems[i][1]+'" target="'+target+'">')
document.write(sitems[i][0])
if (sitems[i][1])
document.write('</a>')
document.write('<br>\n')
}
document.write('<div align="right" style="height:10;background-color:#FFFFCC;border-left:0;border-right:0;">&nbsp;</div><div align="right" style="width:300;background-color:#DCAD19;"><img src=\"../images/gumbLegend2.gif\" width=\"47\" height=\"10\" /></div><div style="position:relative;left:12px;top:0px;">')
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (ns4){
document.slidemenubar.top=((parseInt(slidemenu_height)-parseInt(slidemenu_reveal))*-1)
document.slidemenubar.visibility="show"
setTimeout("window.onresize=regenerate",400)
}
}
window.onload=regenerate2

rightboundary=0
leftboundary=(parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1

topboundary=0
botboundary=(parseInt(slidemenu_height)-parseInt(slidemenu_reveal))*-1


if (ie4||ns6||ie7){
document.write('</div></div>')
themenu=(ns6||ie7)? document.getElementById("slidemenubar2").style : document.all.slidemenubar2.style
} else if (ns4){
document.write('</layer>')
themenu=document.layers.slidemenubar
}

function pull(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengine()",10)
}
function draw(){
clearInterval(pullit)
drawit=setInterval("drawengine()",10)
}

function pullengine(){
if ((ie4||ns6||ie7)&&parseInt(themenu.top)<topboundary)
themenu.top=parseInt(themenu.top)+10+"px"
else if(ns4&&themenu.top<topboundary)
themenu.top+=10
else if (window.pullit){
themenu.top=0
clearInterval(pullit)
}
}

function drawengine(){
if ((ie4||ns6||ie7)&&parseInt(themenu.top)>botboundary)
themenu.top=parseInt(themenu.top)-10+"px"
else if(ns4&&themenu.top>botboundary)
themenu.top-=10
else if (window.drawit){
themenu.top=botboundary
clearInterval(drawit)
}
}