//Create the arrays for the url and the text in the node

var address_x = new Array(5);

address_x[0]="http://click.linksynergy.com/fs-bin/click?id=ymqsHDn2nO8&offerid=118789.10000055&type=3&subid=0";
address_x[1]="http://click.linksynergy.com/fs-bin/click?id=ymqsHDn2nO8&offerid=124908.10000136&type=3&subid=0";
address_x[2]="http://www.shareasale.com/r.cfm?b=133370&u=291998&m=18304&urllink=&afftrack=";
address_x[3]="http://click.linksynergy.com/fs-bin/click?id=ymqsHDn2nO8&offerid=118789.10000141&type=3&subid=0";
address_x[4]="http://click.linksynergy.com/fs-bin/click?id=ymqsHDn2nO8&offerid=124908.10000137&type=3&subid=0";
var web_name = new Array(5);
web_name[0]="Shop for the Big Deal of the Day at LampsPlus.com!";
web_name[1]="Save up to 50% on Clearance items at LightingbyGregory.com!";
web_name[2]="Lamps and Lighting at Art & Home";
web_name[3]="Save Money, Be Green with Energy Efficient Lighting from LampsPlus.com!";
web_name[4]="Browse Decorative Children's Lighting!";
var i = 0;
var j = 0;

endOfLink = address_x.length;
endOfName = web_name.length;

function interChange(){

if(address_x && web_name){
i++;
j++;

}

if(i == endOfLink && j == endOfName){

i = 0;
j = 0;
}

var node = document.getElementById("linkx");
node.setAttribute("href",address_x[i]);
txt1 = document.createTextNode(web_name[j]);
while(node.firstChild)
node.removeChild(node.firstChild);
node.appendChild(txt1)
//alert(z);
v = setTimeout("interChange()",3000);
return true;
}



function stopTicker(){

clearTimeout(v);

return;
}


window.onload=function(evt){
interChange();

theDay();

document.getElementById("linkx").onmouseover=function(evt){stopTicker();}

document.getElementById("linkx").onmouseout=function(evt){setTimeout("interChange()",3000);}
disclosureLink();
}

