var k = 0;
var j = 0;
goURL = '';

function showList() {
	if (k == 0){
		document.getElementById('dropList').style.display = 'block';
		document.getElementById('dropDownBttn').src = '/Style Library/Images/AIC/bttn_dropdown_on.gif';
		k = 1;
		j = 0;
	} 
}
function hideList() {
	if (k == 1){
		document.getElementById('dropList').style.display = 'none';
		document.getElementById('dropDownBttn').src = '/Style Library/Images/AIC/bttn_dropdown.gif';
		k = 0;
		j = 0;
	}
}
function clickCheck(){
	if (j == 0){
		document.getElementById('dropList').style.display = 'none';
		document.getElementById('dropDownBttn').src = '/Style Library/Images/AIC/bttn_dropdown.gif';
		j = 1;
	} else if (j == 1){
		document.getElementById('dropList').style.display = 'block';
		document.getElementById('dropDownBttn').src = '/Style Library/Images/AIC/bttn_dropdown_on.gif';
		j = 0;
	}
}
function updateSelect(selection,theURL) {
	j = 0;
	document.getElementById('selected').innerHTML = selection;
	document.getElementById('dropDownBttn').src = '/Style Library/Images/AIC/bttn_dropdown.gif';
	goURL = theURL;
	hideList();
}
function gotoURL(){
	if (goURL == ''){
	    if (advisorURL)
	        window.open (advisorURL,"_top");
	    else
		    window.open ("https://advisoronline.aic.com/index.asp?AOL=Y","_top");
	} else {
		window.open (goURL,"_top");
	}
}