/* 
 * Copyright 2007 Jeremy KUHN
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

zwg.namespace('zwg.widgets.banner');

/**
 * Banner001 Widget library.
 * @ignore
 * @author Jeremy KUHN
 */
zwg.widgets.banner.Banner001 = function() {

}
/**
 * Select a tab by loading the specified URL.
 * @param {URL} string_url The URL to load.
 */
zwg.widgets.banner.Banner001.selectTab = function(string_url) {
	window.location = zwg.baseURI+string_url;
}
/**
 * HighLight/Darken tab item.
 * @param {String} element_tab The tab item.
 * @param {Boolean} boolean_highlight true/false.
 */
zwg.widgets.banner.Banner001.setTabHighlight = function(element_tab, boolean_highlight) {
	if(boolean_highlight) {
		if(element_tab.className != 'banner001_tabItem banner001_tabItem-selected') {
			element_tab.className = 'banner001_tabItem banner001_tabItem-hightlight';
		}
	}
	else {
		if(element_tab.className == 'banner001_tabItem banner001_tabItem-hightlight') {
			element_tab.className = 'banner001_tabItem';
		}
	}
}