// JavaScript Document
// Author: Ashok Kumar Gupta
// Copyright Warner/Chappell Music
// This document is sole property of Warner/Chappell Music
function albumArchiveNR(dataId, songTitle, version){
		var url='/TemplateAction?system_action=display_All_data&section=NR&siteArea=common&dataId='+dataId+'&ismultiple=true&country='+countryTT+'&aid=1&pid=10&psubid=10&version='+version;
		var urlFile ='/TemplateAction?system_action=defaultSong&siteArea=common&dataId='+dataId+'&version='+version;
		getHTMLContentForDiv('newReleasesLeftDiv',url,'text');
		sendSongRequest(urlFile, processSongRequest);
}
function albumArchive(dataId, songTitle,streamName,artistName,writerName,isItForVideo,version,albumName,releasedDate,esongid,pctown){
	if(isItForVideo == "true"){		
		assignflv(streamName,songTitle,artistName,writerName,dataId,version,albumName,releasedDate,esongid,pctown);
	}else{
		var url='/TemplateAction?system_action=display_All_data&section=NR&siteArea=common&dataId='+dataId+'&ismultiple=true&country='+countryTT+'&aid=1&pid=10&psubid=10&version='+version;
		var urlFile ='/TemplateAction?system_action=defaultSong&siteArea=common&dataId='+dataId+'&version='+version;
		getHTMLContentForDiv('newReleasesLeftDiv',url,'text');
		sendSongRequest(urlFile, processSongRequest);
	}
	}

function createCMSNode(dataId,country,version,isadmin,isCmsMngr){
	var isIE =navigator.appName.indexOf("Microsoft") != -1;
	var containerElement = document.getElementById("videosBody");
	if(document.getElementById("iconHolder") != null){
		//containerElement.removeChild(document.getElementById("iconHolder"));
		//document.getElementById("iconHolder").style.display = "none";
	}
	if(isIE){
		var thisStyle = "position:absolute; margin-left:545px; left:0px; top:43px; z-index:101;";
	}else{
		var thisStyle = "position:absolute; margin-left:545px; top:43px; z-index:101;";
	}
	var dynDivObj = document.createElement("div");
		dynDivObj.setAttribute('id','iconHolder'); 
		dynDivObj.style.cssText = thisStyle;
		if(isadmin=='Y')
			dynDivObj.innerHTML = "<a href=\"javascript:showtemplate('common','"+dataId+"','display_edit_page','edit','"+country+"','1','3','3')\" id='onoffedit' title='Edit Content'><img border='0' alt='Edit Content' src='/resources/images/ico_edit.gif'  /></a>&nbsp;&nbsp;<a href=\"javascript:deletePublishData('common','"+dataId+"','"+version+"','VD','3')\" title='Delete Content' id='onoffdelete'><img border='0' alt='Delete Content' src='/resources/images/ico_delete.gif' /></a>";
		else if(isCmsMngr=='Y')
			dynDivObj.innerHTML = "<a href=\"javascript:showtemplate('common','"+dataId+"','display_edit_page','edit','"+country+"','1','3','3')\" id='onoffedit' title='Edit Content'><img border='0' alt='Edit Content' src='/resources/images/ico_edit.gif'  /></a>";
		else 
		 	dynDivObj.innerHTML ="";
		containerElement.appendChild(dynDivObj);
		// Validating for CMS
		if(!isCMSAccess){
		 	toggleOnOff("hidden");
		 }else{
			toggleOnOff("visible");
		 }
}
