			/* 98.js: javascript for 98 Group web site 05.04.07 */
	
	// Prevent being framed
	if (top.frames.length!=0)
	{
		top.location=self.document.location;
	}

	// Open resizable popUp window (width w, height h) in centre of existing window
	function openDetail(url, name, w, h) 
	{ 
	   var args = 'width=' + w + ','
	   + 'height=' + h + ','
	   + 'toolbar=0,'
	   + 'location=0,'
	   + 'directories=0,'
	   + 'status=yes,'
	   + 'menubar=0,'
	   + 'scrollbars=0,'
	   + 'resizable=yes';
	 
	   if (parseInt(navigator.appVersion) >= 4)
	   {
	      xposition = (screen.width - w)/2;
	      yposition = (screen.height - h)/2;
	  
	     args += ','
	              + 'screenx=' + xposition + ',' //NN
	              +  'screeny=' + yposition + ',' //NN
	              +  'left=' + xposition + ',' //IE
	              +  'top=' + yposition; //IE
	    }
	
		window.open(url, name, args);
	}

//  Equalizes div heights. id1, id2 - div ids, pad - div padding int value

	function equalize(id1, id2, pad) 
	{
		var div1 = document.getElementById(id1);
		var div2 = document.getElementById(id2);
		
		var h1 = parseInt(div1.offsetHeight);
		var h2 = parseInt(div2.offsetHeight);
		
		var p = pad;
		
		if(h1>h2)
		{
			h1 -= (2*p);
			div2.style.height = (h1 + 'px');
		}
		else
		{      
			h2 -= (2*p);
			div1.style.height = (h2 + 'px');
		}
	} 
	
	/*----------- simple id-based image swap ------------------*/	
	function imgSwap(imgID, imgSrc) 
	{
		 document.getElementById(imgID).src = imgSrc;
	}
	
	// show/hide for slide show - ids have to be of type pic1, pic2 etc, up to 'count'
	function showByDiv(id, count) 
	{
		if (document.getElementById)
		{
			var ele = document.getElementById(id);
			
			if (ele.style.display == "none")
			{
				for(i=1; i<count+1; i++)
				{
					document.getElementById('pic' + i).style.display="none";
				}
				
				ele.style.display = "";
			}
		}
	}