// JavaScript Document

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

function getStringVar(st){
  var temp = self.document.location.search;
  if(temp.indexOf(st) >= 0){
    temp = temp.substring((temp.indexOf(st)+(st.length+1)), temp.length);
    temp = temp.substring(0, (((temp.indexOf('&')>=0)?temp.indexOf('&'):temp.length)));
    for (var i=0;i<temp.length;i++){
      if (temp.charAt(i) == "+") {
        temp = temp.substring(0, i) + " " + temp.substring(i+1, temp.length+1);
      }
    }
  }else{ 
    temp = '';
  } 
  return unescape(temp);
}




addLoadEvent(function() {
	var page = getStringVar("b");
	if ((page=="787021") || (page=="853215") || (page=="827189") || (page=="2116897") || (page=="1083229") || (page=="841059")) {
		var images = document.getElementsByTagName('IMG');
		for (i=0;i<images.length;i++) {
			if (images[i].src.indexOf("/CommonLib/images/ccVisaLogo.gif") > 0) {
				images[i].parentNode.innerHTML = "<img src='/atf/cf/{D25B4747-42A3-4302-8D48-EF35C0B0D9F1}/at_visa.gif'><br /><a href='http://s0b.bluestreak.com/ix.e?hy&s=4017648&a=4892201' target='_blank'>Get more info</a>";
			}
			if (images[i].src.indexOf("/CommonLib/images/ccMasterCardLogo.gif") > 0) {
				images[i].style.display = "none";
			}
			if (images[i].src.indexOf("/CommonLib/images/ccAmericanExpressLogo.gif") > 0) {
				images[i].style.display = "none";
			}
			if (images[i].src.indexOf("/CommonLib/images/ccDiscoverLogo.gif") > 0) {
				images[i].style.display = "none";
			}
		}
	}
});