
var tabMenu=function(obj)
{this.initialize(obj);}
tabMenu.prototype={initialize:function(obj)
{var self=this;this.obj=obj;this.currentTab=0;this.menu=$(this.obj.menu);this.content=$(this.obj.content);this.setObservers();},setObservers:function(){var self=this;$(this.menu).each(function(i,elm){$(elm).children().eq(0).click(function(){if(i!=self.currentTab){$($(self.menu)[self.currentTab]).children().eq(0).removeClass('active');$(this).addClass('active');$($(self.content)[self.currentTab]).hide();$($(self.content)[i]).show();self.currentTab=i;}
return false;});});}};$(document).ready(function()
{new tabMenu({menu:'.tabMenu li',content:'.tabContent .item'});});var selectDistributors=function(obj)
{this.initialize(obj);}
selectDistributors.prototype={initialize:function(obj)
{var self=this;this.obj=obj;$(this.obj.selectBox).change(function(){window.location=self.getSelectedOption(this);});},getSelectedOption:function(elm)
{var value=false;for(var i=0;i<elm.options.length;i++)
{if(elm.options[i].selected==true)
{if(elm.options[i].value!='none')
{value=elm.options[i].value;}}}
return value;}};$(document).ready(function()
{if($('.selectDistributor').size()>0){new selectDistributors({selectBox:'.selectDistributor'});}});
