﻿//elementID: hold tag id for menu functions on the "over.htc" file
elementID = "";

// array and count for do reka tables - that in bottom.js is made
rekaArrey = new Array();
rekaAcount = 0;

function doFlash(tdid, width, height, theSWF)
{
  document.getElementById(tdid).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width=" + width + " height=" + height + ">"+
  "<param name=movie value='" + theSWF + "' />"+
  "<param name=wmode value=transparent />"+
  "</object>";
}

function flashReka(tdid, width, height, theSWF)
{
  document.getElementById(tdid).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width=" + width + " height=" + height + ">"+
  "<param name=movie value='" + theSWF + "' />"+
  "<param name='scale' value='noscale' />"+
  "<param name='salign' value='lt' />"+
  "<param name=wmode value=transparent />"+
  "</object>";
}

function loadFlashReka(tdid, tdSizeID, isHeight, isWidth)
{  
    if(isHeight==0)
    {
        theHeight = parseInt(document.getElementById(tdSizeID).offsetHeight);
    }
    else
    {
        theHeight = isHeight;
    }
    
    if(isWidth==0)
    {
        theWidth = parseInt(document.getElementById(tdSizeID).offsetWidth); 
    }
    else
    {
        theWidth = isWidth;
    }
 
    document.getElementById(tdid).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width=" + theWidth + " height=" + theHeight + ">"+
    "<param name=movie value='flash/roundBack.swf?theW=" + (theWidth-2) + "&theH=" + (theHeight-2) + "&lineC=0x" + color5 + "&rekaC=0x" + color12 + "&tran=90&tranL=60&round=" + round + "&lineW=1' />"+
    "<param name='scale' value='noscale' />"+
    "<param name='salign' value='lt' />"+
    "<param name=wmode value=transparent />"+
    "</object>";  
}

function getWL(uk, tid, theTarget)
{
    var xmlHttp;
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    if (xmlHttp)
    {
	    xmlHttp.open("GET","urlGive.aspx?uk=" + uk + "&tid=" + tid, false);
	    xmlHttp.send();
	    xmlHttp.close;
	    
	    if (xmlHttp.responseText != "no")
        {
            doLw(xmlHttp.responseText,theTarget)
        }
    }
}

function doLw(WU,theTarget)
{
	linkUwL.href = WU;
	if(theTarget == "1")
	{
	    linkUwL.target="_blank";
	}
	else
	{
	    linkUwL.target="_top";
	}
	linkUwL.click();
}
