if (document.images)
{
  pic1= new Image(225,33);
  pic1.src="/images/dewit_left-ON.gif";

  pic2= new Image(225,33);
  pic2.src="/images/dewit_right-ON.gif";

  pic3= new Image(133,164);
  pic3.src="/images/bjk.gif";

  pic4= new Image(140,65);
  pic4.src="/images/with.gif";

  pic5= new Image(342,34);
  pic5.src="/images/nip.gif";
}

var dewittabs={
	subcontainers:[], last_accessed_tab:null,

	revealsubmenu:function(curtabref){
	this.hideallsubs()
	if (this.last_accessed_tab!=null)
		this.last_accessed_tab.className=""
	if (curtabref.getAttribute("rel")) //If there's a sub menu defined for this tab item, show it
	document.getElementById(curtabref.getAttribute("rel")).style.display="block"
	curtabref.className="current"
	this.last_accessed_tab=curtabref
	},

	hideallsubs:function(){
	for (var i=0; i<this.subcontainers.length; i++)
		document.getElementById(this.subcontainers[i]).style.display="none"
	},


	init:function(menuId, selectedIndex, innerId){
	var tabItems=document.getElementById(menuId).getElementsByTagName("a")
		for (var i=0; i<tabItems.length; i++){
			if (tabItems[i].getAttribute("rel"))
				this.subcontainers[this.subcontainers.length]=tabItems[i].getAttribute("rel") //store id of submenu div of tab menu item
			if (i==selectedIndex){ //if this tab item should be selected by default
				tabItems[i].className="current"
				this.revealsubmenu(tabItems[i])
			}
		tabItems[i].onmouseover=function(){
		dewittabs.revealsubmenu(this)
		}
		} //END FOR LOOP
        if(innerId > 0){
            styleObj = document.getElementById("e" + innerId).style;
            styleObj.color="#7B93A0";
        }
	}

}
var newwindow;
function poptastic(url){
    newwindow=window.open(url,'name','height=555,width=428,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
    if (window.focus) {newwindow.focus()}
}
function poptastic2(url){
    newwindow=window.open(url,'name','height=500,width=500,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
    if (window.focus) {newwindow.focus()}
}
function dew(url){
    newwindow=window.open(url,'name','height=700,width=650,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
    if (window.focus) {newwindow.focus()}
}

function dow(url){
    newwindow=window.open(url,'name','height=590,width=600,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
    if (window.focus) {newwindow.focus()}
}