function dynmenu(x,y)
{

	if(document.getElementById)
	{
		if(document.getElementById(x).style.display == "none")
		{
			document.getElementById(x).style.display = "block";
			source = "http://www.eastriding.gov.uk/images/nav_neg1.gif"
			//document.getElementById(x).focus();
		}else{
			document.getElementById(x).style.display = "none";
			source = "http://www.eastriding.gov.uk/images/nav_plus1.gif"
		}
	}
	if(y)document.images[y].src = source;
	//return false;
}


function popUp(strURL,strType,strHeight,strWidth) {
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}


function iFrameHeight() {
if(document.getElementById && !(document.all)) {
h = document.getElementById('dynamicbox').contentDocument.body.scrollHeight;
document.getElementById('dynamicbox').style.height = h+50;document.getElementById('topinclude').scrollIntoView(true);
}
else if(document.all) {
h = document.frames('dynamicbox').document.body.scrollHeight;
document.all.dynamicbox.style.height = h+50;document.all.topinclude.scrollIntoView(true);
}
}
