

// animation       // 
// clickable       // 
// content         // 
// draggable       // 
// icon            // 
// icon_data       // 
// map             // google object
// original_data   // 
// position        // google object
// title           // 
// uid             // 
// visible         // 
function specific_MyInfoWindow_Function(markerData) {
    logInConsole("specific_MyInfoWindow_Function called");
    
    var mapPointClick_A = 'Google Map Click - Point Click';
    var mapPointClick_B = 'InfoWindow Popup';
    var mapPointClick_C = 'Point ID:'+markerData.uid+', Parent:'+markerData.title_parent;
    var linkFoundIn_A = 'Google Map - InfoWindow Popup';
    var linkFoundIn_B = 'More Info Click';
    var linkFoundIn_C = 'Marker Parent:'+markerData.title_parent;
    if (typeof currentLocationPageInfo != "undefined") {
        //'pageUID':'46'
        //'pageName':'Allaire State Park'
        // currentLocationPageInfo
        mapPointClick_C = 'Point ID:'+markerData.uid+', Current Page: '+ currentLocationPageInfo.pageName + ", ID:" + currentLocationPageInfo.pageUID;
        linkFoundIn_C = 'Current Page: '+ currentLocationPageInfo.pageName + ", ID:" + currentLocationPageInfo.pageUID;
    };
    
    outgoingLink_Click(mapPointClick_A,mapPointClick_B,mapPointClick_C);
    
    var TemplateContent = '<div class="infoWindow"><div class="title">#{title}</div><div class="content">#{content}</div>';
    if (markerData.url)
        TemplateContent = TemplateContent+'<div class="url"><a href="#{url}">More information..</a></div>';
    
    if (markerData.title_parent && markerData.url_parent)
        TemplateContent = TemplateContent+'<div class="title_parent">This is found in: <a href="#{url_parent}" onclick="outgoingLink_Click(linkFoundIn_A,linkFoundIn_B,linkFoundIn_C);">#{title_parent}</a></div>';
    else if (markerData.title_parent)
        TemplateContent = TemplateContent+'<div class="title_parent">This is found in: #{title_parent}</div>';
    else if (markerData.url_parent)
        TemplateContent = TemplateContent+'<div class="url_parent"><a href="#{url_parent}">More information..</a></div>';
    
    var myTemplate = new Template(TemplateContent);
    return myTemplate.evaluate(markerData);
}




function forwardToListingPage(markerData) {
    logInConsole("----------------------------");
    logInConsole("forwardToListingPage called");
    if (markerData.url == "CHANGELOCATION") {
        outgoingLink_Click('Listing Search Page','City/Zip Map Point','Bringing Up Change Location Again');
        CreateAutoCompBox_Init();
        modal_sm('ChangeLocationSearch-Container',850,450);
    }
    else {
        outgoingLink_Click('Listing Search Page','Point Click - Forward to listing',markerData.title);
        window.location = markerData.url;
    }
}






function markers_MuckingWithThisTest() {
    logInConsole("----------------------------");
    logInConsole("markers_MuckingWithThisTest called");
    logInConsole("Args:");
    logInConsole(arguments);
    
    return false;
}
