
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}




image01= new Image()
image01.src="../images/brazda_domov.jpg"
image02= new Image()
image02.src="../images/brazda_domov_over.jpg"
image03= new Image()
image03.src="../images/brazda_podjetje.jpg"
image04= new Image()
image04.src="../images/brazda_podjetje_over.jpg"
image05= new Image()
image05.src="../images/brazda_deli.jpg"
image06= new Image()
image06.src="../images/brazda_deli_over.jpg"
image07= new Image()
image07.src="../images/brazda_kontakt.jpg"
image08= new Image()
image08.src="../images/brazda_kontakt_over.jpg"

function rollover(imagename, newsrc){
document.images[imagename].src=newsrc.src
}

//Coloured fields
dom = (document.getElementById) ? 1 : 0;
function activatefield(what){
if (dom){
what.style.backgroundColor='#FFFFCC';
what.style.color='#000000';}
}
function deactivatefield(what){
if (dom){
what.style.backgroundColor='';
what.style.color='';}
}

//Image over link
	items = [
		{
			title: 'Popravila motorjev',
			image: '../../images/program/IMG_1549.jpg',
	  		link: 'html/product1.htm',
			linkname: 'Popravila motorjev'
		},

		{
			title: 'Rezervni deli motorjev',
			image: '../images/program/IMG_1552.jpg',
			link: 'html/product1.htm',
			linkname: 'Rezervni deli motorjev'
		},

		{
			title: 'Armirane gumijaste cevi hladilnih sistemov',
			image: '../images/program/IMG_1554.jpg',
			link: 'html/product1.htm',
			linkname: 'Armirane gumijaste cevi hladilnih sistemov'
		},

		{
			title: 'Komponente dovoda in vbrizganja goriva',
			image: '../images/program/IMG_1556.jpg',
			link: 'html/product1.htm',
			linkname: 'Komponente dovoda in vbrizganja goriva'
		},

		{
			title: 'Svetlobna telesa',
			image: '../images/program/IMG_1560.jpg',
			link: 'html/product1.htm',
			linkname: 'Svetlobna telesa'
		},

		{
			title: 'Elektro komponente',
			image: '../images/program/IMG_1561.jpg',
			link: 'html/product1.htm',
			linkname: 'Elektro komponente'
		},

		{
			title: 'Filtri vseh vrst, tudi po vzorcu',
			image: '../images/program/IMG_1564.jpg',
			link: 'html/product1.htm',
			linkname: 'Filtri vseh vrst, tudi po vzorcu'
		},

		{
			title: 'Elementi krmilnih volanskih sistemov',
			image: '../images/program/IMG_1565.jpg',
			link: 'html/product1.htm',
			linkname: 'Elementi krmilnih volanskih sistemov'
		},

		{
			title: 'Zavore',
			image: '../images/program/IMG_1576.jpg',
			link: 'html/product1.htm',
			linkname: 'Zavore'
		},

		{
			title: 'Deli menjalnikov, reduktorjev...',
			image: '../images/program/IMG_1578.jpg',
			link: 'html/product1.htm',
			linkname: 'Deli menjalnikov, bočnih reduktorjev...'
		},

		{
			title: 'Sklopke in njihovi deli',
			image: '../images/program/IMG_1580.jpg',
			link: 'html/product1.htm',
			linkname: 'Sklopke in njihovi deli'
		},

		{
			title: 'Tesnila, valji',
			image: '../images/program/IMG_1586.jpg',
			link: 'html/product1.htm',
			linkname: 'Tesnila, valji'
		},

		{
			title: 'Merilni instrumenti',
			image: '../images/program/IMG_1590.jpg',
			link: 'html/product1.htm',
			linkname: 'Merilni inštrumenti'
		},

		{
			title: 'Predcistilci zraka',
			image: '../images/program/IMG_1596.jpg',
			link: 'html/product1.htm',
			linkname: 'Predčistilci zraka'
		},

		{
			title: 'Izdelava visokotlacnih cevi',
			image: '../images/program/IMG_1598.jpg',
			link: 'html/product1.htm',
			linkname: 'Izdelava visokotlačnih cevi'
		},

		{
			title: 'Pogled na trgovino',
			image: '../images/program/IMG_1601.jpg',
			link: 'html/product3.htm',
			linkname: 'Pogled na trgovino'
		}

	];


	var menuhtml = '';
	for(var i in items) {
		with(items[i])
			menuhtml += "<span onMouseOver='items[" + i + "].show(" + i + ");' id='item" + i + "'><img id='itemImg" + i + "' src='../images/left_arrow.gif' style='visibility:hidden;'><a href='" + "'>" + title + "</a></span><br>";
		items[i].show = function(i) {
				for(var z in items) {
					document.getElementById('itemImg' + z).style.visibility = (z == i) ? 'visible' : 'hidden';
				}
				with(items[i]) {
			 /*	document.getElementById('sellink').innerHTML = "<a href='" + link + "'>" + linkname + "</a>";     */
					document.getElementById('selimage').innerHTML = "<img alt='Prodajni program' width='269' height='202' src='" + image + "'>";
				}

		}
	}


//Validation flash

function Generateobj(str)
{
 document.write(str);
}

if(document.getElementById&&!document.all){ns6=1;}else{ns6=0;}
var agtbrw=navigator.userAgent.toLowerCase();
var operaaa=(agtbrw.indexOf('opera')!=-1);
var head="display:''";
var folder='';

function expandit(curobj,hide){
if(document.getElementById(curobj)){
  folder=document.getElementById(curobj).style;

  }else{

if(ns6==1||operaaa==true){
	folder=curobj.nextSibling.nextSibling.style;
}else{
	folder=document.all[curobj.sourceIndex+1].style;
}
   }
if (folder.display=="none"){folder.display="";}else{folder.display="none";}
if(document.getElementById(hide)){
	hidden=document.getElementById(hide).style;
	if (hidden.display=="none"){hidden.display="";}else{hidden.display="none";}
}
}

function setFlashWidth(divid, newW){
	document.getElementById(divid).style.width = newW+"px";
}
function setFlashHeight(divid, newH){
	document.getElementById(divid).style.height = newH+"px";
}
function setFlashSize(divid, newW, newH){
	setFlashWidth(divid, newW);
	setFlashHeight(divid, newH);
}

