	function hoverTab(tabData){

		tabData.style.backgroundPosition = " 0% -50px";

		tabData.style.lineHeight = "24px";

	}

	

	function outTab(tabData){

		tabData.style.backgroundPosition = " 0% -25px";

	}

	

	function executeTab(tabData){

		tabData.className = "tabactive";

		tabData.style.backgroundPosition = " 0% -0px";

		tabData.onmouseover=function(){};

		tabData.onmouseout=function(){};

	}



    function show_tab(idForDisplay){

        /*var tab1 = document.getElementById('tab1');

        var tab2 = document.getElementById('tab2');

        var tab3 = document.getElementById('tab3');

        var tab4 = document.getElementById('tab4');

        var tab5 = document.getElementById('tab5');



        tab1.className = '';

        tab2.className = '';

        tab3.className = '';

        tab4.className = '';

        tab5.className = '';*/



        var tab1_content = document.getElementById('tab1_content');

        var tab2_content = document.getElementById('tab2_content');
		var tab2_content_bottom = document.getElementById('tab2_content_bottom');

        var tab3_content = document.getElementById('tab3_content');
		var tab3_content_bottom = document.getElementById('tab3_content_bottom');

        var tab4_content = document.getElementById('tab4_content');
		var tab4_content_bottom = document.getElementById('tab4_content_bottom');

        //var tab5_content = document.getElementById('tab5_content');



        tab1_content.style.display = 'none';

        tab2_content.style.display = 'none';
		tab2_content_bottom.style.display = 'none';

        tab3_content.style.display = 'none';
		tab3_content_bottom.style.display = 'none';

        tab4_content.style.display = 'none';
		tab4_content_bottom.style.display = 'none';

        //tab5_content.style.display = 'none';



        var selected = document.getElementById(idForDisplay+"_content");
		 var selectedbottom = document.getElementById(idForDisplay+"_content_bottom");

        selected.style.display = '';
		selectedbottom.style.display = '';

         /*

        var selected_tab = document.getElementById(idForDisplay);

        if(idForDisplay == 'tab5'){

            selected_tab.className = 'selected2';

        }else{

            selected_tab.className = 'selected';

        }*/

    }



    function show_small_tabs(idForDisplay){

        var tab1 = document.getElementById('tags_tab');

        var tab2 = document.getElementById('poll_tab');

        var tab3 = document.getElementById('comments_tab');



        tab1.className = 'tags_tab';



        tab2.className = 'poll_tab';



        tab3.className = 'comments_tab';



        var tab1_content = document.getElementById('tags_content');

        var tab2_content = document.getElementById('poll_content');

        var tab3_content = document.getElementById('comments_content');



        tab1_content.style.display = 'none';

        tab2_content.style.display = 'none';

        tab3_content.style.display = 'none';





        if(idForDisplay == 'tags')

        {

           tab1_content.style.display = '';

           tab1.className = 'tags_tab_selected';

        }

        if(idForDisplay == 'poll')

        {

           tab2_content.style.display = '';

           tab2.className = 'poll_tab_selected';

        }

        if(idForDisplay == 'comments')

        {

           tab3_content.style.display = '';

           tab3.className = 'comments_tab_selected';

        }



    }



    function change_news_tab(idForDisplay){

        var tab1 = document.getElementById('channels_tab');

        var tab2 = document.getElementById('news_tab');

        tab1.className = 'channels_tab';

        tab2.className = 'news_tab';



        var tab1_content = document.getElementById('channels_content');

        var tab2_content = document.getElementById('news_content');

        tab1_content.style.display = 'none';

        tab2_content.style.display = 'none';



        if(idForDisplay == 'channels')

        {

           tab1_content.style.display = '';

           tab1.className = 'channels_tab_selected';

        }

        if(idForDisplay == 'news')

        {

           tab2_content.style.display = '';

           tab2.className = 'news_tab_selected';

        }



    }



    /*function showTabData(idForDisplay){

		var tabFeatured = document.getElementById('tab-featured');

		var tabToprated = document.getElementById('tab-toprated');

		var tabMostview = document.getElementById('tab-mostview');



		var featuretab = document.getElementById('featuretab');

		var topratedtab = document.getElementById('topratedtab');

		var mostviewedtab = document.getElementById('mostviewedtab');



		tabFeatured.style.display = "none";

		tabToprated.style.display = "none";

		tabMostview.style.display = "none";



		featuretab.className = "";

		topratedtab.className = "";

		mostviewedtab.className = "";



		featuretab.style.backgroundPosition = " 0% -25px";

		topratedtab.style.backgroundPosition = " 0% -25px";

		mostviewedtab.style.backgroundPosition = " 0% -25px";



		featuretab.onmouseover=function(){hoverTab(this);}

		topratedtab.onmouseover=function(){hoverTab(this);}

		mostviewedtab.onmouseover=function(){hoverTab(this);}



		featuretab.onmouseout=function(){outTab(this);}

		topratedtab.onmouseout=function(){outTab(this);}

		mostviewedtab.onmouseout=function(){outTab(this);}



		if (idForDisplay == "featured"){

			tabFeatured.style.display = "block";

			executeTab(featuretab);

		}

		else if(idForDisplay == "toprated"){

			tabToprated.style.display = "block";

			executeTab(topratedtab);

		}

		else if(idForDisplay == "mostview"){

			tabMostview.style.display = "block";

			executeTab(mostviewedtab);

		}



 	}*/