
function commonPopup(url, width, height, toolsInd, wname)
	{
		var options = "width=" + width + ",height=" + height + ",top=" + ((screen.height - height) / 4).toString() + ",left=" + ((screen.width - width) / 2).toString();
		switch (toolsInd)
			{
				case 1:
					options += ",toolbar=no,status=no,resizable=no,scrollbars=yes";
				break;
				case 2:
					options += ",menubar=yes,toolbar=yes,status=yes,resizable=yes,location=yes,scrollbars=yes";
				break;
				case 3:
					options += ",top=50,left=50,resizable=yes,scrollbars=yes,status=no,menubar=no,toolbar=no,location=yes";
				break;
				default:
					//do nothing
				break;
			}
		if (!wname)
			{
				wname = "reutersPopup";
			}
		popupWindow = window.open(url, wname, options);
		if (popupWindow)
			{
				popupWindow.focus();
			}
	}


function changeimage(towhat,url){
if (document.images){
document.images.targetimage.src=towhat.src
gotolink=url

document.getElementById("imgTxt").innerHTML = '<p>Text in here</p>';
}
}
function warp(){
window.location=gotolink
}

function changeTxt(text){
	document.getElementById("imgTxt").innerHTML = text;
	//document.getElementById("imgTxt").innerHTML = '<p>Text in here</p>';
}



function expandcontract(story) 
    {
        var article = document.getElementById("story_"+story);
        
        if(article.className == 'hiddenstorytext') 
        {
            article.className = 'storytext'; 
        }
        else
        {
            article.className = 'hiddenstorytext';
        }
    
    
    }
	
