addLoadEvent(linkToUsSetup);




function linkToUsSetup() {

	var linkTitle = new Array();
	var linkCode = new Array();
	
	linkTitle[1] = "Selected: Extra Small #1 (120 x 20)";
	linkCode[1] = "<a href=\"http://thrull.qcorps.com/WebStrategies/GEC_v2-55\"><img border=\"0\" src=\"http://www.whitefence.com/qsrimages/linkShare/GEC/GEC-xsm-01.gif\" /></a>";
	
	linkTitle[2] = "Selected: Extra Small #2 (120 x 20)";
	linkCode[2] = "<a href=\"http://thrull.qcorps.com/WebStrategies/GEC_v2-55\"><img border=\"0\" src=\"http://www.whitefence.com/qsrimages/linkShare/GEC/GEC-xsm-02.gif\" /></a>";
	
	linkTitle[3] = "Selected: Small #1 (120 x 80)";
	linkCode[3] = "<a href=\"http://thrull.qcorps.com/WebStrategies/GEC_v2-55\"><img border=\"0\" src=\"http://www.whitefence.com/qsrimages/linkShare/GEC/GEC-sm-01.gif\" /></a>";
	
	linkTitle[4] = "Selected: Small #2 (120 x 80)";
	linkCode[4] = "<a href=\"http://thrull.qcorps.com/WebStrategies/GEC_v2-55\"><img border=\"0\" src=\"http://www.whitefence.com/qsrimages/linkShare/GEC/GEC-sm-02.gif\" /></a>";
	
	linkTitle[5] = "Selected: Banner #1 (468 x 60)";
	linkCode[5] = "<div style=\"font-family: Verdana, Arial; position:relative; display: block; width: 468px; height: 60px; text-decoration: none\"><div style=\"position:absolute; top: 12px; right: 6px; color: #262; z-index: 99; width: 200px; font-size: 10pt; font-weight: bold; line-height: 12pt; text-align:right;\">Order <a style=\"color: #080; text-decoration: underline;\" href=\"http://thrull.qcorps.com/WebStrategies/GEC_v2-55\">Green Energy</a> from Leading Providers</div><a href=\"http://thrull.qcorps.com/WebStrategies/GEC_v2-55\" ><img width=\"468\" height=\"60\" border=\"0\" src=\"http://www.whitefence.com/qsrimages/linkShare/GEC/GEC-banner-01.jpg\" /></a></div>";	
	
	linkTitle[6] = "Selected: Banner #2 (468 x 60)";
	linkCode[6] = "<div style=\"font-family: Verdana, Arial; position:relative; display: block; width: 468px; height: 60px; text-decoration: none\"><div style=\"position:absolute; top: 12px; right: 6px; color: #262; z-index: 99; width: 200px; font-size: 8pt; font-weight: bold; line-height: 12pt; text-align:right;\">Purchase <a style=\"color: #080; text-decoration: underline;\" href=\"http://thrull.qcorps.com/WebStrategies/GEC_v2-55\">Renewable Energy Credits</a> to Offset Your Usage</div><a href=\"http://thrull.qcorps.com/WebStrategies/GEC_v2-55\"><img width=\"468\" height=\"60\" border=\"0\" src=\"http://www.whitefence.com/qsrimages/linkShare/GEC/GEC-banner-01.jpg\" /></a></div>";		
	
	textArea = document.getElementById('link-to-us-code');
	textArea.value = "";
	textArea.onclick = function() {
		this.select();
	}
	
	myTitle = document.getElementById('link-to-us-title');
	myImg = document.getElementById('link-to-us-img');
	
	
	link_1 = document.getElementById('link-to-us-01');
	link_1.onclick = function() {
		myTitle.firstChild.nodeValue = linkTitle[1];
		textArea.value = linkCode[1];
		myImg.src = this.firstChild.src;
	}

	link_2 = document.getElementById('link-to-us-02');
	link_2.onclick = function() {
		myTitle.firstChild.nodeValue = linkTitle[2];
		textArea.value = linkCode[2];
		myImg.src = this.firstChild.src;
	}

	link_3 = document.getElementById('link-to-us-03');
	link_3.onclick = function() {
		myTitle.firstChild.nodeValue = linkTitle[3];
		textArea.value = linkCode[3];
		myImg.src = this.firstChild.src;
	}
	
	link_4 = document.getElementById('link-to-us-04');
	link_4.onclick = function() {
		myTitle.firstChild.nodeValue = linkTitle[4];
		textArea.value = linkCode[4];
		myImg.src = this.firstChild.src;
	}

	link_5 = document.getElementById('link-to-us-05');
	link_5.onclick = function() {
		myTitle.firstChild.nodeValue = linkTitle[5];
		textArea.value = linkCode[5];
		myImg.src = 'http://www.whitefence.com/qsrimages/linkShare/GEC/GEC-banner-dummy-01.jpg';
	}

	link_6 = document.getElementById('link-to-us-06');
	link_6.onclick = function() {
		myTitle.firstChild.nodeValue = linkTitle[6];
		textArea.value = linkCode[6];
		myImg.src = 'http://www.whitefence.com/qsrimages/linkShare/GEC/GEC-banner-dummy-02.jpg';
	}
	
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
	  oldonload();
	  func();
	}
  }
}
