function diffusion_tracker_ShowAd() { this.adCreated = false; this.closed = function() { var body = document.getElementsByTagName('body')[0]; this.adCreated = false; return false; } this.createAdDiv = function() { var body = document.getElementsByTagName('body')[0]; var div = document.createElement('div'); div.id = 'theAd4572'; div.style.display = 'none'; div.style.width = '300px'; div.style.left = '-5000px'; div.style.top = 0; div.style.padding = '0px !important'; div.style.margin = '0 !important'; div.style.margin = '0 !important'; div.style.margin = '0 !important'; div.style.position = 'absolute'; div.style.background = '#ffffff'; div.style.zIndex = 10; div.style.border = '1px #000000 solid'; var closediv = document.createElement('div'); closediv.style.background = '#ffffff'; closediv.style.height = '18px'; closediv.style.textAlign = 'right'; var a = document.createElement('a'); a.style.fontFamily = 'Arial, Helvetica, sans-serif'; a.style.fontSize = '11px'; a.style.color = '#000000'; a.style.textDecoration = 'none'; a.onclick = function() { div.removeChild(contentdiv); body.removeChild(div); KBAD4572.closed(); return false; } a.href = '#'; var txtclose = 'close'; a.appendChild(document.createTextNode(txtclose)); closediv.appendChild(a); var contentdiv = document.createElement('div'); contentdiv.id = 'kbcontent4572'; var seventhdiv = document.createElement('div'); seventhdiv.style.textAlign = 'right'; seventhdiv.style.background = '#ffffff'; seventhdiv.style.height = '18px'; var seventha = document.createElement('a'); seventha.style.fontFamily = 'Arial, Helvetica, sans-serif'; seventha.style.fontSize = '11px'; seventha.style.color = '#000000'; seventha.style.textDecoration = 'none'; seventha.href = 'http://www.the7thchamber.com'; seventha.target = '_blank'; var txtseventh = 'powered by the 7thchamber'; seventha.appendChild(document.createTextNode(txtseventh)); seventhdiv.appendChild(seventha); div.appendChild(closediv); div.appendChild(contentdiv); div.appendChild(seventhdiv); var body = document.getElementsByTagName('body')[0]; body.appendChild(div); } this.clicked = function() { this.createAdDiv(); var adDiv = document.getElementById("theAd4572"); if (adDiv) { if (!this.adCreated) { this.adCreated = true; var so = new SWFObject('http://www.the7thchamber.com/show/mediaplayer.swf','mpl','300','250','9'); so.addParam('allowfullscreen','true'); so.addParam('allowscriptaccess','always'); so.addVariable('file','http://cdn.diffusiontracker.com/articles/47/assets/telnic_dot_tel_640x412.flv'); so.addVariable('height','250'); so.addVariable('width','300'); so.addVariable('frontcolor','0xffffff'); so.addVariable('backcolor','0x000000'); so.addVariable('lightcolor','0xff6600'); so.addVariable('shuffle','false'); so.addVariable('overstretch','true'); so.addVariable('autostart','true'); so.addVariable('searchbar','false'); so.addVariable('customDt',"true"); so.addVariable('dt_embedurl',location.href); so.addVariable("dt_morelink","http://ad.doubleclick.net/clk;213768619;35375077;t?http://www.getyourtelname.com"); so.addVariable("dt_morepic","http://cdn.diffusiontracker.com/articles/47/assets/final_frame.jpg"); so.addVariable("image","http://cdn.diffusiontracker.com/articles/47/assets/first_frame.jpg"); so.addVariable("dt_engagement_url","http://ad.doubleclick.net/clk;213768619;35375077;t?http://www.getyourtelname.com"); so.addVariable("dt_engagement_title","The Love Train"); so.addVariable("dt_tsid","278"); so.addVariable("dt_aid","sa"); so.write('kbcontent4572'); adDiv.style.display = 'inline'; this.positionAsset(); } else { this.adCreated = false; adDiv.style.display = "none"; document.getElementById("kbcontent4572").innerHTML = ""; } } return false; } this.findPos = function(obj) { var curleft = curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft; curtop = obj.offsetTop; while (obj = obj.offsetParent) { curleft += obj.offsetLeft; curtop += obj.offsetTop; } } return [curleft,curtop]; } this.positionAsset = function() { var imgDiv = document.getElementById('imgDiv4572'); var adDiv = document.getElementById('theAd4572'); var dim = this.pageDimensions(); var pos = this.findPos(imgDiv); var wrapperLeft = pos[0]; var wrapperTop = pos[1] - 1; adDiv.style.top = wrapperTop + "px"; if (wrapperLeft / dim[0] < 0.5) { var offset = 1; adDiv.style.left = (wrapperLeft - offset) + "px"; } else { var offset = 80; adDiv.style.left = (wrapperLeft - offset) + "px"; } } this.pageDimensions = function() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } return [myWidth,myHeight]; } } document.write("
"); document.write("
Click To Watch The Love Train
The Love Train (Sponsored)
"); document.write("
"); var KBAD4572 = new diffusion_tracker_ShowAd();