
var ie=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat" && !window.opera)? document.documentElement : document.body
}

function enlarge(which, e, position, imgwidth, imgheight, text){
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"

crossobj.innerHTML='<div align="right" style="width:'+imgwidth+'px" id="dragbar"><table background="title.gi" cellpadding="0" style="border-collapse: collapse"><tr><td><p id="closetext">'+text+'</p></td>    <td width="38px"><img alt="close" border="0" src="off.gif" width="38" height="20" onClick="closepreview()"></td></tr></table><img alt="click to close" style="border: 2px inset #00BB33; padding: 0" src="'+which+'" onClick="closepreview()"></div>'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}



function realplayer(which, e, position, imgwidth, imgheight, text){
var imgheight=imgheight+104
var imgwidth=imgwidth+6
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"

crossobj.innerHTML='<div align="right" style="width:'+imgwidth+'px" id="dragbar"><table background="title.gif" border="0" cellpadding="0" style="border-collapse: collapse"><tr><td><p id="closetext">&nbsp;&nbsp;'+text+'&nbsp;&nbsp;</p></td>    <td width="38px"><img alt="close" align="right" border="0" src="off.gif" width="38" height="20" onClick="closepreview()"></td>  </tr></table><div style="border: 2px inset #00BB33; padding: 0"><OBJECT ID=RVOCX CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH='+imgwidth+' HEIGHT='+imgheight+'><PARAM NAME="SRC" VALUE='+which+'><PARAM NAME="CONTROLS" VALUE="all "><PARAM NAME="CONSOLE" VALUE="one">  <param name="AUTOSTART" value="-1">  <param name="SHUFFLE" value="0">  <param name="PREFETCH" value="0">  <param name="NOLABELS" value="0">  <param name="LOOP" value="0">  <param name="NUMLOOP" value="0">  <param name="CENTER" value="0">  <param name="MAINTAINASPECT" value="0">  <param name="BACKGROUNDCOLOR" value="#000000">  <EMBED SRC="'+which+'" WIDTH=720 HEIGHT=630 NOJAVA=true  CONTROLS=all CONSOLE=one></OBJECT></div><script type="text/javascript" src="fixit.js"></script></div>'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}




function mediaplayer(which, e, position, imgwidth, imgheight, text){

if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"

crossobj.innerHTML='<div align="right" style="width:'+imgwidth+'px" id="dragbar"><table background="title.gif" border="0" cellpadding="0" style="border-collapse: collapse"><tr><td><p id="closetext">&nbsp;&nbsp;'+text+'&nbsp;&nbsp;</p></td><td width="38px"><img alt="close" align="right" border="0" src="off.gif" width="38" height="20" onClick="closepreview()"></td>  </tr></table><div style="border: 2px inset #00BB33; padding: 0"><object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer1" width="320" height="304"><param name="URL" value="'+which+'"><param name="rate" value="1"><param name="balance" value="0"> <param name="currentPosition" value="0"> <param name="defaultFrame" value> <param name="playCount" value="1"><param name="autoStart" value="-1"> <param name="currentMarker" value="0"><param name="invokeURLs" value="-1"><param name="baseURL" value><param name="volume" value="50"><param name="mute" value="0"><param name="uiMode" value="full"><param name="stretchToFit" value="-1"> <param name="windowlessVideo" value="0"> <param name="enabled" value="-1"> <param name="enableContextMenu" value="0"> <param name="fullScreen" value="0"> <param name="SAMIStyle" value> <param name="SAMILang" value> <param name="SAMIFilename" value> <param name="captioningID" value> <param name="enableErrorDialogs" value="0"><EMBED type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="0" bgcolor="darkblue" showcontrols="-1" showtracker="1" showdisplay="0" showstatusbar="-1" videoborder3d="0" width="320" height="304" src="'+which+'" autostart="-1" designtimesp="5311" loop="0"></EMBED></object></div><script type="text/javascript" src="fixit.js"></script></div>'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}




function divixplayer(which, e, position, imgwidth, imgheight, text){

if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"

crossobj.innerHTML='<div align="right" style="width:'+imgwidth+'px" id="dragbar"><table background="title.gif" border="0" cellpadding="0" style="border-collapse: collapse"><tr><td><p id="closetext">&nbsp;&nbsp;'+text+'&nbsp;&nbsp;</p></td><td width="38px"><img alt="close" align="right" border="0" src="off.gif" width="38" height="20" onClick="closepreview()"></td>  </tr></table><div style="border: 2px inset #00BB33; padding: 0"><object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="640" height="484" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"><param name="loop" value="false" /> <param name="autoPlay" value="true" /> <param name="allowContextMenu" value="false" /> <param name="src" value="'+which+'" /><embed type="video/divx" src="'+which+'" width="640" height="545" mode="large"  allowContextMenu="false"  pluginspage="http://go.divx.com/plugin/download/"></embed></object></div><script type="text/javascript" src="fixit.js"></script></div>'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}





function closepreview(){
crossobj.style.visibility="hidden"
}

function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx+"px"
crossobj.style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
}
return false
}

function initializedrag(e){
if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
offsetx=ie? event.clientX : e.clientX
offsety=ie? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}

document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")




