function myopener(choice,casino)
 {
  switch (choice)
   {
	case 0 :
	  newWindow = window.open ('/recommend.php', 'newWindow', 'scrollbars=1,width=600,height=475') ;
	  break;

	case 1 :
	  url= 'comment.php?action=leave&id=' + casino ;
	  newWindow = window.open (url, 'newWindow', 'scrollbars=1,width=600,height=475') ;
	  break;

	case 2 :
	  url= 'comment.php?action=read&id=' + casino ;
	  newWindow = window.open (url, 'newWindow', 'scrollbars=1,width=600,height=475') ;
	  break;

	case 3 :	
	  url= 'submit_casino.php?action=form' ;
	  newWindow = window.open (url, 'newWindow', 'scrollbars=1,width=600,height=475') ;
	  break;

	case 5 :
	  url= '/casinos/' + casino + '.php' ;	
	  newWindow = window.open (url, 'newWindow', 'scrollbars=1,width=600,height=475') ;
	  break;

	case 6 :
	  url= '/recommend.php?url=' + casino + '.php' ;	
	  newWindow = window.open (url, 'newWindow2', 'scrollbars=1,width=600,height=475') ;
	  break;

	case 7 :
	  url= '/recommend.php?url=' + casino + '.php' ;	
	  newWindow = window.open (url, 'newWindow2', 'scrollbars=1,width=600,height=475') ;
	  break;
   }
  newWindow.moveTo(0,0) ;
  newWindow.focus() ;
 }

function ss_viewer(url,x,y)
 {
  url= 'screen_shots/ss_viewer.php?url=' + url + '&x=' + x + '&y=' + y ;
  opt= 'width=' + x + ',height=' + y ;
  newWindow = window.open (url, 'newWindow2', opt) ;
 }

function addbookmark()
 {
  if (document.all)
   window.external.AddFavorite("http://www.gambling-pro.com","Gambling Pro - Your online casino gambling directory !")
  else
   alert("Netscape users, type CTRL+D to bookmark the site.")
 }

function AfficheHomePage(type)
 {
  if (document.all && document.getElementById)
   {
    switch (type)
	 {
	  case 0 :
      document.write('<br><a href="#" onMouseOver="window.status=\'Make us your homepage !\';return(true);" onMouseOut="window.status=\'\';return(true);" onClick="HomePage(this);return(false);">Make us your homepage !</a>');
	  break;
	  
	  case 1 :
      document.write('<a href="#" onMouseOver="window.status=\'Make us your homepage !\';return(true);" onMouseOut="window.status=\'\';return(true);" onClick="HomePage(this);return(false);"><img src="/images/button_homepage.gif" width="25" height="26" alt="Make us your homepage !" border="0"></a>');
	  break;
	 }
   }
 }

function HomePage(obj)
 {
  obj.style.behavior='url(#default#homepage)';
  obj.setHomePage('http://www.gambling-pro.com');
 }

function targetopener(mylink, closeme, closeonly)
 {
  if (! (window.focus && window.opener)) return true;
  //window.opener.focus();
  if (! closeonly) window.opener.location.href=mylink.href;
  if (closeme) window.close();
  return false;
 }

/* Pop-Unders & Cookies */
function LoadMyPop()
 {
  CreationCookie("dejapopup","oui");
  popup();
 }

function ScanCookie(variable)
 {
  cook = document.cookie;
  variable += "=";
  place = cook.indexOf(variable,0);
  if (place <= -1)
   return("0");
  else return("1");
 }

function CreationCookie(nom,valeur)
 {
  document.cookie = nom + '=' + valeur + '; path=/' ;
 }

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')); }