var now = new Date();
var godina = now.getFullYear();

var copyR = '("http://au.geocities.com/vukodar/Copyrights/index.htm","_new")';
var homeP = '("http://www.vukobratdarko.com","_new")';
var CR = "<b><span onclick='window.open"+copyR+"'>© <i>Copyrights</i> </span> &nbsp; <span onclick='window.open"+homeP+"'> Darko Vukobrat</span> &amp; Inner West CS 1999-"+godina+"</b>";

// Not to let this page be open in someone elses frame
function changePage(){
if (self.parent.frames.length == 0)
self.parent.location="index.html";
}

document.oncontextmenu= function() {return false}
// No Right mouse button Menu
document.onselect= function() {return false}
document.oncopy= function() {return false;}
// No text copy	 ???
document.onmousedown= function() {return false}
// No small images save and copy

function onKeyDown() 
{
  // current pressed key
  var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();

  if (event.ctrlKey && (pressedKey == "c" || 	
                        pressedKey == "a" || 	
                        pressedKey == "x" || 	
                        pressedKey == "v")) 	
						{
    // disable ctrlKey press porcessing
    event.returnValue = false;
  						}
} 

/* Sub level menu */
var cssmenuids=["cssmenu1"] //Enter id(s) of CSS Horizontal UL menus, separated by commas
var csssubmenuoffset=-1 //Offset of submenus from main menu. Default is 0 pixels.

function createcssmenu2(){
for (var i=0; i<cssmenuids.length; i++){
  var ultags=document.getElementById(cssmenuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+csssubmenuoffset+"px"
    	var spanref=document.createElement("span")
			spanref.className="arrowdiv"
			spanref.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;"
			ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
    	ultags[t].parentNode.onmouseover=function(){
					this.style.zIndex=100
    	this.getElementsByTagName("ul")[0].style.visibility="visible"
					this.getElementsByTagName("ul")[0].style.zIndex=0
    	}
    	ultags[t].parentNode.onmouseout=function(){
					this.style.zIndex=0
					this.getElementsByTagName("ul")[0].style.visibility="hidden"
					this.getElementsByTagName("ul")[0].style.zIndex=100
    	}
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", createcssmenu2, false)
else if (window.attachEvent)
window.attachEvent("onload", createcssmenu2)
/* Sub level menu End */