currTV='X';
currTB='X';
w=screen.availWidth;
h=screen.availHeight;
if (window.innerHeight) { x=6; y=23; } else { x=10; y=32; }
if (w<700  ) {z=0.88;}
if (w>=700 ) {z=0.90;}
if (w>=1000) {z=0.92;}
if (w>=1200) {z=0.94;}
if (w>=1300) {z=0.95;}
w=w-x;
h=(h*z)-y+RWA;
h2=h-58;
hv=h+32;
function opengal(imgNum,dir) {
  if (currTB!='X') { document.images[currTB].src='/img/tbc.gif'; }
  currTB='I'+imgNum;
  document.images[currTB].src='/img/tbm.gif';
  open(RRF+'/gallery/'+dir+'/','rrW1','width=785,height='+h+',left=0,top=0,location=1,menubar=0,toolbar=0,status=1,scrollbars=1,resizable=1');
}
function copy(url,file,name) {
  t=prompt('Copy member gallery link code below (Ctrl-C).\nThen paste code into forum message (Ctrl-V).','[URL='+RRU+url+'][IMG]'+RRU+url+file+'[/IMG][/URL] '+name);
}
function playTV(vName) {
  if (currTV!='X') { document.images[currTV].src='/img/tvc.gif'; }
  currTV='V'+vName;
  document.images[currTV].src='/img/tvm.gif';
}
function openTV(vidName,wh) {
  rrw=window.open(vidName,'rrTV','width=688,height='+wh+',left=0,top=0,location=1,menubar=0,toolbar=0,status=1,scrollbars=0,resizable=1');
  rrw.document.bgColor='#777777';
}
function helpTV(vidName) {
  rrw=window.open(vidName,'helpTV','width=846,height=866,left=0,top=0,location=1,menubar=0,toolbar=0,status=1,scrollbars=0,resizable=1');
  rrw.document.bgColor='#777777';
}
function view(imgNum,imgName) {
  if (currTB!='X') {
    if (document.images[currTB]) {
      document.images[currTB].src='/img/tbc.gif';
    }
  }
  currTB='I'+imgNum;
  document.images[currTB].src='/img/tbm.gif';
}
function printoutNo() { printout=''; }
function printoutYes() { printout='1'; }
function rrpp(postID,imgNum) {
  cw=window.open(RRF+'/rr/rrpw.htm?p='+postID+'&i='+imgNum,'rrpw','width='+w+',height='+h+',left=0,top=0,location=1,menubar=0,toolbar=0,status=1,scrollbars=1');
  cw.document.bgColor='#777777';
  cw.focus();
}
function rrpw(imgNum,imgName,prt) {
  if(printout || prt) {
    cw=window.open(RRF+'/rr/printpic.htm?i='+imgName,'printwindow','width=785,height='+h2+',left=30,top=30,location=1,menubar=0,toolbar=0,status=1,scrollbars=1,resizable=1');
    cw.focus();
    return
  }
  cw=window.open(RRF+'/rr/rrpw.htm?d='+dir+'&i='+imgNum+'&a='+displayAll+'&s='+script,'rrpw','width='+w+',height='+h+',left=0,top=0,location=1,menubar=0,toolbar=0,status=1,scrollbars=1');
  cw.document.bgColor='#777777';
  cw.focus();
}
function AddToClipboard(fn) {
  cw=window.open(RRF+'/rr/clipboard.htm?add='+fn,'clipboard','width=785,height='+h2+',left=60,top=30,location=1,menubar=0,toolbar=0,status=1,scrollbars=1');
  cw.focus();
  setTimeout("this.focus();",1000);
}
function rrJumpTo(list) {
  URL=list.options[list.selectedIndex].value;
  if (URL=='') { window.location=window.location; } else { location.href=URL; }
}
function rrJumpToNew(list) {
  URL=list.options[list.selectedIndex].value;
  if (URL=='') { window.location=window.location; } else { open(URL,'rrW1','width=785,height='+h+',left=0,top=0,location=1,menubar=0,toolbar=0,status=1,scrollbars=1,resizable=1'); }
}
function rrDL(file,VC) {
  window.location.href=RTV+file+'?VD='+VC+'&RR='+RR+'&UU='+UU;
}
function rrtvPLAYwmv(url,rrTVsave){
document.write('<table align=center><tr><td class=t712 colspan=3>');
document.write('<object id="rrTV" width=640 height=425 classid=clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 type=application/x-oleobject>');
document.write('<param name=URL value='+RTV+url+'><param name=autostart value=0>');
document.write('<embed name="rrTV" type=application/x-mplayer2 src='+RTV+url+' width=640 height=405 autostart=0></embed>');
document.write('</object>');
document.write('</td></tr><tr>');
document.write('<td class=td1v align=center><a href='+RTV+'/help-faq/PhotoVideo/#How_to_watch_rrTV_video target=_blank>HELP-FAQ</a></td>');
document.write('<td class=td2v align=center><a href=http://microsoft.com/windows/windowsmedia/download/AllDownloads.aspx target=_blank>Windows Media Player</a> required</td>');
document.write('<td class=td1v align=center>Save WMV video file to disk: &nbsp;'+rrTVsave+'</td>');
document.write('</tr></table>');
}
function rrtvPLAYmp4(url,rrTVsave){
document.write('<table align=center><tr><td class=t712 colspan=3>');
document.write('<object width=640 height=376 classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B codebase=http://apple.com/qtactivex/qtplugin.cab>');
document.write('<param name=src value=/img/rrTVPlay.gif><param name=qtsrc value=/img/rrTVPlay.gif><param name=href value="<'+RTV+url+'> E<volume=50>"><param name=target value=myself><param name=bgcolor value=#000000><param name=controller value=false><param name=showlogo value=false><param name=type value=video/quicktime><param name=volume value=50>');
document.write('<embed width=640 height=376 src=/img/rrTVPlay.gif qtsrc=/img/rrTVPlay.gif href="<'+RTV+url+'> E<volume=50>" target=myself bgcolor=#000000 controller=false showlogo=false type=video/quicktime volume=50 plugin=quicktimeplugin pluginspage=http://www.apple.com/support/quicktime/></embed>');
document.write('</object>');
document.write('</td></tr><tr>');
document.write('<td class=td1v align=center><a href='+RTV+'/help-faq/rrTV/ target=_blank>HELP-FAQ</a></td>');
document.write('<td class=td2v align=center><b><font color=maroon>New</font> H.264 Video</b> - <a href=http://www.apple.com/support/quicktime/ target=_blank>QuickTime Player</a> required</td>');
document.write('<td class=td1v align=center>Save <b>MP4</b> file to disk: &nbsp;'+rrTVsave+'</td>');
document.write('</tr></table>');
}
