﻿// JScript File

function TrackAndPlay(efTag , link , videoName , videoAbbreviation , videoType , parentVideoAbbreviation) {

    if (efTag != '') {

        var axel = Math.random() + ""; 
    	var a = axel * 10000000000000; 

        efTag = efTag.replace('[rand]' , a);

        document.getElementById('trackingPlaced').innerHTML = efTag;
    }
    
    // Check for Flash lite
    /*var flashVersion = swfobject.getFlashPlayerVersion().major;
    if (flashVersion >= 8) {
        link = link + '&f=1';
    }*/
    
   
    // Start video tracking will go here.
    s.pageName="JS " + videoName.toUpperCase() + " " + videoType.toUpperCase().substr(0 , videoType.length - 1);
    s.channel="JS";
    s.prop1=videoType.toUpperCase();
    s.prop2=videoAbbreviation.toUpperCase();
    s.prop3=parentVideoAbbreviation.toUpperCase();
    s.t();
    
    
    link = link + '&js=1';    
    setTimeout('document.location = \'' + link + '\';' , 500);



}
