"; for ($i = 0; $i < $divimagetimes; $i++) echo ""; echo "
\r"; } function EchoClickableDivs($screensize, $divname, $divleft, $divtop, $divvisibility, $divimage, $divhref, $divzindex = -1) { if ($screensize == 10) { $divleft = $divleft / 1.5; $divtop = $divtop / 1.5; } else if ($screensize == 125) { $divleft = round(1.25*($divleft / 1.5)); $divtop = round(1.25*($divtop / 1.5)); } if ($divzindex == -1) $divz = ""; else $divz = " z-index:".$divzindex.";"; echo "
\n"; } echo ''; EchoDivs($screensize,"instructions",$ipinstructionsleft,$ipinstructionstop,"visible","null.png",50); EchoClickableDivs($screensize,"soundon",$ipsoundonleft,$ipsoundontop,"visible","null.png","javascript:PlayWithSound();",100); EchoClickableDivs($screensize,"soundoff",$ipsoundoffleft,$ipsoundofftop,"visible","null.png","javascript:PlayWithoutSound();",100); ?>