function show_image(img,i_width,i_height)
	{
document.getElementById("show_body_div").style.display='none';
document.getElementById("body_image").src=img;
document.getElementById("body_image").width=i_width;
document.getElementById("body_image").height=i_height;
document.getElementById("show_image_div").style.display='block';
	}


function close_image()
	{
document.getElementById("show_image_div").style.display='none';
document.getElementById("body_image").src='./design/spacer.gif';
document.getElementById("body_image").width=1;
document.getElementById("body_image").height=1;
document.getElementById("show_body_div").style.display='block';
	}



function news(id)
	{
ShortNews=document.getElementById('short_'+id);
FullNews=document.getElementById('full_'+id);
var check=ShortNews.style.display;
if(check=="block")
	{
ShortNews.style.display='none';
FullNews.style.display='block';
	}else{
FullNews.style.display='none';
ShortNews.style.display='block';
	}
	}




function number_format(a, b, c, d)
	{
a = Math.round(a * Math.pow(10, b)) / Math.pow(10, b);
e = a + '';
f = e.split('.');
if(!f[0])				{f[0] = '0';	}
if(!f[1])				{f[1] = ''; 	}
if(f[1].length < b)			{g = f[1];
for (i=f[1].length + 1; i <= b; i++)	{g += '0';	}
					 f[1] = g;	}
if(d != '' && f[0].length > 3)
	{
h = f[0];
f[0] = '';
for(j = 3; j < h.length; j+=3)
	{
i = h.slice(h.length - j, h.length - j + 3);
f[0] = d + i +  f[0] + '';
	}
j = h.substr(0, (h.length % 3 == 0) ? 3 : (h.length % 3));
f[0] = j + f[0];
	}
c = (b <= 0) ? '' : c;
return f[0] + c + f[1];
	}




function long_load()
	{
setTimeout("load_page()",5000);
	}






function load_page()
	{
LOAD=document.getElementById("loading");
LOAD.style.display='none';
///document.body.style.overflowY='auto';
///document.body.style.overflowX='auto';
///document.body.style.margin='0';
	}







function replace(id,what)
	{
insert_into=document.getElementById(id);
insert_into.innerHTML=what;
	}







function preload() 
	{
var d=document;
if(d.images)
	{
if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=preload.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}
	}
	}
function back() 
	{
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
function find(n, d) 
	{
var p,i,x;
if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length)
	{
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
	}
if(!(x=d[n])&&d.all) x=d.all[n];
for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n);
return x;
	}
function change()
	{
var i,j=0,x,a=change.arguments;
document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=find(a[i]))!=null)
	{
document.MM_sr[j++]=x;
if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
	}
	}












function show_page(inc_path,inc_width,inc_height,inc_scroll)
	{
if(browser=="iexplorer"){inc_width=parseInt(inc_width)+10;inc_height=parseInt(inc_height)+50;}
if(browser=="iexplorer" || browser=="iexplorer7")
	{
var sFeatures="dialogHeight: " + inc_height + "px; dialogWidth: " + inc_width + "px;edge:sunken;status:yes;scroll:"+inc_scroll;
window.showModalDialog(inc_path, "", sFeatures);
	}else{
window.open(inc_path,'newwin','top=0, left=0, menubar=0, toolbar=0, location=0, directories=0, status=0, scrollbars='+inc_scroll+', resizable=0, width='+inc_width+', height='+inc_height);
	}
	}



