//
//
var SERVICE_BRAND = "Unpluggit";
var SERVICE_BRAND_DISPLAY_NAME = "Unpluggit";
//
// service URL stuff
var url_to_root = "/";
var SERVICE_WWW_ROOT = "/unpluggit/admin_tests";
//
// container and object stuff related names

var NEWS_IMAGES_CONTAINER_NAME = "newsImages.xml";
var NEWS_IMAGES_CONTAINER_PATH = "unpluggit/containers/newsImages.xml";
var NEWS_IMAGES_CONTAINER_ID = "2";
var NEWS_IMAGES_CONTAINER_DISPLAY_NAME = "Images";

var NEWS_CONTAINER_NAME = "news.xml";
var NEWS_CONTAINER_PATH = "unpluggit/containers/news.xml";
var NEWS_CONTAINER_ID = "3";
var NEWS_CONTAINER_DISPLAY_NAME = "News";

var VIDEO_CONTAINER_NAME = "videos.xml";
var VIDEO_CONTAINER_PATH = "unpluggit/containers/videos.xml";
var VIDEO_CONTAINER_ID = "4";
var VIDEO_CONTAINER_DISPLAY_NAME = "Videos";

var VIDEO_FILES_CONTAINER_NAME = "videoFiles.xml";
var VIDEO_FILES_CONTAINER_PATH = "unpluggit/containers/videoFiles.xml";
var VIDEO_FILES_CONTAINER_ID = "5";
var VIDEO_FILES_CONTAINER_DISPLAY_NAME = "VideoFiles";
//
//
var NUM_PETITIONS_DB_POSTFIX = "NumPetitions";
var NUM_VIDEO_VIEWS_DB_POSTFIX = "NumVideoViews";
var NUM_EMAIL_DB_POSTFIX = "NumEmails";
//
//
var NEWS_BIN_DB_POSTFIX = "PublicNews";
var VIDEO_BIN_DB_POSTFIX = "PublicVideos";
var VIDEO_NEWS_EMAILS_DB_POSTFIX = "VideoNewsEmails";
var NUM_VIDEO_INVITATIONS_KEY = "NUM_VIDEO_INVITATIONS";
var NUM_SITE_INVITATIONS_KEY = "NUM_SITE_INVITATIONS";
//
// number type names
var NUM_TYPE_UNDEFINED = -1;
var NUM_TYPE_BYTE = 0;
var NUM_TYPE_DOUBLE = 1;
var NUM_TYPE_FLOAT = 2;
var NUM_TYPE_INT = 3;
var NUM_TYPE_LONG = 4;
var NUM_TYPE_SHORT = 5;
//
//
var THUMB_FILE_POSTFIX=".thumb.jpeg";
//
//
var filePathDelimChar = "\\";
if (navigator.platform=="Win32") {
	filePathDelimChar = "\\";
}
else {
	filePathDelimChar = "/";
}
var ZONE_NAME = window.location.href.substring(0, window.location.href.indexOf("/", 10));
//
//
var ROBS_EMAIL = "unpluggit@googlemail.com";
//
//
var VIDEO_INVITATION_SUBJECT = "Check out the latest new Unpluggit video!";
var VIDEO_INVITATION_MESSAGE = "<html><head><title>Check out the latest new Unpluggit video</title></head><body><p>Hi,</p>" + 
                               "<p>Your friend SENDER_NAME_INSERT thought you should check out the latest new Unpluggit video at : INVITATION_LINK_INSERT.</p>" + 
                               "<p>Whilst at www.unpluggit.co.uk sign the Unpluggit Petition to help put and end to energy wasting mobile phone chargers. Use this one minute in your day to take a positive step to help prevent climate change. Together we can make the big differences that count.</p>" +
                               "<p>Thank you.</p>" +
                               "<p>Unpluggit!</p></body><html>";
//
//
var SITE_INVITATION_SUBJECT = "Join Unpluggit Petition";
var SITE_INVITATION_MESSAGE = "<html><head><title>Join Unpluggot Petition</title></head><body><p>Hi,</p>" + 
                              "<p>SENDER_NAME_INSERT has sent you this email from the Unpluggit campaign. They wanted you to know that they've just signed the Unpluggit petition to help put an end to energy wasting mobile phone chargers that cost us money and contribute to climate change. They thought you'd be interested in signing it too.</p>" + 
                              "<p>Visit " + ZONE_NAME + "?page=petition</p>" +
                              "<p>Also check out the latest campaign videos and Rob's Arctic Challenge at www.unpluggit.co.uk.</p>" +
                              "<p>Thank you.</p>" +
                              "<p>Unpluggit!</p></body><html>";
//
//
var PUBLISH_NOTIFICATION_SUBJECT = "New video published at Unpluggit!";
var PUBLISH_NOTIFICATION_MESSAGE = "<html><head><title>New video published at Unpluggit</title></head><body><p>Hello,</p>" + 
                                   "<p>Watch the latest video from the Unpluggit campaign at INVITATION_LINK_INSERT.</p>" + 
                                   "<p>If you've not already done so, you too can join the campaign and make sure you unplug your mobile phone charger every day when you've finished charging your phone. You can also sign the Unpluggit petition to put an end to energy wasting mobile phone chargers.</p>" +
                                   "<p>Thank you.</p>" +
                                   "<p>Unpluggit!</p></body><html>";
var PETITION_LETTER_HTML = "" + 
                    "<p>DATE_INSERT</p>" + 
                    "<p>Dear Sir or Madam,</p>" + 
                    "<p>Unpluggit: starting to prevent climate change - one plug at a time</p>" + 
                    "<p>As a mobile phone user I have been unwittingly contributing to climate change. This is because, when I detached my mobile phone from its charger each day, leaving the charger plugged in at the wall, I was wasting electricity. I have now been made aware that unless I actually unplug my mobile phone charger or switch it off at the wall, it pointlessly continues to draw power.</p>" + 
                    "<p>Not only has using this electricity cost me money, it has also wasted energy and unnecessarily contributed to the amount of carbon dioxide (CO2) emitted into the atmosphere, adding to the greenhouse gases responsible for causing climate change. </p>" + 
                    "<p>One of the key ways of reducing human impact on climate change is by reducing our energy use. It is the responsibility of government, individuals and business to take action to reduce unnecessary energy consumption.  </p>" + 
                    "<p>I am therefore writing to you as part of the Unpluggit campaign (www.unpluggit.co.uk), supported by the Ben and Jerry's and WWF Climate Change College, which raises awareness about the energy we waste in our homes.  Unpluggit aims to help people change their behaviours - focusing first on the energy wasted by leaving mobile phone chargers left plugged in when not in use.</p>" + 
                    "<p>As a customer of PHONE_COMPANY_INSERT, I expect your business to take steps to reduce the impact of mobile phone chargers on climate change. I would like your company to join the Unpluggit campaign and:</p>" + 
                    "<p>1. Proactively inform your customers that mobile phone chargers should be unplugged when not in use to avoid wasting electricity. Your phone bills should include a statement to this effect; your staff in stores, your website, your phone user manuals and other communications should also make this more widely known.</p>" + 
                    "<p>2. In conjunction with phone manufacturers, if not already done so, sign up to the principle of the international &rdquo;1 watt initiative&rdquo; to develop chargers with absolute minimum &rdquo;no load&rdquo; energy consumption by 2010 (or sooner) using current technology and use this as a stepping stone to work across the mobile phone industry to developing standardised zero energy waste phone chargers in the longer term. </p>" + 
                    "<p>As an individual I am doing my bit: I have pledged to unplug my phone charger whenever I am not using it, and am telling others to do the same. Now it is up to PHONE_COMPANY_INSERT to show corporate responsibility - this is the only long term solution.</p>" + 
                    "<p>As a customer of PHONE_COMPANY_INSERT, I use a phone manufactured by PHONE_MAKE_INSERT and I hope you will take urgent action to address the wasteful energy consumption caused by mobile phone chargers left plugged in. I look forward to hearing from you and your intentions on this issue.</p>" + 
                    "<p>Yours faithfully,</p>" + 
                    "<p>NAME_INSERT, EMAIL_INSERT</p>" +
                    "<p>TOWN_INSERT, COUNTRY_INSERT</p>";


var ROBS_VIDEO_NEWS_MESSAGE = "<html><head>\r\n" + 
                              "<title>SUBJECT_INSERT</title>\r\n" + 
                              "</head><body>\r\n" + 
                              "<p>TEXT1_INSERT</p>\r\n" + 
                              "<p><a href=\"http://www.unpluggit.co.uk\">www.unpluggit.co.uk</a></p>\r\n" +
                              "<p><a href=\"http://www.unpluggit.co.uk\"><img src=\"IMAGE_INSERT\" alt=\"\" /></a></p>\r\n" +
                              "<p>TEXT2_INSERT</p>\r\n" + 
                              "<p><img src=\"" + ZONE_NAME + "/images/emailLogo.jpg\" alt=\"\" /></p>\r\n" +
                              "</body><html>\r\n";