function rollover( imageobj )
{
	var mystring = imageobj.src;

	if( mystring.indexOf( ".gif" ) >= 1)
	{
		imageobj.src = mystring.replace( /\.gif/gi, '_on.gif' );		
	}
	
	else
	{
		imageobj.src = mystring.replace( /\.jpg/gi, '_on.jpg' );		
	}
}


function rollout( imageobj )
{
	var mystring = imageobj.src;
	if( mystring.indexOf( ".gif" ) >= 1 )
	{
		imageobj.src = mystring.replace( /\_on\.gif/gi, '.gif' );
	}
	else
	{
		imageobj.src = mystring.replace( /\_on\.jpg/gi, '.jpg' );
	}
}


function bgover( obj, level )
{
	var mystring = obj.style.backgroundImage;
	
	switch( level ) 
	{
		case 1: obj.style.backgroundImage = 'url(/img/subnav/level1_over.gif)'; break;
		case 2: obj.style.backgroundImage = 'url(/img/subnav/level2_over.gif)'; break;
	}
}

function bgout( obj, level )
{
	var mystring = obj.style.backgroundImage;

	switch( level ) 
	{
		case 1: obj.style.backgroundImage = 'url(/img/subnav/level1.gif)'; break;
		case 2: obj.style.backgroundImage = 'url(/img/subnav/level2.gif)'; break;
	}
}



function setBookmark(url,str)
{
	if(str=='')str=url;
	if (document.all)window.external.AddFavorite(url,str);
	else alert('Press CTRL and D to add a bookmark to:\n"'+url+'".');
} 


function printpage()
{
	var winwidth	= ( screen.width  > 800 ) ? '820' : '750';
	var winheight	= ( screen.height > 600 ) ? '620' : '450';
	var winleft	= ( screen.availWidth  - 10 - winwidth  ) / 2;
	var wintop	= ( screen.availHeight - 20 - winheight ) / 2;

	printable = window.open('/engine/print/'+escape(location.href), 'printable', 'toolbar=yes, scrollbars=yes, resizable=yes, menubar=yes, status=yes, directories=no, location=no, top=' + wintop + ',left=' + winleft + ', screenY=' + wintop + ',screenx=' + winleft +', width='+winwidth+', height='+winheight);
	printable.focus();
	printable.print();
}

function emailpage()
{
	var winwidth	= '450';
	var winheight	= '510';
	var winleft	= ( screen.availWidth  - 10 - winwidth  ) / 2;
	var wintop	= ( screen.availHeight - 20 - winheight ) / 2;

	email = window.open('/engine/email/'+escape(location.href), 'email', 'toolbar=no, scrollbars=no, resizable=no, menubar=no, status=yes, directories=no, location=no, top=' + wintop + ',left=' + winleft + ', screenY=' + wintop + ',screenx=' + winleft +', width='+winwidth+', height='+winheight);
	email.focus();
}