<!--
/* code created by Juxtaprose - http://www.juxtaprose.com
(c) 2006. Licensed for use under
Creative Commons Attribution-NonCommercial-ShareAlike 2.0
http://creativecommons.org/licenses/by-nc-sa/2.0/
Please preserve this notice as a means of attribution. Thanks!
*/

var max=8;
var cnt=0;
var smPre = "sm";
var lgPre = "lg";
var infoPre = "info";
var offStyle = '1px solid #DCD4A8';
var onStyle = '1px solid #fff'; 

function show(idx) {
	for(i=1;i<=cnt;i++)
	{ 
		if (i==idx)
		{
			vis = 'visible';
			dis = 'block';
			sty = onStyle;			
		}
		else 
		{
			vis = 'hidden';
			dis = "none";
			sty = offStyle;			
		}			
		document.getElementById(lgPre+i).style.display=dis;
		document.getElementById(smPre+i).style.border=sty;		
		document.getElementById(infoPre+i).style.display=dis;		
	}
}

function showEvent() {
	idx = this.id.substring(smPre.length);
	show(idx);
	return false;
}
	
window.onload = function() {
	for(j=1;j<=max;j++) {
		sm = document.getElementById(smPre+j);
		if (sm!=null) {
			cnt = j;
			sm.onmouseover = showEvent;
			sm.onfocus = showEvent;			
			sm.onclick = showEvent;
		} else {
			break;
		}		
	}
	if (cnt>=1) show(1);
}
	
//-->
