

function init(){


            var real = true;

//		alert("test1");

//		if (null != top && null != top.location && null != top.location.href){
//		alert("test2");
//        	    if (-1==self.location.href.indexOf("ikola.dk"))
//	                        real = false;
	
 			
//			if (self == document)
//				real = false;

//			alert(self.location.href);
//        	    if (-1!=self.location.href.indexOf("images.google"))
	                        real = true;
//		alert(real);
			


//		}

//            if (false == real){

//                        self.document.ref = document.location.href;

//                        self.location.href="http://www.ikola.dk/index.html?main="+self.document.ref;

//			return;
//            }

            if (self == top){

                        self.document.ref = document.location.href;

                        self.location.href="http://www.ikola.dk/index.html?main="+self.document.ref;

			return;
            }


	inithref(document.body);
}

function inithref(node){
    var res = "";
    var ite;
    if (node==null)
      return res;
	if ((node.nodeName == "A") || (node.nodeName == "a")){
		target=node.href;
		ikolatarget = target.replace("http://ikola.dk","http://www.ikola.dk"); 
		newtarget='http://www.peak.dk/cgi-bin/peakcounter/filecounter2.cgi?ID==24291&-&fil=='+ikolatarget;
//		node.href=newtarget;
		if ((node.firstChild!=null)&&((node.firstChild.nodeName == "img") || (node.firstChild.nodeName=="IMG"))){
		node.firstChild.style.filter="alpha(opacity=80)";
		node.firstChild.style.MozOpacity ="0.3";
		node.firstChild.onmouseover=function() {high(this);};
		node.firstChild.onmouseout=function() {low(this);};
		node.firstChild.alt="Click for more images";

		}
	}

	ite = node.firstChild;
	while (ite) {
	    inithref(ite);
	    ite = ite.nextSibling;
	}
}


function high(which2){
	which2.style.filter="alpha(opacity=100)";
}

function low(which2){
		which2.style.filter="alpha(opacity=80)";
}

