var mDomain = getDomain(2); var mDomainCall = mDomain.split('.'); var mCompany = ""; if (mDomainCall[0].indexOf("img") > 0) { mCompany = mDomainCall[0].slice(0,(mDomainCall[0].length-3)); }else{ mCompany = mDomainCall[0]; } mCompany = "wfmz"; var SiteName = mCompany + ".dayport.com"; // check to see if email launched //checkLaunch(); /*function LaunchSyndicateArticle(ArtId,template,CustId,ContId,CatID) { var SiteRegExp = new RegExp('@' + SiteName.replace(/\//g,"\\/"),"gi"); var ArtString=ArtId.toString().replace(SiteRegExp,""); var Customer_ID=""; var Contract_ID=""; var Category_ID=""; var TemplateFile=""; var URLstring=""; // var ParentFile=""; TemplateFile = "&tf="+template; kWidth = 765; kHeight = 455; var winName = "videoViewer"; var page; if ((template!= '') && (typeof template!= "undefined")) { if (template == "wfmzspanishplayer.tpl") { Contract_ID ="&PreloadContract_DefID=4&Contract_DefID=5"; } else if (template== "wfmzviewer.tpl") { Contract_ID ="&PreloadContract_DefID=1&Contract_DefID=2"; } } else { Contract_ID ="&PreloadContract_DefID=1&Contract_DefID=2"; } page = "http://wfmz.dayport.com/viewer/viewerpage.php?Art_ID=" + ArtString + TemplateFile + Customer_ID + Contract_ID + Category_ID; var xPosition = screen.width/2-(kWidth/2); var yPosition = screen.height/2-(kHeight/2); var Params = "height=" + kHeight + ",width=" + kWidth + ",left=" + xPosition + ",top=" + yPosition + ",screenX=" + xPosition + ",screenY=" + yPosition; //window.scrollTo(0,0); var kWin=window.open(page,winName,Params); kWin.opener = self; kWin.focus(); //kWin.moveTo(xPosition, yPosition); return true; }*/ function BuildSyndicatePlaylist(template,CatID) { var ArtString=""; var ArtArray = new Array(); var TemplateFile=""; //alert("what is category "+CatID); //alert("what is template "+template); for (var j=0; j