//require(["jquery.scrollable.min"]);
function showProductTab(whichTab)
{
	var aE=$('productInformation').select('.activeBlock');
	aE.invoke('removeClassName','activeBlock');
	$('product'+whichTab+'Tab').addClassName('activeBlock');
	$('product'+whichTab).addClassName('activeBlock');
}
function showShadowTab(whichTabSet,whichTab)
{
	var aE=$(whichTabSet).select('.activeBlock');
	aE.invoke('removeClassName','activeBlock');
	$(whichTab+'Tab').addClassName('activeBlock');
	$(whichTab+'TabContent').addClassName('activeBlock');
}
function psPageInit()
{
	switch(document.body.id)
	{
		case 'psLandingPage':
			var cDescs=$('allProducts').select('span.catDesc');
			cDescs.each(function(cd){
				if(! cd.innerHTML.blank())
				{
					new Tip(cd.up('a').id,cd.innerHTML,{style:'pbOrange',stem:'topLeft',hook:{tip:'topLeft',mouse:true},offset:{x:14,y:14}});
				}
			});
		break;
		default:
			if(document.body.hasClassName('productDetails_page'))
			{
				var cDescs=$('productSpecs').select('span.tipData');
				cDescs.invoke("setStyle",{'display':'none'});
				cDescs.each(function(cd){
					new Tip(cd.up('div.hoverTip').id,cd.innerHTML,{style:'pbOrange',stem:'topLeft',hook:{tip:'topLeft',mouse:true},offset:{x:14,y:14}});
				});
			}
		break;
	}
}

Event.observe(window, 'load', psPageInit);
