//varible to store the last tagged page so this can be used a the refferer variable
var flexReferer='';

//call to the NI JS for cam icon ClickTagging

function NICamClickEvent(pageDefinition, stockListID)
{
    ntptEventTag('lc='+ pageDefinition +'UVL_CAMERACLICK/SearchResults/&CAMERACLICK='+ stockListID);
}

//call to the NI JS for walkaround ClickTagging

function NIWalkaroundClickEvent(pageDefinition, stockListID)
{
    ntptEventTag('lc='+ pageDefinition +'UVL_VIDEOCLICK/SearchResults/&VIDEOCLICK='+ stockListID);
}

//call to the NI JS for Descriptor mouseovers
 
function NIDescriptorView(pageDefinition, stockListID, descriptorID)
{
    //ntptEventTag('lc='+ pageDefinition +'UVL_Descriptor/'+ descriptorID +'/&VEHICLE='+ stockListID);
}

//call to the NI JS for Warranty click

function NIWarrantyClickEvent(pageDefinition)
{
    ntptEventTag('lc='+ pageDefinition +'WARRANTY/&WARRANTYCLICK=1');
}

//call to the NI JS for warranty brochure click

function NIWarrantyBrochureClickEvent(pageDefinition)
{
    ntptEventTag('lc='+ pageDefinition +'WARRANTY/&WARRANTYBROCHURE=1');
}

//call to the NI JS for richexperience click

function NIRichExperienceClickEvent(pageDefinition)
{
    ntptEventTag('lc='+ pageDefinition +'RICHEXPERIENCE/&RICHEXPERIENCECLICK=1');
}

//call to the NI JS for richexperience being available

function NIRichExperienceAvailable(pageDefinition)
{
    ntptEventTag('lc='+ pageDefinition +'RICHEXPERIENCE/&RICHEXPERIENCEAVAIL=1');
}

//call to the NI JS for similar search click

function NISimilarSearchEvent(pageDefinition)
{
    ntptEventTag('lc='+ pageDefinition +'UVL_VEHICLEDETAILS/&SIMILARSEARCHCLICK=1');
}

//call to the NI JS for dealer contact click

function NIContactDealerClickEvent(pageDefinition)
{
    ntptEventTag('lc='+ pageDefinition +'UVL_FORMSEND/formsend/&UVL_FORMSEND=contactDealer');
}

//call to the NI JS for image thumbnail click

function NIThumbnailClickEvent(pageDefinition,targetMedium,shotType)
{
    ntptEventTag('lc='+ pageDefinition +'UVL_THUMBNAILCLICK/'+ targetMedium+'/&SHOTTYPE='+shotType);
}

//call to the NI JS for MARS thumbnail click

function NIMARSClickEvent(pageDefinition,assetID)
{
    ntptEventTag('lc='+ pageDefinition +'UVL_MARSTHUMBCLICK/MARSCLICK/&MARS_ASSETID='+ assetID);
}

//call to the NI JS for MARS more Info click
function NIMARSFindOutMoreClickEvent(pageDefinition,assetID)
{
    ntptEventTag('lc='+ pageDefinition +'MARS_BTNCLICK/findOutMore/&MARS_BTNCLICK=findOutMore&MARS_ASSETID='+assetID);
}

//call to the NI JS for Vehicle details click
function NIVehicleDetailTabClickEvent(pageDefinition,whichTab,movingImages)
{
    var eventString = 'lc='+ pageDefinition +'UVL_TABCLICK/'+ whichTab +'/&UVL_TABCLICK='+ whichTab;
    if (movingImages == 'Moving')
    {
        eventString +='Moving';
    }else{
        eventString +='Static';
    }
    ntptEventTag(eventString);
}

//call to the NI JS for vehicle details print click
function NIVehicleDetailsPrint(pageDefinition)
{
    ntptEventTag('lc='+pageDefinition+'UVL_PRINTCLICK/1/&UVL_PRINTCLICK=1');
}

//call to the NI JS for vehicle results list current page print
function NIPrintCurrentPageClickEvent(pageDefinition)
{
    ntptEventTag('lc='+pageDefinition+'UVL_PRINTCURRENTPAGE/1/&UVL_PRINTCURRENTPAGE=1');
}

//call to the NI JS for vehicle results list top X print
function NIPrintTopResultsClickEvent(pageDefinition)
{
    ntptEventTag('lc='+pageDefinition+'UVL_PRINTTOPX/1/&UVL_PRINTTOPX=1');
}

//call to the NI JS for vehicle compare print
function NIVehicleComparePrint(pageDefinition)
{
    ntptEventTag('lc='+pageDefinition+'UVL_PRINTCOMPARE/1/&UVL_PRINTCOMPARE=1');
}

//call to the NI JS for back button
function NIBackButtonClickEvent(pageDefinition)
{
    ntptEventTag('lc='+pageDefinition+'UVL_BACKCLICK/1/&UVL_BACKCLICK=1');
}
//alert(pageDefinition+' - '+targetMedium+' - '+shotType);
//call to the NI JS function for the flex Tagging

function NIFlexTagging(paramString, getCurrentLC)
{
    ntptEventTag('rf='+ flexReferer +'&lc='+ getCurrentLC +'&' + paramString);  
    flexReferer = getCurrentLC;
}

function NISplashScreenPath(pageDefinition, choice)
{
    ntptEventTag('lc='+ pageDefinition +'COMPATIBLE/&COMPATIBLE='+ choice);
}

//call to the NI JS for vehicle details Show SMS click
function NIVehicleDetailsShowSMS(pageDefinition)
{
    ntptEventTag('lc='+pageDefinition+'UVL_SHOW_SMS_CLICK/1/&UVL_SHOW_SMS_CLICK=1');
}

