// JavaScript Document
 var TabControl = {
	 	Init : function(){
			this.Tabs = new Array();
			this.Register('sol-inner-left-tab-1', 'sol-inner-left-content-list-1');
			this.Register('sol-inner-left-tab-2', 'sol-inner-left-content-list-2');
			tabHeights1 = new ColumnHeights('sol-inner-left-content-list-shell','sol-inner-right-content');
			this.SetActive();
		},
		Register : function(tabId, containerId){
			
			this.Tabs[tabId] = containerId;
			
				$(tabId).onclick = function(){
					
					TabControl.Activate(tabId);

				}
		},
		Activate : function(tabId){
			for (tab in this.Tabs) {
				try{
					 if(tabId!=tab){
						 $(this.Tabs[tab]).style.display = 'none';
						 $(tab).className = 'tab-off';
					 }
					 else{
						 $(this.Tabs[tab]).style.display = 'block';
						 $(tab).className = 'tab-on';
					 }
				}catch(ex){}
			}
		},
		SetActive : function(){
			for (tab in this.Tabs) {
  				 try{
					 if($(tab).className == 'tab-off'){
						 $(this.Tabs[tab]).style.display = 'none';
					 }
					 else{
						 $(this.Tabs[tab]).style.display = 'block';
					 }
				  }catch(ex){
						
				}
			}	
		}
 }
 
ColumnHeights = function(column1, column2){
		this.Properties = new Object();
		this.Properties.Col1 = $(column1);
		this.Properties.Col2 = $(column2);
	}
ColumnHeights.prototype.Check = function(offset){
		//Get tallest
		var maxHeight = Math.max(this.Properties.Col1.offsetHeight+offset, this.Properties.Col2.offsetHeight);
		this.Properties.Col1.style.height = (maxHeight-offset) + 'px';
		this.Properties.Col2.style.height = maxHeight + 'px';
	}
var Solutions = {
	Init : function(twoColumns){
			TabControl.Init();
			if(twoColumns){
				tabHeights1.Check(102);
			}
			else{
				try{
					Effect.SlideDown('sol-inner-anim', {duration:1.25});	
				}catch(ex){}
			}
	}
}