// JavaScript Document
jQuery(document).ready(function() {
    /*var cnt = jQuery('.tabsThumbsDiv td').length;
	var indexSet=0;
	intX=setInterval(function(){
		if (indexSet+1 > cnt){indexSet=0;}
		for (i = 0; i < cnt; i++) {
			$("#focus" + (i + 1)).addClass('disNone');
		}
		$("#focus" + (indexSet + 1)).removeClass('disNone');
	indexSet++;
	},5000);
	
    jQuery('#tabsThumbsDiv td').each(function(e) {
        $(this).mouseover(function() {
			
            for (i = 0; i < cnt; i++) {
                $("#focus" + (i + 1)).addClass('disNone');
            }
            $("#focus" + (e + 1)).removeClass('disNone');
        });
		indexSet=e+1;
	
    });
*/

	
		$("#top_news div").hide();
		//$("#top_news div.selected").show();
		$("#top_news_link div").click(
		function(){
			$("#top_news_link div").removeClass('selected'); 
			$(this).addClass('selected'); 
 			$("#top_news div").hide();
			
			$("#ahmad").animate({width:0},"slow");
			$("#"+$(this).attr("title")).show();
			$("#ahmad").animate({width:625},"slow");
			sec = 999;
 			

			}
		);
		
		
    var cntb = jQuery('#wrapperTabsb td').length;
    jQuery('#wrapperTabsb td').each(function(e) {
        $(this).mouseover(function() {
            for (i = 0; i < cntb; i++) {
                $("#blueT" + (i + 1)).addClass('disNone');
            }
            $("#blueT" + (e + 1)).removeClass('disNone');
        });
    });

    var cnto = jQuery('#wrapperTabso td').length;
    jQuery('#wrapperTabso td').each(function(e) {
        $(this).mouseover(function() {
            for (i = 0; i < cnto; i++) {
                $("#OrgT" + (i + 1)).addClass('disNone');
            }
            $("#OrgT" + (e + 1)).removeClass('disNone');
        });
    });

    var cntr = jQuery('#wrapperTabsr td').length;
    jQuery('#wrapperTabsr td').each(function(e) {
        $(this).mouseover(function() {
            for (i = 0; i < cntr; i++) {
                $("#redT" + (i + 1)).addClass('disNone');
            }
            $("#redT" + (e + 1)).removeClass('disNone');
        });
    });

    var cntp = jQuery('#wrapperTabsp td').length;
    jQuery('#wrapperTabsp td').each(function(e) {
        $(this).mouseover(function() {
            for (i = 0; i < cntp; i++) {
                $("#purT" + (i + 1)).addClass('disNone');
            }
            $("#purT" + (e + 1)).removeClass('disNone');
        });
    });

    var cntg = jQuery('#wrapperTabsg td').length;
    jQuery('#wrapperTabsg td').each(function(e) {
        $(this).mouseover(function() {
            for (i = 0; i < cntg; i++) {
                $("#grnT" + (i + 1)).addClass('disNone');
            }
            $("#grnT" + (e + 1)).removeClass('disNone');
        });
    });

    var cntgld = jQuery('#wrapperTabsgld td').length;
    jQuery('#wrapperTabsgld td').each(function(e) {
        $(this).mouseover(function() {
            for (i = 0; i < cntgld; i++) {
                $("#goldT" + (i + 1)).addClass('disNone');
            }
            $("#goldT" + (e + 1)).removeClass('disNone');
        });
    });

});


