function myopener(choice,casino)
 {
  switch (choice)
   {
	case 0 :
	  url= '/casino_bonus.php?id=' + casino ;
	  newWindow = window.open (url, 'bonusWindow', 'scrollbars=0,width=600,height=300') ;
      h_fen = 300 ;
	  break;

	case 1 :
	  url= '/casino_rate.php?&id=' + casino ;
	  newWindow = window.open (url, 'rateWindow', 'scrollbars=0,width=600,height=310') ;
      h_fen = 310 ; 
	  break;
	  
	case 2 :
	  url= '/help/' + casino + '.php' ;
	  newWindow = window.open (url, 'helpWindow', 'scrollbars=1,width=600,height=400') ;
      h_fen = 400 ; 
	  break;
   }
  height_win = screen.height ; width_win = screen.width ;
  horz_pos = (width_win - 600) / 2 ; vert_pos = (height_win - h_fen) / 2 ;
  newWindow.moveTo(horz_pos,vert_pos) ;
  newWindow.focus() ;
 }

function openchatwindow()
 {
  url= 'http://www.sortonlinecasinos.com/achat.php' ;
  ChatWindow = window.open (url, 'ChatWindow', 'scrollbars=0,width=345,height=60,resizable=0') ;
 }

function addbookmark()
 {
  if (document.all)
   window.external.AddFavorite("http://www.sortonlinecasinos.com","Sort Online Casinos - First 100% sortable, searchable & filterable online casino directory!")
  else
   alert("Netscape users, type CTRL+D to bookmark the site.")
 }

function HomePage(obj)
 {
  if (document.all)
   {
    obj.style.behavior='url(#default#homepage)';
    obj.setHomePage('http://www.sortonlinecasinos.com');
   }
  else
   alert('Netscape users, to set this page as your homepage: type ALT+E, select "Preferences", then click on "Use Current Page" located at the center of the dialog box.')
 }

function PreLoad()
 {
  <!--
  img1 = new Image();
  img1.src = "/images/background_divider.gif";
  img2 = new Image();
  img2.src = "/images/bk4.gif";
  img3 = new Image();
  img3.src = "/images/gradient_middle_block.gif";
  img4 = new Image();
  img4.src = "/images/deg5.gif";
  img5 = new Image();
  img5.src = "/images/deg6.gif";
  //-->
 }
 
function mto(dom,user) 
{ eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%6c%6f%63%61%74%69%6f%6e%2e%68%72%65%66%20%3d%20%22%6d%61%69%6c%74%6f%3a%22%20%2b%20%75%73%65%72%20%2b%20%22%40%22%20%2b%20%64%6f%6d%3b')); }

function jo() 
{ eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%22%20%5b%2d%41%54%2d%5d%20%22%29%3b')); }