function updateStory(type,urlToShow,storyNumber,fullImage,description,obj)
{
	var id = "fronter_"+storyNumber;
	if(type=="jpg" || type=="gif" || type=="png")document.getElementById(id).innerHTML='<img src="'+urlToShow+'" width="425" height="344" title="'+description+'" />';
	else{

	//document.getElementById(id).innerHTML='<object width="425" height="344"><param name="movie" value="'+urlToShow+'"></param><param name="allowFullScreen" value="true"></param><embed src="'+urlToShow+'" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>';
	document.getElementById(id).innerHTML = '<object type="application/x-shockwave-flash" width="425" height="344" data="'+urlToShow+'"> <param name="movie" value="'+urlToShow+'" /> </object>';
	
	}
	var idb = "right_"+storyNumber;
	var idiv = document.getElementById(idb);
	var imgs = idiv.getElementsByTagName('IMG');
	for (var i = 0; i < imgs.length; i++) {
		if(imgs[i].className=="active")imgs[i].className='none';
	}
	
	if(obj)obj.className="active";
	var idc = "fullImagePlace_"+storyNumber;
	//view view full image or not
	if(fullImage!="-"){
		document.getElementById(idc).innerHTML='<a class="viewFullImageRef" title="'+description+'. View Full image." onclick="Slimbox.open(\''+fullImage+'\', \''+description+'\');"><img src="images/viewFull.png" border="none" alt="View Full image."/></a>';
		}
	else document.getElementById(idc).innerHTML='&nbsp;';
	
	}
	
function showMore(theDiv, theText, shortText){
	document.getElementById(theDiv).innerHTML=theText+' <a style="cursor:pointer;" onclick="showLess(\''+theDiv+'\',\''+theText+'\',\''+shortText+'\');" title="view less">Less</a>';
	}
function showLess(theDiv, theText, shortText){
	
	document.getElementById(theDiv).innerHTML=shortText+' <a style="cursor:pointer;" onclick="showMore(\''+theDiv+'\',\''+theText+'\',\''+shortText+'\');" title="view more">More</a>';
	}
function sayHello(){
	alert("hello");
}
