﻿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 doFlashReka2(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 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 doFlash2(tdid, width, height, theSWF, SWFid)
{
  document.getElementById(tdid).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' id=" + SWFid + " width=" + width + " height=" + height + ">"+
  "<param name=movie value='" + theSWF + "' />"+
  "<param name=wmode value=transparent />"+
  "</object>";
}

function doFlash3(tdid, width, height, theSWF)
{
  document.getElementById(tdid).innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width=" + width + " height=" + height + ">"+
  "<param name=movie value='" + theSWF + "' />"+
  "<param name=quality value=high />"+
  "<param name=scale value=noscale />"+
  "<param name=wmode value=transparent />"+
  "</object>";
}

function doFlash4(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 + "' />"+
  "</object>";
}

function doClick2(element, runtimeS, prop1, prop2)
{    
    switch (element.className) 
    { 
       case "tdw" :
            getWL('' + prop1 + '', '' + prop2 + '', '_blank');
            break;
    } 
}

function  getWL(uk, uNum, tar)
{
    var xmlHttp;
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    if (xmlHttp)
    {
	    xmlHttp.open("GET","urlGive.aspx?uk=" + uk + "&uNum=" + uNum, false);
	    xmlHttp.send();
	    xmlHttp.close;
	    
	    if (xmlHttp.responseText != "no")
        {
            doLw(xmlHttp.responseText, tar)
        }
    }
}

function doLw(WU,theTarget)
{
	linkUwL.href = WU;
	linkUwL.target=theTarget;
	linkUwL.click();
}


