window.onload = rolloverInit;



function rolloverInit() {	
	for (var i=0; i<document.images.length; i++) {
		if (document.images[i].parentNode.tagName == "A") {
			setupRollover(document.images[i]);
		}
	}
}

function setupRollover(thisImage) {
	thisImage.outImage = new Image();
	thisImage.outImage.src = thisImage.src;
	thisImage.onmouseout = rollOut;

	thisImage.overImage = new Image();
	thisImage.overImage.src = "resources/" + thisImage.id + "_on.png";
	thisImage.onmouseover = rollOver;
	
	thisImage.clickImage = new Image();
	thisImage.clickImage.src = "resources/"+ thisImage.id + "_click.png";
	thisImage.onclick = rollClick;
}

function rollOver() {
	this.src = this.overImage.src;
}

function rollOut() {
	this.src = this.outImage.src;
}

function rollClick() {
	this.src = this.clickImage.src;
	
}
function loadPBSAgent() {
var load = window.open("https://www.pbsnetaccess.com/entitylogin/?portfolio=1042","","scrollbars=1,menubar=0,height=700,width=900,resizable=yes,toolbar=no,location=no,status=no");
}
function loadPBSCustomer() {var load = window.open("https://www.pbsnetaccess.com/customer/?portfolio=1042","","scrollbars=1,menubar=0,height=700,width=900,resizable=1,toolbar=0,location=0,status=0");
}

function loadAIV() {
var load = window.open('http://thrifty.accounts-in-view.com','','scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}

function loadQIV() {
var load = window.open('http://thrifty.quotes-in-view.com','','scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}

function loadAgentLog() {
window.location.href = "http://www.thriftyfinancial.com/index.php?option=com_content&view=article&id=10&Itemid=3";
}

function loadCustomerLog() {
window.location.href = "http://www.thriftyfinancial.com/index.php?option=com_content&view=article&id=11&Itemid=2";
}
