function initButtons()
{
	b0_but = new button_obj();
	b0_but._name = "b0";
	b0_but._on = "b0_on";
	b0_but._off = "b0_off";
	b0_but._down = "b0_down";
	b0_but._onImage = "/images/gnav_over_c250_celebrates.gif";
	b0_but._offImage = "/images/gnav_norm_c250_celebrates.gif";
	b0_but._downImage = "/images/gnav_down_c250_celebrates.gif"
	b0_but.Load();
	
	b1_but = new button_obj();
	b1_but._name = "b1";
	b1_but._on = "b1_on";
	b1_but._off = "b1_off";
	b1_but._down = "b1_down";
	b1_but._onImage = "/images/gnav_over_c250_now.gif";
	b1_but._offImage = "/images/gnav_norm_c250_now.gif";
	b1_but._downImage = "/images/gnav_down_c250_now.gif";
	b1_but.Load();
	
	b2_but = new button_obj();
	b2_but._name = "b2";
	b2_but._on = "b2_on";
	b2_but._off = "b2_off";
	b2_but._down = "b2_down";
	b2_but._onImage = "/images/gnav_down_c250_perspectives.gif";
	b2_but._offImage = "/images/gnav_norm_c250_perspectives.gif";
	b2_but._downImage = "/images/gnav_over_c250_perspectives.gif";
	b2_but.Load();
	
	b3_but = new button_obj();
	b3_but._name = "b3";
	b3_but._on = "b3_on";
	b3_but._off = "b3_off";
	b3_but._down = "b3_down";
	b3_but._onImage = "/images/gnav_over_c250_forum.gif";
	b3_but._offImage = "/images/gnav_norm_c250_forum.gif";
	b3_but._downImage = "/images/gnav_down_c250_forum.gif";
	b3_but.Load();
	
	b4_but = new button_obj();
	b4_but._name = "b4";
	b4_but._on = "b4_on";
	b4_but._off = "b4_off";
	b4_but._down = "b4_down";
	b4_but._onImage = "/images/gnav_over_c250_events.gif";
	b4_but._offImage = "/images/gnav_norm_c250_events.gif";
	b4_but._downImage = "/images/gnav_down_c250_events.gif";
	b4_but.Load();
	
	b5_but = new button_obj();
	b5_but._name = "b5";
	b5_but._on = "b5_on";
	b5_but._off = "b5_off";
	b5_but._down = "b5_down";
	b5_but._onImage = "/images/gnav_over_c250_to_go.gif";
	b5_but._offImage = "/images/gnav_norm_c250_to_go.gif";
	b5_but._downImage = "/images/gnav_down_c250_to_go.gif";
	b5_but.Load();
	
	b6_but = new button_obj();
	b6_but._name = "b6";
	b6_but._on = "b6_on";
	b6_but._off = "b6_off";
	b6_but._onImage = "/images/gnav_over_register.gif";
	b6_but._offImage = "/images/gnav_norm_register.gif";
	b6_but._downImage = "/images/gnav_down_register_go.gif";
	b6_but.Load();
}


function button_obj()
{
	this._name="";
	this._on="";
	this._off=""
	this._onImage="";
	this._offImage="";
}


//load images
button_obj.prototype.Load = function()
{
	//preload on image
	eval(this._on+' = new Image()')
	eval(this._on+'.src = "'+this._onImage+'"')
	
	//preload off image
	eval(this._off+' = new Image()')
	eval(this._off+'.src = "'+this._offImage+'"')
	
	//preload down image
	eval(this._down+' = new Image()')
	eval(this._down+'.src = "'+this._downImage+'"')
}

//roll over
button_obj.prototype.Over = function()
{
	changeImage(this._name,this._on)		
}

//roll out
button_obj.prototype.Out = function()
{
	changeImage(this._name,this._off)
}

//down
button_obj.prototype.Down = function()
{
	changeImage(this._name,this._down)
}


//image swapping within layers
//laname - name of layer
//imgDocId - id of image object
//imgObjName - name of image to be replaced
function changeImage(imgDocID,imgObjName)
{
  	document.images[imgDocID].src=eval(imgObjName + ".src");
}

//opens popupwindow
function popup(url,width_int,height_int)
{
	var popup;
	
	if(!width_int)
	{
		width_int = 410;
		height_int = 350;
	}	
	
	
	popup=window.open(url,"popup","fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+width_int+",height="+height_int); 
	popup.focus();
}

//opens popupwindow
function udarPopup(url,width_int,height_int)
{
	var popup;
	
	if(!width_int)
	{
		width_int = 560;
		height_int = 450;
	}	
	var options = "fullscreen=no,toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+width_int+",height="+height_int;
	
	
	popup=window.open(url,"popup",options); 
	popup.focus();
}

//opens DKV POPUPs
function openWin(url,name,width,height) 
{
	w = width;
	if(w == null) w = 500;
	h = height;
	if(h == null) h = 550;
	topWin = (screen.availHeight - h) / 2;
	leftWin = (screen.availWidth - w) / 2;
	props="status=yes,resizable=yes,scrollbars=yes,width="+w+",height="+h+",top="+topWin+",screenY="+topWin+",left="+leftWin+",screenX="+leftWin;	
	var win = window.open(url,name,props);
	win.focus();	
}