<!--
function toggle_visibility(id) {
	var e = document.getElementById(id);

	/*if(e.style.display == 'block')
	{

		for(i=0; i<divArray.length;i++)
		{
			e = document.getElementById(divArray[i]);
			e.style.display = 'none';
		}
	      //e.style.color='#ff9900';

	}
	else
	{*/
		for(i=0; i<divArray.length;i++)
		{
			e = document.getElementById(divArray[i]);
			e.style.display = 'none';
		}
		e = document.getElementById(id);
		e.style.display = 'block';
	 
	/*}*/
}

function getContent(id)
{
   if (id != 0){
   	
   	if(prevGlob != 0 && document.getElementById(prevGlob)){
   		document.getElementById(prevGlob).style.color="#cc0011";
   	}
   
	var imgs = imagesArray[id].split(",");
	i = 0 ;
	var str = ""; 
	while (i < imgs.length-1)
	 {
	 	 // open image in a new page with default size
	 	 str = str + "<br><img border=1 onmouseover=document.content_gr.src='pix/" + imgs[i] + "' width='60' height='60' src='pix/" + imgs[i] + "' onclick=\"window.location='pix/" + imgs[i] + "'; \"><br>";
	 	 i+=1;
  	}
  	
	document.getElementById("co_text").innerHTML = str;
	document.getElementById("co_text2").innerHTML = descArray[id] +'<br><input name="B1" value="Find out More" type="button" class="zinButton" onclick="window.open(\'mail_form.php?item_info=\'+\''+idArray[id]+'\',\'mywindow\',\'width=600,height=450\');">';
	if (divNext[id] != 0){
		str2 = "<a href='#' onclick=document.content_gr.src='pix/" + divNextImg[id] + "';getContent(" + divNext[id] + ");><img border=0 src=\'image/b_arrow_right_n.gif\' onmouseover=src=\'image/b_arrow_right_o.gif\' onmouseout=src=\'image/b_arrow_right_n.gif\'></a>";
		document.getElementById("arrow_right1").innerHTML = str2;
		document.getElementById(divNext[id]).style.color="#cc0011";
	}
	if(divPrev[id] != 0){
		str1 = "<a href='#' onclick=document.content_gr.src='pix/" + divPrevImg[id] + "';getContent(" + divPrev[id] + ");><img border=0 src=\'image/b_arrow_left_n.gif\' onmouseover=src=\'image/b_arrow_left_o.gif\' onmouseout=src=\'image/b_arrow_left_n.gif\' ></a>&nbsp;&nbsp;";
		document.getElementById("arrow_left1").innerHTML = str1;
		document.getElementById(divPrev[id]).style.color="#cc0011";
	}
	
	
	prevGlob = id; // global one to change prev selected color to red
	
	document.getElementById(id).style.color="#ff9900";
	
	
   }
}


//-->