function resizeWindow(){
	var maxwidth;
	var table;
	maxwidth = 936;
	minwidth = 742;
	table = "topMenu";
	table2 = "mainMenu";
	table3 = "internal";
	table4 = "internal2";
	var myscroller = "myscroller";
	if (document.body.clientWidth>maxwidth)
	{
		var width;
		width = Math.round(maxwidth/(document.body.clientWidth/100)) + "%";
   	    document.getElementById(table).setAttribute("width", width);
   	    document.getElementById(table2).setAttribute("width", width);
   	    if (document.getElementById(table3)) {
			document.getElementById(table3).setAttribute("width", width);
		}
		if (document.getElementById(table4)) {
			document.getElementById(table4).setAttribute("width", width);
		}
		if (document.getElementById(myscroller)) {
			//document.getElementById(myscroller).style.width = (maxwidth - 61);
		}
		
	}
	else if (document.body.clientWidth<minwidth)
	{
	
   	    document.getElementById(table).setAttribute("width", minwidth);
   	    document.getElementById(table2).setAttribute("width", minwidth)
   	    document.getElementById(table3).setAttribute("width", minwidth)
		document.getElementById(table4).setAttribute("width", minwidth)	
		//document.getElementById(myscroller).style.width = (minwidth - 61);	
	}	
	else
	{
   	    document.getElementById(table).setAttribute("width", '100%');
   	    document.getElementById(table2).setAttribute("width", '100%')
   	    document.getElementById(table3).setAttribute("width", '100%')	
		document.getElementById(table4).setAttribute("width", '100%')
	}
}

function showMenu(elmnt)
{
	document.getElementById(elmnt).style.visibility="visible"
}

function hideMenu(elmnt)
{
	document.getElementById(elmnt).style.visibility="hidden"
}

function changePicture(newpic, photoid, comments, commentsid)
{
	var com = comments;
	document.getElementById(photoid).src = 'images/photoalbum/' + newpic;
	document.getElementById(commentsid).innerHTML = com;
}