function op(URL, w, h, s)
	{
	var params = 'resizable=yes,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='
	params = params + s + ',copyhistory=0,width='
	params = params + w + ',height=' + h
	var date = new Date()
	var second = date.getSeconds()
	var windowname = 'window'+second
	name = window.open(URL, windowname, params);
	}

k=document;
v=Date;
x=false;
z=Array;
af=Math.floor;
ag=RegExp;
b=new z(8);
s=new z("null","aboutus","products","services","gallery","references","news","contactus");
aa=new z(11);
ab=10;
t=0;
u=0;
n=0;
o=new v();
h=5;
m=385;
c=0;
w=x; // is the mouseover an image
var title; // temp image name
p=0;

// make larger
function d(ac) 
	{
	c=ac;
	o=new v();

	// let's hide them all...
	for(var i=1; i<8; i++)
		{
		k.getElementById('i'+i).style.visibility ='hidden';
		}

	k.getElementById('i'+ac).style.visibility='visible';
	
	setTimeout("gidle()",20);
	}

// make smaller
function e(ac)
	{
	c=0;
	w=x;
	o=new v();
	setTimeout("gidle()",20);
	}
	
function ae()
	{
	for(var j=1; j<b.length; j++)
		{
		b[j]=25
		k.getElementById('i'+j).style.visibility ='hidden';
		}
	title=k.getElementById('imageTitle');
	
	for(i=0; i<b.length; i++)
		{
		aa[i]=new Image();
		aa[i].src=s[i+1]+".gif"
		}
	setTimeout("gidle()",20);
	}

function gidle()
	{
	var l=0;
	for(var i=1; i<b.length; i++)
		{
		var imagename="image"+i;
		var imageElem=k.getElementById(imagename);
		if(c!=i)
			{
			if(b[i]>25)
				{
				b[i]-=h;
				if(b[i]<=25)
					{
					b[i]=25;
					k.getElementById('i'+i).style.visibility ='hidden';
					}
				imageElem.height=b[i];
				p=1
				}
			l+=b[i]
			}
		}

	if(c!=0&&b[c]<50)
		{
		imagename="image"+c;
		imageElem=k.getElementById(imagename);
		b[c]+=h;
		p=1;
		if(b[c]>50)
			{
			b[c]=50
			}
		l+=b[c];
		if(l<m)
			{
			b[c]+=m-l;
			if(b[c]>50)
				{
				b[c]=50
				}
			l=m
			}
		imageElem.height=b[c];
		}
	m=l;
	var ad=new v();
	ab=ad.getTime()-o.getTime();
	o=ad;
	t+=ab;
	u++;
	n=t/u;
	h=5;
	if(u>4)
		{
		if(n>30)
			{
			h=10
			}
		if(n>60)
			{
			h=15
			}
		if(n>90)
			{
			h=20
			}
		}
	if(p)
		{
		setTimeout("gidle()",20);
		p=0
		}
	}

function MM_swapImgRestore() { //v3.0
  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 MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_preloadImages() 
	{ //v3.0
	var d=document; 
	if(d.images)
		{ 
		if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.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 MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}