function p_check() { if(document.getElementById('popup')!=null){ document.all['p_black'].style.width=document.body.clientWidth; document.all['p_black'].style.height=document.body.clientHeight; document.all['p_black'].style.top=document.body.scrollTop; if(popup.document.getElementById('p_x')!=null){ popup.p_getsize(); }; }; }; function p_pos(w,h) { if(document.getElementById('popup')!=null){ if(popup.document.getElementById('p_x')!=null){ document.all['p_table'].style.left=0; document.all['p_table'].style.width="100%"; document.all['popup'].style.width=document.body.clientWidth-40; document.all['p_td1'].style.width=document.body.clientWidth-40; document.all['p_td4'].style.width=document.body.clientWidth-40; document.all['p_table'].style.top=document.body.scrollTop; document.all['p_table'].style.height=document.body.clientHeight-40; document.all['popup'].style.height=document.body.clientHeight-20; document.all['p_td2'].style.height=document.body.clientHeight-40; document.all['p_td3'].style.height=document.body.clientHeight-40; }; }; }; function p_show() { top.document.all['p_table'].style.visibility="hidden"; top.document.all['p_table'].style.visibility="visible"; p_getsize(); p_but(); }; function p_but() { document.all['p_prev'].style.left=document.body.scrollLeft; document.all['p_prev'].style.top=(document.body.clientHeight/2)+document.body.scrollTop-80; document.all['p_next'].style.right=0; document.all['p_next'].style.top=(document.body.clientHeight/2)+document.body.scrollTop-80;}; function p_getsize() { top.p_pos(document.all['img'].width,document.all['img'].height); }; function p_hide() { top.document.all['p_table'].style.visibility="hidden"; top.document.all['p_black'].style.visibility="hidden"; }; function p_loading() { top.document.all['p_table'].style.visibility="hidden"; top.document.all['p_black'].style.visibility="visible"; }; /* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */ function menuFunction() { var x = document.getElementById("menu-container"); if (x.className === "menu-container") { x.className += " responsive"; } else { x.className = "menu-container"; } }