/* 
   ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   :: by Webdev@xs4all.nl - Pim Rijpsma - NL                 ::
   ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
*/

//framebuster
if (window!= top)top.location.href=location.href;

//preload
image1 = new Image();
image1.src = "../images/bullet.gif";

//centerpop
var win = null;
function centerpop(mypage,myname,w,h,scroll,size){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable='+size+''
win = window.open(mypage,myname,settings)
}
//swap layer
function showCase1(id,display) {
 document.getElementById(id).style.display=display;
}
function showCase2(id,display) {
 document.getElementById(id).style.display=display;
}
// sel.state nav
var highlightedRow = ''; 
function highlight(cubeID) { 
	unHighlight(); 
		el = document.getElementById(cubeID); 
		el.className  = 'selstate'; 
	highlightedRow = cubeID; 
	} 
function unHighlight() { 
	if (highlightedRow != '') { 
		el = document.getElementById(highlightedRow); 
		el.className  = ''; 	}
}
function set(id){			
	switch(id){				
		case 1: slideEm('glideDiv0');showCase1('case_1','none');showCase2('case_2','none');highlight('nav1'); break;		
		case 2: slideEm('glideDiv1');showCase1('case_1','none');showCase2('case_2','none');highlight('nav2'); break;					
		case 3: slideEm('glideDiv2');showCase1('case_1','block');showCase2('case_2','none');highlight('nav3'); break;			
		case 4: slideEm('glideDiv3');showCase1('case_1','none');showCase2('case_2','none');highlight('nav4'); break;			
		case 5: slideEm('glideDiv4');showCase1('case_1','none');showCase2('case_2','block');highlight('nav5'); break;
		}
	}
/* incl .js and/or css files */
var ua		= navigator.userAgent;
var opera	= /opera [56789]|opera\/[56789]/i.test(ua);
var ie		= !opera && /msie [56789]/i.test(ua);		// preventing opera to be identified as ie
var moz		= !opera && /mozilla\/[56789]/i.test(ua);	// preventing opera to be identified as mz

if (window.pathToRoot == null)
	pathToRoot = "scripts/";

//if (ie || moz)
document.write('<scr'+'ipt type="text/javascript" src="' + pathToRoot + 'dw_lib.js"><\/scr'+'ipt>');
document.write('<scr'+'ipt type="text/javascript" src="' + pathToRoot + 'dw_glide.js"><\/scr'+'ipt>');
document.write('<scr'+'ipt type="text/javascript" src="' + pathToRoot + 'dw_settings.js"><\/scr'+'ipt>');
