﻿

		var isNS = (navigator.appName == "Netscape") ? 1 : 0;
		var EnableRightClick = 0;
		if(isNS) 
		document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);

		function mischandler(){
		if(EnableRightClick==1){ return true; }
		else {return false; }
		}

		function mousehandler(e){
		if(EnableRightClick==1){ return true; }
		var myevent = (isNS) ? e : event;
		var eventbutton = (isNS) ? myevent.which : myevent.button;
		if((eventbutton==2)||(eventbutton==3)) return false;
		}

		function keyhandler(e) {
		var myevent = (isNS) ? e : window.event;
		if (myevent.keyCode==96)
			EnableRightClick = 1;
		return;
		}

		document.oncontextmenu = mischandler;
		document.onkeypress = keyhandler;
		document.onmousedown = mousehandler;
		document.onmouseup = mousehandler; 
		previousObjClicked = "";
		previousObjClickedOnMouseOut = "";
	
function CenterPopUp(Url,WindowWidth,WindowHeight)
        {
	        var WindowTop = 5//(screen.availHeight/2) - (WindowHeight/2);
	        var WindowLeft = (screen.availWidth/2) - (WindowWidth/2);
	        var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop;
	        PopUpWindow = window.open(Url,"",WindowProps);
	        
        }
function CenterFullPopUp(Url)
        {
	         var WindowLeft = (screen.availWidth/2) - (400);
	         var params  = 'width='+screen.width-10;
             params += ', height='+screen.height-10;
             params += ', top=0, left='+ WindowLeft +', toolbar=1,location=0,status=1,menubar=0,scrollbars=1,resizable=1';

             var newwin=window.open(Url,'windowname4', params);
        }
        
function CenterFullPopUpElectro(Url)
        {
            var WindowTop = 5
	        var WindowLeft = (screen.availWidth/2) - (900/2);
	        var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=600,height=400,left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop;
	        PopUpWindow = window.open(Url,'_blank',WindowProps);
        }
function PopUpPlayTech(Url,WindowWidth,WindowHeight)
        {
	        var WindowLeft = (screen.availWidth/2) - (WindowWidth/2);
	        var WindowProps = 'toolbar=1,location=0,status=1,menubar=1,scrollbars=1,left='+ WindowLeft +',resizable=1';
	        PopUpWindow = window.open(Url,"",WindowProps);

        }
 function PopUpAffiliateLounge(Url,WindowWidth,WindowHeight)
        {
	        var WindowTop = 5//(screen.availHeight/2) - (WindowHeight/2);
	        var WindowLeft = (screen.availWidth/2) - (WindowWidth/2);
	        var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop;
	        PopUpWindow = window.open(Url,'_blank',WindowProps);


        }
   function PopUpRushmorecasino(Url)
        {
	        var WindowProps = '';//'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,left=0,resizable=1';
	        PopUpWindow = window.open(Url,"",WindowProps);


        }
        
   function PopUpCasinoCoins(Url)
        {
	        var WindowProps = '';//'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,left=0,resizable=1';
	        PopUpWindow = window.open(Url,"",WindowProps);

        }
    
    function PopUpSpinpalace(Url)
        {
	        var WindowProps = '';//'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,left=0,resizable=1';
	        PopUpWindow = window.open(Url,"",WindowProps);

        }
  
      
function onKeyDown() 
{ 
    var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();   
    if (event.ctrlKey && (pressedKey == "c" || pressedKey == "v")) 
    {    
     event.returnValue = false;  
    } 
} 

function ShowOrHide(img) {
    if(sp_introduction != null) 
    {
            if(sp_introduction.style.display == "block" || sp_introduction.style.display =="" ) 
            {
               sp_introduction.style.display= 'none';
               img.src="images/plus.gif";
            }
            else 
            {
               sp_introduction.style.display='block';
               img.src="images/minus.gif";
            }
     }
  }

function CenterPopUpNoScrollBars(bigurl, WindowWidth, WindowHeight)
{
    var WindowTop = (screen.availHeight/2) - (WindowHeight/2);
	var WindowLeft = (screen.availWidth/2) - (WindowWidth/2);
	var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop;

	var newWindow = window.open("", "",WindowProps);
	
    newWindow.document.writeln("<html>");
    newWindow.document.writeln("<body style='margin: 0 0 0 0;'>");
    newWindow.document.writeln("<a href='javascript:window.close();'>");
    newWindow.document.writeln("<img src='" + bigurl + "' alt='Click to close' id='bigImage' border='0' />");
    newWindow.document.writeln("</a>");
    newWindow.document.writeln("</body></html>");
    newWindow.document.close();
}
function favorites(url,title)
{
    var msg = "Please press CTRL + D to bookmark us";
    
    if (window.sidebar)                             // firefox
	    window.sidebar.addPanel(title, url, "");
    else if(window.opera && window.print)           // opera
    {
        alert(msg);
    } 
    else if(document.all)                           // ie
	    window.external.AddFavorite(url, title);
	else 
	{
        alert(msg);
    }
}
