var _popup=true;
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
// -----------------------------------------------------------------------------
// -->


<!--
var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}

var hbx=_hbEvent("pv");hbx.vpc="HBX0100u";hbx.gn="ehg-osiris.hitbox.com";

 
 

//BEGIN EDITABLE SECTION

//CONFIGURATION VARIABLES

hbx.acct="DM560919E6RF";//ACCOUNT NUMBER(S)

//Current page name E.g. default.asp

hbx.pn="PUT+PAGE+NAME+HERE";//PAGE NAME(S)

//Category E.g. Home+Page (Seprate using a + sign - Do not leave any spaces) or Banking/Purchasing/Payment+Menthods

hbx.mlc="/CONTENT+CATEGORY";//MULTI-LEVEL CONTENT CATEGORY

hbx.pndef="title";//DEFAULT PAGE NAME

hbx.ctdef="full";//DEFAULT CONTENT CATEGORY

 

//OPTIONAL PAGE VARIABLES

//ACTION SETTINGS

hbx.fv="";//FORM VALIDATION MINIMUM ELEMENTS OR SUBMIT FUNCTION NAME

hbx.lt="auto";//LINK TRACKING

hbx.dlf="n";//DOWNLOAD FILTER

hbx.dft="n";//DOWNLOAD FILE NAMING

hbx.elf="n";//EXIT LINK FILTER

 

//SEGMENTS AND FUNNELS

hbx.seg="";//VISITOR SEGMENTATION

hbx.fnl="";//FUNNELS

 

//CAMPAIGNS

hbx.cmp="";//CAMPAIGN ID

hbx.cmpn="cmp";//CAMPAIGN ID IN QUERY

hbx.dcmp="";//DYNAMIC CAMPAIGN ID

hbx.dcmpn="";//DYNAMIC CAMPAIGN ID IN QUERY

hbx.dcmpe="";//DYNAMIC CAMPAIGN EXPIRATION

hbx.dcmpre="";//DYNAMIC CAMPAIGN RESPONSE EXPIRATION

hbx.hra="";//RESPONSE ATTRIBUTE

hbx.hqsr="";//RESPONSE ATTRIBUTE IN REFERRAL QUERY

hbx.hqsp="att";//RESPONSE ATTRIBUTE IN QUERY

hbx.hlt="";//LEAD TRACKING

hbx.hla="";//LEAD ATTRIBUTE

hbx.gp="";//CAMPAIGN GOAL

hbx.gpn="";//CAMPAIGN GOAL IN QUERY

hbx.hcn="";//CONVERSION ATTRIBUTE

hbx.hcv="";//CONVERSION VALUE

hbx.cp="null";//LEGACY CAMPAIGN

hbx.cpd="";//CAMPAIGN DOMAIN

 

//CUSTOM VARIABLES

hbx.ci="";//CUSTOMER ID

hbx.hc1="";//CUSTOM 1

hbx.hc2="";//CUSTOM 2

hbx.hc3="";//CUSTOM 3

hbx.hc4="";//CUSTOM 4

hbx.hrf="";//CUSTOM REFERRER

hbx.pec="";//ERROR CODES

 

//INSERT CUSTOM EVENTS

 

//END EDITABLE SECTION

 

//REQUIRED SECTION. CHANGE "YOURSERVER" TO VALID LOCATION ON YOUR WEB SERVER (HTTPS IF FROM SECURE SERVER)





function getCookie(name) {
    var cookie = " " + document.cookie;
    var search = " " + name + "=";
    var setStr = null;
    var offset = 0;
    var end = 0;
    if (cookie.length > 0) {
        offset = cookie.indexOf(search);
        if (offset != -1) {
            offset += search.length;
            end = cookie.indexOf(";", offset)
            if (end == -1) {
                end = cookie.length;
            }
                setStr = unescape(cookie.substring(offset, end));
            }
    }
    return(setStr);
} 

function setCookie (name, value, expires, path, domain, secure) {
      document.cookie = name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}
function checkUnload()
{
	
 var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
  if (isIE)
  {
  //  alert(getCookie("seenBUG"))
   if (getCookie("seenBUG")!=1){
   // if (true){
        if(event.clientX<0||event.clientY<0)
        {
           /* if (confirm("Хотите сыграть и получить бонусы прямо сейчас?"))
                location.href="/ru/myaccount/limitedregistration.aspx"
            else
                window.open('/beforeyougo.aspx?btag=GF_DIRECT');*/
        }
        d = new Date();
        t = d.getTime()+30*24*3600*1000;
        d1 = new Date(t);
        exp=d1.toUTCString(); 
        setCookie("seenBUG", "1", exp, "/");
    }
   }
  /* if (confirm("Хотите сыграть и получить бонусы прямо сейчас?"))
                location.href="/ru/myaccount/limitedregistration.aspx"
            else
                window.open('/beforeyougo.aspx?btag=GF_DIRECT');*/
   
}

function TryToLogin(login,pass)
{

    if (login!="" && pass!=""){
        oFrm=document.getElementById("flForm");
        if (oFrm!=null)
        {
            oFrmLog=document.getElementById("flLogin");
            oFrmPass=document.getElementById("flPass");
            oFrmLog.value=login;
            oFrmPass.value=pass;
            oFrm.submit();
        }
    }
}

//-->

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.


function page__DoFSCommand(command, args) {
	var page_Obj = isInternetExplorer ? document.all.page_ : document.page_;
	//
	if (command== "expand") expand ();
	//
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub page__FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call page__DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
//-->


function gd__DoFSCommand(command, args) {
	var gd_Obj = isInternetExplorer ? document.all.gd_ : document.gd_;
	//
	if (command== "reduce") reduce();
	//
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub gd__FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call gd__DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}



function expand (){
document.getElementById('apDiv3').style.display='block'
}
function reduce (){
document.getElementById('apDiv3').style.display='none'
}
var _GD_isOpen=0; 
var _PR_isOpen=getCookie("ShowPr"); 
/*alert(_GD_isOpen);
alert(_PR_isOpen);
*/
function GD_Close()
{
//alert('OK')
    lst=document.getElementsByTagName('SELECT')
    for (i=0;i<lst.length;i++)
    {
      lst[i].style.visibility='visible'
    }
    if (_PR_isOpen==0){
        document.getElementById('flashcontent').style.zIndex=1;
    }
    else
    {
        document.getElementById('flashcontent').style.zIndex=1;
    }
     _GD_isOpen=0;
}

function GD_Open()
{
 //alert('OK')
    lst=document.getElementsByTagName('SELECT')
    for (i=0;i<lst.length;i++)
    {
      lst[i].style.visibility='hidden'
    }
    document.getElementById('flashcontent').style.zIndex=20;
    _GD_isOpen=1;
	
}



function JS_ShowPrivate(flag)
{
        d = new Date();
        t = d.getTime()+30*24*3600*1000;
        d1 = new Date(t);
        exp=d1.toUTCString(); 
        setCookie("ShowPr", flag, exp, "/");
        if (flag==1)
        {
            if (_GD_isOpen==0){
                document.getElementById('flashcontent').style.zIndex=1;
            }
            else
            {
                document.getElementById('flashcontent').style.zIndex=20;
            } 
             _PR_isOpen=1;
        }
        else 
        {
             if (_GD_isOpen==0){
                document.getElementById('flashcontent').style.zIndex=1;
             }
             _PR_isOpen=0;
        }
}
function JS_PrivateClose()
{
   // alert('OK')
}

function JS_PrivateOpen()
{
    //alert('OK')
}

function showCab()
{
 d = new Date();
 t = d.getTime()+30*24*3600*1000;
 d1 = new Date(t);
 exp=d1.toUTCString(); 
 setCookie("ShowPr", 1, exp, "/");
}


function LoadMe()
{
LoadMeF();	
MoveCir();
document.getElementById('flash_index').focus(); 
}


function checkUnload2()
{

	if (_popup)
	{
	//if (true){
	if (getCookie("seenBUG3")!=1){
            if (confirm("Хотите сыграть и получить бонусы прямо сейчас?"))
			{
			  window.open("/ru/myaccount/limitedregistration.aspx","new")
			  window.open("/beforeyougo.aspx?btag=GF_DIRECT","new1")
			}
			else
			{
			  window.open("/beforeyougo.aspx?btag=GF_DIRECT","new1")
			}
	}
	}
	d = new Date();
        t = d.getTime()+30*24*3600*1000;
        d1 = new Date(t);
        exp=d1.toUTCString(); 
        setCookie("seenBUG3", "1", exp, "/");
		

}


function LoadMeF()
{
	
var lnks=document.getElementsByTagName('a') 
for (var i=0; i<lnks.length;i++) 
{ 
	if (lnks[i].href.indexOf("goldfishka.com")>-1)
		lnks[i].onclick=function(){_popup=false} 
} 
//document.getElementById('flash_index').focus(); 
}




function openUrl(url,target)
{
	if (url.indexOf("goldfishka.com")>-1)
		_popup=false;
	if (target=="_blank")
		window.open(url,"new23");
	else
		location.href=url;
}

function MoveCir()
{
	cf=document.getElementById('CircleFlash');
	cf.style.top=document.body.scrollTop+screen.availHeight/2 ;
}


function RegisterLogin()
{
	pageTracker._setCustomVar(1, "Visitor-Type", "Registered", 1); 
}

function fulltime() {
	if (mytime!=null && document.getElementById("timeto")!=null)
	{
	mytime=new Date(mytime.getTime() -1000 )
	var h,m,s;
	h=((mytime.getHours()+"").length==2?mytime.getHours():"0"+mytime.getHours());
	m=((mytime.getMinutes()+"").length==2?mytime.getMinutes():"0"+mytime.getMinutes());
	s=((mytime.getSeconds()+"").length==2?mytime.getSeconds():"0"+mytime.getSeconds());
	document.getElementById("timeto").innerHTML=h+":"+m+":"+s;
	setTimeout('fulltime()',1000)
	}
}