function clickHandler(e) { 
    var elTarget = YAHOO.util.Event.getTarget(e);    
    while (elTarget.id != "wrapper") { //change this or change HTML to use it or something
        if(elTarget.nodeName.toUpperCase() == "A") { 
			contentHandler(elTarget.id);
            break; 
        } else { 
            elTarget = elTarget.parentNode; 
        } 
    } 
};

var initController = function () {
    
    YAHOO.util.History.register("tabview", initialTabViewState, function (state) {
		contentHandler(state);
    });
    YAHOO.util.History.onReady(function () {
        var currentState;
        currentState = YAHOO.util.History.getCurrentState("tabview");
		contentHandler(currentState);
    });

    try {
        YAHOO.util.History.initialize("yui-history-field", "yui-history-iframe");
    } catch (e) {
        // The only exception that gets thrown here is when the browser is
        // not supported (Opera, or not A-grade) Degrade gracefully.
    }
};