var calc_Height;
////////////////////////////////////
////////////////////////////////////
//Iframe Scroller script - loosely adapted from:
//Page Scroller (aka custom scrollbar)- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//adapted by jscheuer1 in http://www.dynamicdrive.com/forums
//This credit MUST stay intact for use

var thespeed=1 //Enter scroll speed in integer (Advised: 1-3)

var myspeed=0  //Set for initial scrolling, if desired (ex:3), otherwise 0

/////////////////Stop Editing///////////////
function scrollwindow(){
vsebina.scrollBy(0,myspeed)
}

function initializeIT(){
if (myspeed!=0){
scrollwindow()
}
}

if (document.all||document.getElementById)
setInterval("initializeIT()",5)
////////////////////////////////////
////////////////////////////////////
function calcHeight()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('vsebina').contentWindow.
      document.body.scrollHeight;
 //alert(the_height)
  //change the height of the iframe
  	if (the_height > 200 & calc_Height == 1) {
  		document.getElementById('vsebina').height=the_height;
	}
}

function raztegni()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('vsebina').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  	if (the_height > 200) {
  		document.getElementById('vsebina').height=the_height;
   		calc_Height = 1;
	}
}

function skrci()
{
  //change the height of the iframe
  document.getElementById('vsebina').height=200;
  calc_Height = 0;
}

////////////////////////////////////
////////////////////////////////////
//var revert = new Array();
//var inames = new Array('menu_novice', 'menu_koncerti', 'menu_vmedijih', 'menu_diskografija', 'menu_oroknbandu', 'menu_glasbainvideo', 'menu_fotogalerija','menu_trgovina');
var image_array = new Array();

// Preload
image_array[0] = new Image();
image_array[0].src = "slike/main.jpg";
