// GLOBAL CONSTANTS
var SITE_CREATED = 2002;        // Initial year the site was created


//_webroot="http://localhost/jericho"

// METHODS
function Copyright()
{   
    if (SITE_CREATED >= new Date().getFullYear())
    {
        document.write("<font color=\"#CCCCCC\">" + new Date().getFullYear() + "</font>");
    }
    else
    {
        document.write("<font color=\"#CCCCCC\">2002-" + new Date().getFullYear() + "</font>");
    }
}
function RenderTopStories(IsHomePage)
{
	var FirstStory    = new Array();
		FirstStory[0]  = "Dallas, TX - Monday, July 21, 2010|Jericho Systems' EnterSpace Decisioning Service (ESDS) Enables Secure and Private Exchange of Patient Medical Records Between DoD, VA, and Private Providers";
		FirstStory[1]  = _webroot + "/index.php?i=Company&page=News/PR_20100721.html";
    
	var SecondStory    = new Array();
		SecondStory[0]  = "San Francisco, CA - Monday, March 8, 2010|Jericho Systems Participates in OASIS Security Standards Interoperability Showcase at RSA Conference 2010";
		SecondStory[1]  = _webroot + "/index.php?i=Company&page=News/PR_20100308.html";
    
	var ThirdStory     = new Array();
        ThirdStory[0]  = "Dallas, TX - Tuesday, January 26, 2010|Jericho Systems Selected to Provide Attribute-Based Access Control (ABAC) Solution for U.S. Army's Service-Oriented Architecture Foundation (SOAF) Jericho's EnterSpace Decisioning Service Enables Secure Sharing of SOA Services and Data for Enterprise-Wide Collaboratio";
        ThirdStory[1]  = _webroot + "/index.php?i=Company&page=News/PR_20100126.html";
        
    var StoryItems     = new Array();
        StoryItems[0]  = FirstStory;
        StoryItems[1]  = SecondStory;
        StoryItems[2]  = ThirdStory;
        
         
    var menu = "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"4\" border=\"0\">";
        
    if(IsHomePage)
    {
        for(var i = 0; i < StoryItems.length; i++)
        {
            var story = StoryItems[i];
            var item  = new Array();
                item  = story[0].split("|");
            
            menu += "   <tr>" +
                    "       <td height=\"25\" valign=\"top\">" +
                    "           <img src=\"assets/img/bullets/Dbl_rt.gif\" style=\"margin-right:3px;margin-top: 2px;width:10px;\">" +
					"       </td>" +
					"		<td>" +
                    "           <a href=\"" + story[1] + "\" class=\"\">" + item[1] + "</a>" + 
                    "       </td>" +
                    "   </tr>";
        }
        
        
        menu += "   <tr>" +
                "       <td colspan=\"2\"><div align=\"right\">" + 
                "           <a href=\"index.php?i=Company&page=News/index.html\"  class=\"more\">More</a>" + 
                "           <img src=\"assets/img/bullets/Tri_more.gif\" alt=\"More\" width=\"13\" height=\"7\" /></div></td>" + 
                "   </tr>" +
                "</table>";
    }
    else
    {
        for(var i = 0; i < StoryItems.length; i++)
        {
            var story = StoryItems[i];
            var item  = new Array();
                item  = story[0].split("|");
            
            menu += "   <tr>" +
                    "       <td valign=\"top\">" + 
                    "           <img src=\"/assets/img/bullets/Dbl_rt.gif\" width=\"7\" height=\"8\" style=\"margin-top:2px;\">" +
                    "       </td>" +
                    "       <td height=\"25\" valign=\"top\">" +
                    "           <span class=\"listdate\">" + item[0] + "</span><br />" + 
                    "           <a href=\"" + story[1] + "\" class=\"\">" + item[1] + "</a>" + 
                    "       </td>" +
                    "   </tr>";
        }
        
        
        menu += "   <tr>" +
                "       <td colspan=\"2\" ><div align=\"right\" class=\"more\">" + 
                "           <a href=\"index.php?i=Company&page=News/index.html\">More</a>" + 
                "           <img src=\"/assets/img/bullets/Tri_more.gif\" alt=\"Learn More\" width=\"13\" height=\"7\"/></div></td>" + 
                "   </tr>" +
                "</table>";                                    
    }
    
    document.write(menu);
}
//document.write("<scr"+"ipt type=text/javascript src=/assets/js/menu/sidemenu.js><\/scr"+"ipt>");
