function setupTabs(){
	glow.dom.get("div#d-we-recommend").addClass("selected"); // corress content to the default tab (see below)
	glow.dom.get("#d-tv-schedule").addClass("selected"); // tabs locationm - sets the default tab
	glow.dom.get("#a-tv-schedule").addClass("selected"); // tabs locationm - sets the default tab
	var elements = {
		Tabs        :glow.dom.get("ul#tabs li a")    
	}
    
	// 2nd part this switches the panel
	function switchMainPanel(obj) {
		elements.Tabs.each(function () { // grabbing tabs
			if (glow.dom.get(this).attr("id") == "a-" + obj) {
				glow.dom.get(this).addClass("selected");    
			} else {
				glow.dom.get(this).removeClass("selected");
			}
		});
		glow.dom.get("div.tab-hook").removeClass("selected");
		glow.dom.get("#d-" + obj).addClass("selected");
	}
    
    //first part
	elements.Tabs.each(function () { 
        var myId = glow.dom.get(this).attr('id');

        //console.log(myId);
		if( myId!= null){
        	var ident = myId.substring(2, myId.length); // strips off the first two characters e.g. most-popular
        	//console.log(ident);
        	glow.events.addListener(this, 'click', function () {
                //this.focus();
                switchMainPanel(ident); // passing the edited param
                return false;   
        	});
		}
    
    });

}