
	function popupWindow(url,w,h) {

		windowprops = "height="+h+",width="+w+",location=no,scrollbars=no,menubar=no,toolbar=no,resizable=no,titlebar=no,status=no"

	 	window.open(url, "Picture" + w + h, windowprops);
	}
	
	function popupPhotoWindow(url,w,h) {

		windowprops = "height="+h+",width="+w+",location=no,scrollbars=yes,menubar=no,toolbar=no,resizable=yes,titlebar=no,status=no"

	 	window.open(url, "Picture" + w + h, windowprops);
	}
	
	function popupScrolerWindow(url,w,h) {
		windowprops = "height="+h+",width="+w+",location=no,scrollbars=yes,menubar=no,toolbar=no,resizable=yes,titlebar=no,status=no";
	 	window.open(url, "Picture" + w + h, windowprops);
	}
	
	function autoResize() {
		if (window.document.getElementById("toptable").offsetWidth > 449) {
			window.resizeTo(window.document.getElementById("toptable").offsetWidth+10,500);
		}
		if (window.document.getElementById("toptable").offsetWidth < 450) {
			window.resizeTo(450,500);
		}
	}
		
	function imgDoubleError(jdocid,picid) 		 
	{
		jdocid.src = 'http://www.svetknjige.si/article_images/empty.gif'
	}
			
	function imgErrorFunc(jdocid) 
	{   
		jdocid.src = 'http://www.svetknjige.si/article_images/empty.gif';
	}
	function imgArticleErrorFunc(jdocid) 
	{   
		jdocid.src = 'http://www.svetknjige.si/article_images/empty.gif';
	}
	function expandNode(oSubItems)
	{
		if (oSubItems.style.display == "none")	{
			oSubItems.style.display = "block"
		
		} else {
		    oSubItems.style.display = "none";
		}
	}
	
	function checkCheckBox(f)	{
	
		if (f.agree.checked == false )
			{
				alert('Potrdite, da se strinjate s splošnimi pogoji!');
				return false;
			}
		else
			return true;
	}
	
	var stepx
	var stepy
	var counter
	var timerid
	<!-- Original:  Randy Bennett (rbennett@thezone.net) -->
	<!-- Web Site:  http//home.thezone.net/~rbennett/utility/javahead.htm -->

	<!-- This script and many more are available free online at -->
	<!-- The JavaScript Source!! http://javascript.internet.com -->

	<!-- Begin
	function setVariables() {
		stepy=0
		stepx=0
		counter=0
		imgwidth=400;  // logo width, in pixels
		imgheight=284;  // logo height, in pixels
		horz=".pixelLeft";
		vert=".pixelTop";
		docStyle="";
		styleDoc=".style";
		innerW="document.body.clientWidth";
		innerH="document.body.clientHeight";
		offsetX="document.body.scrollLeft";
		offsetY="document.body.scrollTop";
	}

	function checkLocation() {
	objectXY="branding";
	var availableX=eval(innerW);
	var availableY=eval(innerH);
	var currentX=eval(offsetX);
	var currentY=eval(offsetY);

	counter++

	x= availableX - (availableX / 2)
	//availableX-(imgwidth+30)+currentX;

	if (counter > 50)
	{

		stepy = 1
	}

	if (counter > 532)
	{
		stepy = 0
	}

	if (counter > 900)
	{
		stepy = -3
	}

	y= window.document.getElementById("branding").offsetTop + stepy
	if (counter < 50)
	{
		y = -245
	}
	//window.document.getElementById("mysize").offsetTop +50; 
	//availableY-(imgheight+600)+currentY;
	evalMove();
	//if (counter > 840)
	//{
	//	clearTimeout(timerid)
	//}
	//else
	//{
	timerid = setTimeout("checkLocation()",3);
	//}
	}
	function evalMove() {
	eval(docStyle + objectXY + styleDoc + horz + "=" + x);
	eval(docStyle + objectXY + styleDoc + vert + "=" + y);
	}
	// End -->
	
	
	function bookmark(bookmarkurl,bookmarktitle){
	if (document.all)
		window.external.AddFavorite(bookmarkurl,bookmarktitle)
	}