var wwwroot="http://"+location.host+self.location.pathname;

//var b1_a=wwwroot+'images/but01.gif';
var b1_b=wwwroot+'images/but01_b.gif';
//var b2_a=wwwroot+'images/but02.gif';
var b2_b=wwwroot+'images/but02_b.gif';
//var b3_a=wwwroot+'images/but03.gif';
var b3_b=wwwroot+'images/but03_b.gif';
//var b4_a=wwwroot+'images/but04.gif';
var b4_b=wwwroot+'images/but04_b.gif';
//var b5_a=wwwroot+'images/but05.gif';
var b5_b=wwwroot+'images/but05_b.gif';
//var b6_a=wwwroot+'images/but06.gif';
var b6_b=wwwroot+'images/but06_b.gif';


//alert(b1_a+'\n'+b1_b)

function init()
	{
	cacheOff();	
	"MM_preloadImages("+b1_b+','+b2_b+','+b3_b+','+b4_b+','+b5_b+','+b6_b+")";	
	}


   
function cacheOff()
    {
    if (ver >= 4)
    	{
    	cache.visibility = HIDDEN;
		cache.display='none';
    	}
    }


//loading overlay  //plus add style to .css for cache
var ver = navigator.appVersion.substring(0,1)
    if (ver >= 4)
    	{
    	document.write('<DIV ID="cache"><TABLE WIDTH=400 BGCOLOR=#000000 BORDER=0 CELLPADDING=2 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><TABLE WIDTH=100% BGCOLOR=#FFFFFF BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD ALIGN=center VALIGN=middle><FONT FACE="Arial, Verdana" SIZE=4><B><BR><img src="images/loading.gif" align="absmiddle"> Please Wait, Loading...<BR><BR></B></FONT></TD> </TR></TABLE></TD> </TR></TABLE></DIV>');
		
    	var navi = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4);
    	var HIDDEN = (navi) ? 'hide' : 'hidden';
    	var VISIBLE = (navi) ? 'show' : 'visible';
    	var cache = (navi) ? document.cache : document.all.cache.style;
    	theWidth  = document.body.clientWidth;
		TheHeight = document.body.clientHeight;
		sWidth = (navi) ? window.innerWidth : document.body.clientWidth;
		sHeight = (navi) ? window.innerHeight : document.body.clientHeight;
		cache.left = (sWidth / 2) - (200);
		cache.top = (sHeight / 2) - (200);
    	cache.visibility = HIDDEN;
    	}		
		
//
function HideWait()
	{
	var thediv=document.getElementById('displaybox');
		thediv.style.display = "none";
		thediv.style.visibility='hidden';
	//alert('hide');
	}	
//	
function ShowWait(strwait)
	{
	var thediv=document.getElementById('displaybox');
	//alert('ShowWait');
	if (strwait=='' || strwait==null)
		{
		strwait='<br><br><br><br><br><br><br><br><table align="center" width="" height="" bgcolor="#FFFFFF" border="0" style="vertical-align:middle; color:#0033FF; font-size:18px; font-weight:bold" id="noprint"><tr><td width="95%"><img src="images/ga1.jpg" width="275" height="244" align="absmiddle" ></td><td></td></tr></table></div>';
		}
	//alert(strwait);
	thediv.innerHTML=strwait;
	thediv.style.display = "block";
	thediv.style.visibility='visible';
	//
	}

