<?php
if ( $Globals['right-click'] == "yes" ) {
echo <<<PPPRINT
<script language=JavaScript>
<!--
function clickIE4(){
if (event.button==2){
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")

// -->
</script>
PPPRINT;
}

echo <<<PPPRINT
$ppopen
        <tr>
        <td class="{$Style['menubar']}">
            <table cellpadding="0" cellspacing="0" border="0" width="98%" align="center">
                <tr>
                <td valign="middle" align="right">
                    <span class="{$Style['medium']}">$slidecode</span>
                </td>
                </tr>
            </table>
        </td>
        </tr><!--PhotoPost, Copyright All Enthusiast,Inc.-->
        <tr>
        <td class="{$Style['tdbackground']}" valign="top" align="center">
            <br />
            <table cellpadding="{$Globals['cellpadding']}" cellspacing="0" border="0" bgcolor="{$Globals['framecolor']}">
            <tr>
            <td>
                <table width="100%" cellpadding="0" cellspacing="0" border="0" class="{$Style['tddetails']}">
                <tr>
                <td>$imgdisp</td>
                </tr>
PPPRINT;

if ( $Globals['disptitle'] == "yes" ) {
echo<<<PPPRINT
                <tr>
                <td class="{$Style['menubar']}" align="center"><b>$title</b></td>
                </tr>
PPPRINT;
}

echo<<<PPPRINT
                </table>
            </td>
            </tr>
            </table>
    </td>
    </tr>            
$ppclose<br />
PPPRINT;

if ( $Globals['slidehead'] == "no" ) {
echo<<<PPPRINT
</body></html>
PPPRINT;
}

?>
