function launchLiveChat() {
	window.open("/live-chat/index.html", "BingoChat", "height=400,width=600,modal=yes,alwaysRaised=yes");
}

function resetPassword() {
	window.open("https://redirector3.valueactive.eu/casino/default.aspx?applicationID=1059&ServerID=1334&clienttype=1&lang=en", "BingoPasswordReset", "height=400,width=600,modal=yes,alwaysRaised=yes");
}
    
       function formatText(index, panel) {
		  return index + "";
	    }
    
        $(function () {
        
            $('.slotsRotator').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 3000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 600,             // How long the slide transition takes
                hashTags: true,                 // Should links change the hashtag in the URL?
                buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: false,             // If true, and autoPlay is enabled, the show will pause on hover
        		startText: "",             // Start text
		        stopText: "",               // Stop text
		        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
            });
           
        });
  
  // Allows us to open external links in new browser tab without using taget="_blank" as this is not xhtml 1.0 complient.
 // All <a href... links with the rel="external" will open in a new browser tab.
  
function externalLinks() {  
 if (!document.getElementsByTagName) return;  
 var anchors = document.getElementsByTagName("a");  
 for (var i=0; i<anchors.length; i++) {  
   var anchor = anchors[i];  
   if (anchor.getAttribute("href") &&  
       anchor.getAttribute("rel") == "external")  
     anchor.target = "_blank";  
 }  
}  
window.onload = externalLinks;


				  
function preLoginCheck()
{

	if (($("input.loginInput").val() == "Account no / alias")||($("input.loginInput").val() == "")){
		alert("Please enter your username")
		$("input.loginInput").focus()
		return false
	}
	
	if (($("input.passwordInput").val() == "password")||( $("input.passwordInput").val() == "")){
		alert("Please enter your password")
		$("input.passwordInput").focus()
		return false
	}
	return true
}