function RunFoo()
{
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="468" height="60">\n');
   document.write('<param name="movie" value="http://www.virtualworlddirect.com/flash_tools/tools/euromillions3.swf?EU_LOTTO_JACKPOT_UK=30 Million GBP&theLink=http://www.virtualworlddirect.com/41259AL&popup=1" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<embed src="http://www.virtualworlddirect.com/flash_tools/tools/euromillions3.swf?EU_LOTTO_JACKPOT_UK=30 Million GBP&theLink=http://www.virtualworlddirect.com/41259AL&popup=1" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60"></embed>\n');
   document.write('</object>\n');
}

 function RunFoo2()
{
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="468" height="60">\n');
   document.write('<param name="movie" value="http://www.virtualworlddirect.com/flash_tools/tools/euromillions.swf?theLink=http://www.virtualworlddirect.com/41259AL&popup=1" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<embed src="http://www.virtualworlddirect.com/flash_tools/tools/euromillions.swf?theLink=http://www.virtualworlddirect.com/41259AL&popup=1" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60"></embed>\n');
   document.write('</object>\n');
}

 function RunFoo3()
{
   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="gag_icon4" align="middle" height="60" width="470">\n');
   document.write('<param name="allowScriptAccess" value="sameDomain" />\n');   
   document.write('<param name="movie" value="http://www.virtualworlddirect.com/flash_tools/tools/gag_standard.swf?theLink=http%3A%2F%2Fwww%2Evirtualworlddirect%2Ecom%2Fredir%2Easp%3Fm%3D41259AL%26target%3D%2Fdefault%2Easp%3Fgoto%3D%2Fvwdguest%2Fmatch5%2Easp&popup=1" />\n');
   document.write('<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />\n');
   document.write('<embed src="http://www.virtualworlddirect.com/flash_tools/tools/gag_standard.swf?theLink=http%3A%2F%2Fwww%2Evirtualworlddirect%2Ecom%2Fredir%2Easp%3Fm%3D41259AL%26target%3D%2Fdefault%2Easp%3Fgoto%3D%2Fvwdguest%2Fmatch5%2Easp&popup=1" quality="high" bgcolor="#ffffff" name="gag_icon4" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" height="60" width="470"></embed>\n');
   document.write('</object>\n');
}

function RunPopUnder()
{
	
//Pop-under window- By JavaScript Kit
//Credit notice must stay intact for use
//Visit http://javascriptkit.com for this script

//specify page to pop-under
// var popunder="http://website.ws/kvmlm2/ws.dhtml?sponsor=ruimartinho&template=1"
var popunder="http://website.ws/kvmlm2/ws.dhtml?sponsor=ruimartinho&template=1"

//specify popunder window features
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=1024,height=768,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"

//Pop-under only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=0

///No editing beyond here required/////

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunder()
else
loadornot()   
}

