

function open_img(s_showcase,s_location,s_Desc)
	{
		//window.open('open_big_news.asp?showcase=' + escape(s_showcase)+'&filelocation=' + s_location+'&Desc='+escape(s_Desc),'','scrollbars=yes,resizable=yes,width=640,height=450');
	//window.open('open_big_news.asp?showcase=' + escape(s_showcase)+'&filelocation=' + escape(s_location)+'&Desc='+escape(s_Desc),'','scrollbars=yes,resizable=yes,width=640,height=450');
	var anchor1 = document.getElementById('tempa');
	imagesrc = s_showcase.replace('_cmsthumbclick','');
	imagesrc = s_showcase.replace('_cmsthumb','');
	imagesrc = s_location + '/' + imagesrc;
	anchor1.setAttribute('href',imagesrc);
	anchor1.setAttribute('alt', s_Desc);
	anchor1.setAttribute('rel','contentimage');	
	myLightbox.start(anchor1); 
	return false;
	}	
	
function open_content_img(s_showcase)
{
	//window.open('open_big_news.asp?showcase=' + escape(s_showcase)+'&filelocation=' + escape('images/content/')+'&Desc=','','scrollbars=yes,resizable=yes,width=640,height=450');
	//window.open('open_big_news.asp?showcase=' + escape(s_showcase)+'&filelocation=' + escape('')+'&Desc=','','scrollbars=yes,resizable=yes,width=640,height=450');	
	var anchor1 = document.getElementById('tempa');
	imagesrc = s_showcase.replace('_cmsthumbclick','');
	imagesrc = s_showcase.replace('_cmsthumb','');
	anchor1.setAttribute('href',imagesrc);
	anchor1.setAttribute('rel','contentimage');	

	myLightbox.start(anchor1); 
	return false;
}
function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}	
function ShowHideDev(varDiv)
{
	var obj = MM_findObj(varDiv)

	if (obj != null) 
	{
	//alert('here'+obj.style.visibility);
		if (obj.style.visibility != "visible")
		{
			obj.style.display="";	
			obj.style.visibility="visible"; 		
		}
		else
		{
			obj.style.display="none";	
			obj.style.visibility="hidden";
		}
		}
		
}

function goCreateAnchor(objImage)
{
	var anchor1 = document.getElementById('tempa');
	var imagesrc = objImage.src.replace('_cmsthumbclick','');
	var imagesrc = objImage.src.replace('_cmsthumb','');
	anchor1.setAttribute('href',imagesrc);
	anchor1.setAttribute('rel','contentimage');	
	anchor1.setAttribute('title',objImage.alt);	
	myLightbox.start(anchor1); 
	return false;	
}