//	Prozor
var popWin = null;
 
function openBrWindow(theURL,winName,features) { 
	if(popWin != null) if(!popWin.closed) popWin.close();      
		popWin = window.open(theURL,winName,features);
}

//
//
var popupImgStyle = "popup";
function doAutomaticPopup(){
	cEl = document.getElementsByTagName("a");
	for(i = 0; i < cEl.length; i++){
		if(cEl[i].className == popupImgStyle){
			cEl[i].rel = "gb_image[]";   
		}
	}
}

function openPopupImage(){
	kontrola=1;
	win = window.open('/popups/popup.asp','proz','height=200,width=200');
	win.vrijednost = this.src;
}

function popupHover(){
	this.style.cursor = "pointer";
	hoverImage(this.src)
}

function hoverImage(src){
	//alert(src)
	return;
	try {
		element = document.createElement("<div style='position:absolute; width:100px; height=100px; background:#fdefde;' >");
	} catch (e) {
		element = document.createElement("div");
		element.setAttribute("style", "position:absolute; width:100px; height=100px; background:#fdefde;");
		//element.setAttribute("type", "radio");
		alert("MKO");
	}
}