
function articleInfCartDetailsOver(howMuch) {
	for(i=1; i<=howMuch; i++) {
		this["ob"+i] = document.getElementById("obj"+i);
		if(this["ob"+i])
		this["ob"+i].style.color='#f26522';
	}
	
}
function articleInfCartDetailsOut(howMuch) {
	for(i=1; i<=howMuch; i++) {
		this["ob"+i] = document.getElementById("obj"+i);
		if(this["ob"+i])
		this["ob"+i].style.color='#7bbb26';
	}
	
}
function showHideObj(ele, visible) {
		var obj = document.getElementById(ele);
		if(visible) {
			obj.style.display = "block";
		} else {
			obj.style.display = "none";
		}
	
}
/*
BARVE
004383 - temna modra
4c7ba8 - svetlejša modra
c5dcf1 - še svetlejša modra
bcd2ec -še ena modra
7bbb26 - temna zelena
8cc63f - zelena
e7ffc7 - svetla zelena
f26522 - oranžna
*/

function toolTipKosaraOver(obj) {
	obj.style.background='#fff url(images/dizajn/kosaraTitleOver.png) repeat-x bottom';
	obj.style.borderTop='#004383 1px solid';
	obj.style.borderBottom='#004383 1px solid';
	
}
function toolTipKosaraOut(obj) {
	obj.style.background='#c5dcf1 url(images/dizajn/kosaraTitle.png) repeat-x bottom';
	obj.style.borderTop='#fff 1px solid';
	obj.style.borderBottom='#4c7ba8 1px solid';
}



function thumbArtOver(file, idNum, cursor, borderr, bback, mColor) {
	var taNumOfCols = 5;
	var tmpidNum = idNum.substr(1,6);
	
	var thumbArtRowId = Math.ceil(tmpidNum/taNumOfCols)-1;
	var leftAllow = (thumbArtRowId*taNumOfCols)+1;
	var rightAllow = (thumbArtRowId*taNumOfCols)+taNumOfCols;
	var title = document.getElementById("artTitle"+idNum);
	var list = document.getElementById("artList"+idNum);
	var desc = document.getElementById("artDesc"+idNum);
	if(!mColor)
	var mColor = '#fff';
	
	if(cursor!="none")
	file.style.cursor=cursor;
	if(!bback)
	file.style.backgroundColor=mColor;
	file.style.paddingLeft='0';
	file.style.paddingRight='0';
	if(list)
	list.style.color='#f26522';
	if(title)
	title.style.color='#f26522';
	if(desc)
	desc.style.color='#444';
	
	if(tmpidNum!=leftAllow&&borderr) {
		file.style.borderLeft = '#bcd2ec 1px solid';
	} else  {
		file.style.paddingLeft = '1px';
	}
	if(tmpidNum!=rightAllow&&borderr) {
		file.style.borderRight = '#bcd2ec 1px solid';
	} else {
		file.style.paddingRight = '1px';
	}
	//closeToolTips(true);
	//document.getElementById(idNum).style.color= '#16cca7';
	//document.getElementById(idNum).style.fontWeight= 'bold';
}

function thumbArtOut(file, idNum) {
	var title = document.getElementById("artTitle"+idNum);
	var list = document.getElementById("artList"+idNum);
	var desc = document.getElementById("artDesc"+idNum);
	
	file.style.paddingLeft='1px';
	file.style.paddingRight='1px';
	file.style.backgroundColor='';
	file.style.borderLeft = 'none';
	file.style.borderRight = 'none';
	if(list)
	list.style.color='#bacfdc';
	if(title)
	title.style.color='#004383';
	if(desc)
	desc.style.color='#888';

}
function openLink(url, target) {
	
	if(!target)
	window.open(url, "_self")	
	else
	window.open(url, target)	

	//location.href='#'

}

function addClass(ele, className) {
	if (!ele || !className || (ele.className && ele.className.search(new RegExp("\\b" + className + "\\b")) != -1))
		return;
	ele.className += (ele.className ? " " : "") + className;
};
function removeClass(ele, className) {
	if (!ele || !className || (ele.className && ele.className.search(new RegExp("\\b" + className + "\\b")) == -1))
		return;
	ele.className = ele.className.replace(new RegExp("\\s*\\b" + className + "\\b", "g"), "");
};

