
function clearCookie(cookieName) {
	var today = new Date();
	document.cookie = cookieName+"=;expires="+today.toGMTString();
	}

function setCookie(cookieName,cookieValue) {
	var today = new Date();
	var expire = new Date();
	expire.setTime(today.getTime() + 3600000*24*3000);
	document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString();
	}
	
function writeCookie(cookieName,cookieValue) {
	if (cookieValue=="")
	  clearCookie (cookieName)
	else
	  setCookie (cookieName,cookieValue);
	}

function readCookie(cookieName) {
	if (cookieName=="") return "";
	var theCookie=""+document.cookie;
	var ind1=theCookie.indexOf(cookieName);
	if (ind1==-1) return "";
	var ind2=theCookie.indexOf(';',ind1);
	if (ind2==-1) ind2=theCookie.length;
	return unescape(theCookie.substring(ind1+cookieName.length+1,ind2));
	}

function readCookie2(cookieName,defaultValue) {
	if (cookieName=="") return defaultValue;
	var theCookie=""+document.cookie;
	var ind1=theCookie.indexOf(cookieName);
	if (ind1==-1) return defaultValue;
	var ind2=theCookie.indexOf(';',ind1);
	if (ind2==-1) ind2=theCookie.length;
	return unescape(theCookie.substring(ind1+cookieName.length+1,ind2));
	}

 function showImage (s3) {
  s1 = 'http://' + document.location.hostname + document.location.pathname;
  s1 = s1.substr(0,s1.length-8);
  s2 = '_0720/';
  if (readCookie('alb-res')=='1') s2 = '_1024/';
  if (readCookie('alb-res')=='2') s2 = '';
  if (readCookie('alb-frm')=='1') 
    window.open(s1 + s2 + s3, "")
  else 
    top.frames('r').document.all.slika.src = s1 + s2 + s3;
 }

 function showVideo (s3) {
  s1 = 'http://' + document.location.hostname + document.location.pathname;
  s1 = s1.substr(0,s1.length-8);
  top.frames('r').location.href = s1 + s3;
 }

 function Up(){
  if (history.length!=0)
   history.back()
  else 
   location = "../menu.asp";
 }