/*
	AVS JavaScript Function Library
*/

function toggleSubMenu(menu_id) {
	status = document.getElementById("menu_"+menu_id).style.display;
	code = "document.getElementById(\"menu_"+menu_id+"\").style.display = "+((status == "none" || status == '') ? "\"block\"": "\"none\"");
	eval(code);
}


// Open Zoom Window

function openZoom (file, name, side) {
	zoomWin = window.open('', 'zoomWin', 'width=600,height=500,left=100,screenX=100,top=100,screenY=100');
	zoomWin.document.writeln('<html><head><title>AVS Camera - '+name+': '+side+' View</title></head>');
	zoomWin.document.writeln('<body onLoad="self.focus()">');
	zoomWin.document.writeln('<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">');
	zoomWin.document.writeln('<tr><td align="center">');
	zoomWin.document.writeln('<a href="javascript:self.close()"><img src="/images/prodimg/camera/'+file+'" border="0"></a>');
	zoomWin.document.writeln('<div style="font-family: verdana; font-size: 13px; font-weight: normal; padding-top: 30px;">');
	zoomWin.document.writeln('<b>&raquo;</b> Click on the picture to close <b>&laquo;</b></div>');
	zoomWin.document.writeln('</td></tr>');
	zoomWin.document.writeln('</table>');
	zoomWin.document.writeln('</body>');
	zoomWin.document.writeln('</html>');
	zoomWin.document.close();
}
