var Default = function() 
{	
    var priv = {
        firstNav : 1,   
        mouseOverDone : true,   
        newVal : -1,   
        maxItems : 6,
        t : 5000,
	    
	    successV : function(result)
	    {
	    },
	    successS : function(result)
	    {
	    } 
    }; 
	return {
    	ChangeFeaturedArticleClean : function(divVal)
        {
    		priv.mouseOverDone = false;
    		clearTimeout(priv.t);
    		$("#feat-page-img"+priv.firstNav).hide();
    		$("#feat-page-img"+divVal).show();
    		$("#feat-pageNavimg"+priv.firstNav).attr("style", "background-position:0 -50px");
    		$("#feat-pageNavimg"+divVal).attr("style", "background-position:0 0");
    		priv.firstNav = divVal;
    	},
    
        ChangeFeaturedArticle : function()
        {
			if (!priv.mouseOverDone)
                return;
                
			if (priv.newVal != -1)
            {
                priv.firstNav = priv.newVal;
                priv.newVal = - 1;
            }
            
			nextNav = priv.firstNav + 1;
            
			if (nextNav == priv.maxItems)
            {
                nextNav = 1;
                priv.firstNav = priv.maxItems - 1;
            }
                  
            //alert(priv.firstNav);
//            alert(nextNav);      
            
			$("#feat-page-img"+priv.firstNav).hide();
			$("#feat-page-img"+nextNav).show();
			$("#feat-pageNavimg"+priv.firstNav).attr("style", "background-position:0 -50px");
			$("#feat-pageNavimg"+nextNav).attr("style", "background-position:0 0");
            
			priv.firstNav = nextNav;
            priv.t = setTimeout("Default.ChangeFeaturedArticle()", 5000);
        },
        
	    StartFeatured : function(newVal)
		{
            priv.newVal = newVal;
			priv.mouseOverDone = true;
			priv.t = setTimeout("Default.ChangeFeaturedArticle()", 5000);
		}
	};
}();