   if ( top != self )
   {
       top.location.href = unescape(window.location.pathname);
   }
   
   
var browser=navigator.appName;
var version=navigator.appVersion;
/* Damian disabled this cause it cases browser validation to fail for IE 7
function detectBrow() {

	if (browser.indexOf("Netscape") >= 0) {

		if (version.indexOf("3.") >= 0) {
			window.location="oldbrowser.asp";
		}
		if (version.indexOf("4.") >= 0) {
			window.location="oldbrowser.asp";
		}
	
}

	if (browser.indexOf("Microsoft") >= 0) {

		if (version.indexOf("3.") >= 0) {
			window.location="oldbrowser.asp";
		}
	
	}

	
}

if (window.location.href.indexOf("minreq") >= 0)

{

}
else
{
detectBrow();
}
*/
var win6 = null;
function NewWindowlog(mypage,myname,w,h){
{
if (win6 && !win6.closed) win6.close();
openit5(mypage,myname,w,h);
}
}
function openit5(mypage,myname,w,h){
var t = ((self.screen.availHeight/2) - (h/2));
var l = ((self.screen.availWidth/2) - (w/2));
settings ='width=' + w + ',height=' + h + ',left=' + l + ',top=' + t + ',toolbar=no,border=0,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=yes,resizable=yes,dependent=no'
win6 = window.open(mypage,myname,settings);
}
   
function showlayers(theLayer){ 
if (document.getElementById) { // if it's IE5 or NS6 use this syntax to access the visiblity attribute 
eval('document.getElementById(\"' + theLayer + '\").style.visibility = "visible"') 
} 
if(document.layers) { // if it's NS4 use this syntax to access the visiblity attribute 
eval('document.layers[\"' + theLayer + '\"].visibility = "visible"') 
} 
if (document.all) { // if it's IE4 use this syntax to access the visiblity attribute 
eval(theLayer + '.style.visibility = "visible"') 
} 
} 

function hidelayers(theLayer){ 
if (document.getElementById) { // if it's IE5 or NS6 use this syntax to access the visiblity attribute 
eval('document.getElementById(\"' + theLayer + '\").style.visibility = "hidden"') 
} 
if(document.layers) { // if it's NS4 use this syntax to access the visiblity attribute 
eval('document.layers[\"' + theLayer + '\"].visibility = "hidden"') 
} 
if (document.all) { // if it's IE4 use this syntax to access the visiblity attribute 
eval(theLayer + '.style.visibility = "hidden"') 
}  
} 

function donothing(){} 


var tipb = new Array(6) ;
tipb[0] = "n1";
tipb[1] = "n7";
tipb[2] = "n3";
tipb[3] = "n4";
tipb[4] = "n1";
tipb[5] = "n6";


var tipa = new Array(6) ;
tipa[0] = "n2";
tipa[1] = "n8";
tipa[2] = "n9";
tipa[3] = "n10";
tipa[4] = "n8";
tipa[5] = "n12";

var tip1 = new Array(6) ;
tip1[0] = "n13";
tip1[1] = "n14";
tip1[2] = "n15";
tip1[3] = "n16";
tip1[4] = "n5";
tip1[5] = "n11";

// tip1[0] = "computer1";
// tip1[1] = "computer16";
// tip1[2] = "computer13";
// tip1[3] = "computer3";
// tip1[4] = "computer7";
// tip1[5] = "news";

var now = new Date();
var sec = now.getSeconds();
var sec2 = sec % 6 ;
var sec3 = sec % 10 ;
GID1 = "<img src='images/" + tip1[sec % 6] + ".gif' vspace='0' width='103' height='83' alt='Netaca Learning Management System for e-learning, research, content authoring and student management' border='1' align='absmiddle'>" ; 
GID2 = "<img src='images/" + tipa[sec2 % 6] + ".gif' vspace='0' width='103' height='83' alt='Netaca Learning Management System for e-learning, research, content authoring and student management' border='1' align='absmiddle'>" ; 
GID3 = "<img src='images/" + tipb[sec3 % 6] + ".gif' vspace='0' width='103' height='83' alt='Netaca Learning Management System for e-learning, research, content authoring and student management' border='1' align='absmiddle'>" ; 


var ie5 = (document.all && document.getElementById);
var netscape6 = (!document.all && document.getElementById);

fade= Math.floor(Math.random()*tip1.length);
fade= Math.floor(Math.random()*tipa.length);
fade= Math.floor(Math.random()*tipb.length);

opacity1=0 ;
opacity2=0 ;
opacity3=0 ;


function display4(){
if(ie5) document.getElementById('fading1').filters.alpha.opacity = opacity1;
if(netscape6) document.getElementById('fading1').style.MozOpacity = opacity1 + '%';
if (opacity1<100) {
opacity1+=2
setTimeout("display4()",100);
}
}

function display1(){
if(ie5) document.getElementById('fading2').filters.alpha.opacity = opacity2;
if(netscape6) document.getElementById('fading2').style.MozOpacity = opacity2 + '%';
if (opacity2<100) {
opacity2+=2
setTimeout("display1()",50);
}
}
function display2(){
if(ie5) document.getElementById('fading3').filters.alpha.opacity = opacity3;
if(netscape6) document.getElementById('fading3').style.MozOpacity = opacity3 + '%';
if (opacity3<100) {
opacity3+=2
setTimeout("display2()",10);
}
}