﻿var $D=YAHOO.util.Dom
var $EE=YAHOO.ext.Element
var $=$D.get
var $$=$EE.get

Ext.onReady(function () {
	var oMenuBar = new YAHOO.widget.MenuBar("bd-menu", { autosubmenudisplay: true, hidedelay: 750, lazyload: true });
	oMenuBar.render();
	if ($$('product-tabs') != null) {
		var tabs = new YAHOO.ext.TabPanel('product-tabs');
		if ($$('product-info') != null) { tabs.addTab('product-info', "Product Info"); }
		if ($$('product-features') != null) { tabs.addTab('product-features', "Product Features"); }
		if ($$('product-specs') != null) { tabs.addTab('product-specs', "Product Specs"); }
		if ($$('product-included') != null) { tabs.addTab('product-included', "Product Includes"); }
		if ($$('packages-with') != null) { tabs.addTab('packages-with', "Packages With"); }
		if ($$('product-reviews') != null) { tabs.addTab('product-reviews', "Reviews"); }

		if ($$('product-info') != null)
		{ tabs.activate('product-info'); }
		else if ($$('product-features') != null)
		{ tabs.activate('product-features'); }
		else if ($$('product-specs') != null)
		{ tabs.activate('product-specs'); }
		else if ($$('product-included') != null)
		{ tabs.activate('product-included'); }
		else if ($$('packages-with') != null)
		{ tabs.activate('packages-with'); }
		else if ($$('product-reviews') != null)
		{ tabs.activate('product-reviews'); }

	}
	if ($$('utmform') != null) { __utmSetTrans(); }
});

