/*
 Section 1. CONFIGURATION
********************************************************************************************** 
 If you want to access these files from anywhere other than where XcDirectory is installed,  
 be sure you set the gsDirURL!=
     example:  var gsDIRURL = 'http://www.example.com/Directory/';
 
 Note: Users familiar with JavaScript can customize the functions below;
 if you are not familiar with JavaScript, only edit this section.   
**********************************************************************************************
*/

var gsDIRURL = 'http://www.harborclassifieds.com/websites/';


/*
Section 2. FUNCTIONS TO DISPLAY LINKS
*************************************************************
You can create your own functions or edit the existing ones using the following parameters  
If any parameter is omitted, the default behavior is used
    
    Type: "HITSTODAY", "HITSTOTAL", "NEW"; what type of links to display; default: HITSTOTAL
    Num: numeric value of the max. number of links you want to display; default: 5
    DispDateAdded: Y/N; whether to display column with date added; default: Y
    DispDailyHits: Y/N; whether to display a "Daily Hits" column; default: Y
    DispTotalHits: Y/N; whether to display a "Total Hits" column; default: Y
    DispListNumber: Y/N; whether to display the sequential number for each link displayed (1. , 2. , 3. , etc); default: Y
    
    Sample script tag syntax:
        function MyNewFunction(){
            document.write ('<SCRIPT SRC = "http://www.example.com/XcDirFunctionDispLinks.asp?Type=NEW&Num=10&DispDateAdded=Y&DispDailyHits=Y&DispTotalHits=Y"></SCRIPT>');
        }
    
    Note that the page where you are displaying the links should include the following XcDirectory css settings:
        DirFrontPageNewLinksBorder, DirFrontPageNewLinksTitleCell, DirFrontPageNewLinks   
***********************************************************
*/
 
function Xc_DispHotDayLinks(plNumToDisplay){    
    document.write ('<SCRIPT SRC = "' + gsDIRURL + 'XcDirFunctionDispLinks.asp?TYPE=HITSTODAY&DispDateAdded=N&DispDailyHits=Y&DispTotalHits=N&DispListNumber=Y&Num=' + plNumToDisplay + '"></SCRIPT>');
}

function Xc_DispHotTotalLinks(plNumToDisplay){  
    document.write ('<SCRIPT SRC = "' + gsDIRURL + 'XcDirFunctionDispLinks.asp?TYPE=HITSTOTAL&DispDateAdded=N&DispDailyHits=N&DispTotalHits=Y&DispListNumber=Y&Num=' + plNumToDisplay + '"></SCRIPT>');
}
function Xc_DispNewLinks(plNumToDisplay){
    document.write ('<SCRIPT SRC = "' + gsDIRURL + 'XcDirFunctionDispLinks.asp?TYPE=NEW&DispDateAdded=Y&DispDailyHits=N&DispTotalHits=N&DispListNumber=Y&Num=' + plNumToDisplay + '"></SCRIPT>');
}

/*
********************************************************************************************** 
Section 3. FUNCTION TO DISPLAY MAIN CATEGORIES
    ShowMainCount: Y/N; whether to display column with date added; default: Y
    
    Note that the page where you are displaying the categories should include the DirMainCatLink XcDirectory css settings    
**********************************************************************************************
*/

function Xc_DispDirCats(){
   document.write ('<SCRIPT SRC = "' + gsDIRURL + 'XcDirFunctionDispCats.asp?ShowMainCount=Y"></SCRIPT>');    
   
}    

/*
********************************************************************************************** 
Section 3. FUNCTIONS TO DISPLAY RANDOM LINK
    ShowFeaturedOnly: Y/N; whether to limit the selection only to featured links; default: N
    CatID: numeric; used to limit the selection to a specific category, if 0 is specified then all categories used; default: 0
    
    Note that the page where you are displaying the categories should include the DirMainCatLink XcDirectory css settings    
**********************************************************************************************
*/

function Xc_DispRandomLink(plCatID){
    document.write ('<SCRIPT SRC = "' + gsDIRURL + 'XcDirFunctionDispRandomLink.asp?FeaturedOnly=N&CATID=' + plCatID + '"></SCRIPT>');      
}    
    
function Xc_DispRandomFeaturedLink(plCatID){
    document.write ('<SCRIPT SRC = "' + gsDIRURL + 'XcDirFunctionDispRandomLink.asp?FeaturedOnly=Y&CATID=' + plCatID + '"></SCRIPT>');      
}    

 
