
var opt_arr = unserialize(opt_serialized_array);

opt_temp_used_keywords = opt_arr[0];

for( opt_z in opt_temp_used_keywords) {
  opt_used_keywords.push(opt_temp_used_keywords[opt_z]);  
}

var opt_results_base_url = opt_arr[1];

function render_keyword(str, id, account_id, base_url) {
	var safe_str = str.replace(/ /g, "+");
	str = str.capitalize();
	str = capWords(str);

	if ( opt_style != -1 ) {
		var ret = '<li style="' + unserialize(decodeBase64(opt_style)) + '"><a href="' + base_url + '?searchKey=' + safe_str + '&iID=' + id + '&account_id=' + account_id + '" title="' + str + '" rel="nofollow" style="' + unserialize(decodeBase64(opt_style2)) + '">' + str + '</a></li>';
	} else {
		var ret = '<li><a href="' + base_url + '?searchKey=' + safe_str + '&iID=' + id + '&account_id=' + account_id + '" title="' + str + '" rel="nofollow">' + str + '</a></li>';
	}

	return ret;
}

for (var opt_key in opt_arr) {
   if(opt_key == 0 | opt_key == 1) {
     continue; 
   } else {
     //print_object(arr[key]); 
     document.write(render_keyword(opt_arr[opt_key][0], opt_arr[opt_key][1], opt_account_id, opt_results_base_url)); 
   }
}

if ( opt_style != -1 ) {
	opt_style = -1;
}
