var ShowPopup = true;
var byFlag = false; //for welcome message
var PopupWindow = false; //for welcome message
var FlagAr = sFlag.split("");
if (FlagAr[0]=="1"){byFlag = true;}
if (FlagAr[0]=="3"){byFlag = true;}

 function OpenDownPoker(loc)
{
        setDownloadStatus();
        url="http://www.pacificpoker.com/PokerInstaller?" + sCutParams + "&dl="+loc;
        window.open(url,"popDown","width=1,height=1,top=0,left=0");
        document.location.href = "/?page=download_short_poker&" + sCutParams;

}
function DetectUK(path,loc) //for welcome message
{
    OpenDownCasino(loc);
}

function changeImage(class_postfix, id, class_name)
{
    var tmpMainPic = document.getElementById(id);    
    tmpMainPic.className=class_name + class_postfix;
}

function ContactUs()
{
        var w = 793;
        var h = 517;
        var l = 1; 
        var t = 1; 

        var LocationString= "http://www.pacificpoker.com/?page=contactus&flag=1100";
        var x = window.open(LocationString,"contactUsWnd","status=no,toolbar=no,menubar=no,location=no,left=" + l + ",top=" + t + ",width=" + w + ",height=" + h)   
}

function displaySection(sectionNum)
{

   if (sectionNum=='homePageSection'){
            document.getElementById("hpSection").style.display ="block";
            document.getElementById("firstSection").style.display ="none";
            document.getElementById("secondSection").style.display = "none";
            document.getElementById("thirdSection").style.display = "none";
        }
    if (sectionNum=='first'){
            document.getElementById("hpSection").style.display ="none";
            document.getElementById("firstSection").style.display ="block";
            document.getElementById("secondSection").style.display = "none";
            document.getElementById("thirdSection").style.display = "none";
        }
    if (sectionNum=='second'){
            document.getElementById("hpSection").style.display ="none";
            document.getElementById("firstSection").style.display ="none";
            document.getElementById("secondSection").style.display = "block";
            document.getElementById("thirdSection").style.display = "none";
        }
    if (sectionNum=='third'){
             document.getElementById("hpSection").style.display ="none";
             document.getElementById("firstSection").style.display ="none";
             document.getElementById("secondSection").style.display = "none";
             document.getElementById("thirdSection").style.display = "block";
        }
    
}