﻿

function getTelephoneDetails(withProof)
{
	var holder = create("div", "popHolder");
		var detailTitle = create("div", "detailTitle");
		detailTitle.innerHTML = "<img src=\"app/content/images/packages/details.png\" />";
	holder.appendChild(detailTitle);
		var detailSub = create("div", "detailSubTitle");
		detailSub.innerHTML = "Multiple Messages";
	if (withProof)
	{
		detailSub.innerHTML += " with Proofreading";
	}
	holder.appendChild(detailSub);
		var detailListHolder = create("div", "detailListHolder");
			var detailList = create("ul", "detailList");
			if (withProof)
			{
				detailList.appendChild(getListItem("Identical to the Multiple Messages package, except that your script(s) are carefully proofread/edited to correct any mistakes in grammar before being sent to the studio for recording."));
				detailList.appendChild(getListItem("You pay "+(new Price(174)).convert().toString()+" for the first 150 words (equivalent to one minute) and "+(new Price(87)).convert().toString()+" per 75 words thereafter."));
				detailList.appendChild(getListItem("You can create up to 8 messages for your first minute; and up to 4 messages for each 30 second block thereafter."));
				detailList.appendChild(getListItem("If you go over this allotment, you will be charged "+(new Price(2)).convert().toString()+" per additional message"));

			
			}
			else 
			{
				detailList.appendChild(getListItem("Customize your entire telephone system!"));
				detailList.appendChild(getListItem("Create on hold messages, company greetings, introductory greetings, announcements, specialty messages, voice prompts, or any other message you might need."));
				detailList.appendChild(getListItem("This package also includes a background music track of your choice."));
				detailList.appendChild(getListItem("You pay "+(new Price(150)).convert().toString()+" for the first 150 words (equivalent to one minute) and "+(new Price(50)).convert().toString()+" per 75 words thereafter."));
				detailList.appendChild(getListItem("You can create up to 8 messages for your first minute; and up to 4 messages for each 30 second increment thereafter."));
				detailList.appendChild(getListItem("If you go over this allotment, you will be charged "+(new Price(2)).convert().toString()+" per additional message."));
			
			}
		
		detailListHolder.appendChild(detailList);
	holder.appendChild(detailListHolder);
		
	return holder;
}

function getOnholdDetails()
{
	var holder = create("div", "popHolder");
		var detailTitle = create("div", "detailTitle");
		detailTitle.innerHTML = "<img src=\"app/content/images/packages/details.png\" />";
	holder.appendChild(detailTitle);
		var detailSub = create("div", "detailSubTitle");
		detailSub.innerHTML = "Onhold Messages";
	holder.appendChild(detailSub);
		var detailListHolder = create("div", "detailListHolder");
			var detailList = create("ul", "detailList");
			detailList.appendChild(getListItem("Where 100 words is equivalent to one minute"));
			detailList.appendChild(getListItem("Pricing Breakdown:<br>&bull; 2 minutes = "+(IsUK ? (new Price(83)).toString() : (new Price(135)).toString())+"<br>&bull; 3 minutes = "+(IsUK ? (new Price(108)).toString() : (new Price(175)).toString())+"<br>&bull; 4 minutes = "+(IsUK ? (new Price(133)).toString() : (new Price(215)).toString())+"<br>&bull; 6 minutes = "+(IsUK ? (new Price(177)).toString() : (new Price(280)).toString())+"<br>&bull; 8 minutes = "+(IsUK ? (new Price(212)).toString() : (new Price(340)).toString())+"<br>&bull; &lt;8 minutes = "+(IsUK ? (new Price(16)).toString() : (new Price(25)).toString())+" per minute thereafter"));
		detailListHolder.appendChild(detailList);
	holder.appendChild(detailListHolder);
	
	return holder;
}


function getGreetingsDetails(withProof)
{
	var holder = create("div", "popHolder");
		var detailTitle = create("div", "detailTitle");
		detailTitle.innerHTML = "<img src=\"app/content/images/packages/details.png\" />";
	holder.appendChild(detailTitle);
		var detailSub = create("div", "detailSubTitle");
		detailSub.innerHTML = "Multiple Messages";
		if (withProof)
		{
			detailSub.innerHTML += " with Proofreading";
		}
	holder.appendChild(detailSub);
		var detailListHolder = create("div", "detailListHolder");
			var detailList = create("ul", "detailList");
			if (withProof)
			{
				detailList.appendChild(getListItem("Identical to the Multiple Messages package, except that your script(s) are carefully proofread/edited to correct any mistakes in grammar before being sent to the studio for recording."));
				detailList.appendChild(getListItem("You pay "+(new Price(124)).convert().toString()+" for the first 150 words (equivalent to one minute) and "+(new Price(62)).convert().toString()+" per 75 words thereafter."));
				detailList.appendChild(getListItem("You can create up to 8 messages for your first minute; and up to 4 messages for each 30 second increment thereafter."));
				detailList.appendChild(getListItem("If you go over this allotment, you will be charged "+(new Price(2)).convert().toString()+" per additional message."));
				
			}
			else 
			{
				detailList.appendChild(getListItem("Create an unlimited number of company greetings, introductory greetings, announcements, specialty messages, voice prompts, or any other message you might need."));
				detailList.appendChild(getListItem("You pay "+(new Price(100)).convert().toString()+" for the first 150 words (equivalent to one minute) and "+(new Price(50)).convert().toString()+" per 75 words thereafter."));
				detailList.appendChild(getListItem("You can create up to 8 messages for your first minute; and up to 4 messages for each 30 second increment thereafter."));
				detailList.appendChild(getListItem("If you go over this allotment, you will be charged "+(new Price(2)).convert().toString()+" per additional message."));
			}
		detailListHolder.appendChild(detailList);
	holder.appendChild(detailListHolder);
	
	return holder;
}

function getSingleDetails()
{
	var holder = create("div", "popHolder");
		var detailTitle = create("div", "detailTitle");
		detailTitle.innerHTML = "<img src=\"app/content/images/packages/details.png\" />";
	holder.appendChild(detailTitle);
		var detailSub = create("div", "detailSubTitle");
		detailSub.innerHTML = "Single Message";
	holder.appendChild(detailSub);
		var detailListHolder = create("div", "detailListHolder");
			var detailList = create("ul", "detailList");
			detailList.appendChild(getListItem("Create any single message up to 75 words (equivalent to 30 seconds)."));
			detailList.appendChild(getListItem("Record a company greeting, introductory greeting, announcement, specialty message, voice prompt, or any other message that you might need."));
			detailList.appendChild(getListItem(""+(new Price(50)).convert().toString()+" per every 75 words."));
		
		detailListHolder.appendChild(detailList);
	holder.appendChild(detailListHolder);
	
	return holder;
}

function getCellDetails()
{
	var holder = create("div", "popHolder");
		var detailTitle = create("div", "detailTitle");
		detailTitle.innerHTML = "<img src=\"app/content/images/packages/details.png\" />";
	holder.appendChild(detailTitle);
		var detailSub = create("div", "detailSubTitle");
		detailSub.innerHTML = "Cell Phone Greeting";
	holder.appendChild(detailSub);
		var detailListHolder = create("div", "detailListHolder");
			var detailList = create("ul", "detailList");
			detailList.appendChild(getListItem("You may create one greeting up to 75 words (equivalent to 30 seconds)"));
		
		detailListHolder.appendChild(detailList);
	holder.appendChild(detailListHolder);
	
	return holder;
}

function getListItem(txt)
{
	var item = create("li");
	item.innerHTML = txt;
	return item;
}
