    /*********************************************
    * Library: site_config.js
    * Author:
    *		Mike Clagg <michael.clagg@belointeractive.com>
    * Date:
    *		March 2008
    * Databases: none
    * Copyright: Belo Interactive
    * Description:
    *		[ SiteLife/CGM ]
    *		Site Specific Customization
    * ======================================
    * Revision History
    * ======================================
    * Date	Function			Name    Description
    * ====	===========		====		==============
    *********************************************/

		/*********************************************
		*	GLOBALS VARIABLE DECLARATION
		*********************************************/
		/* NEW DEVELOPMENT: WE WILL BE SLOWLY MOVING ALL OF THE GLOBALS */
		/* INTO A SINGLE GLOBAL OBJECT FOR SEVERAL REASONS */

		/* SLCGMCONFIG is initialized in the <head> of every SLCGM Page */
		/* define the globals property and build the objects */
			SLCGMCONFIG.globals = new init_globals();

		/* SITE LEVEL CONFIGURATION VARIABLES */
		/* determine if the recent activity will be site specifie */
			var SLCGMDCFILTERBYSITE = true;
		/* Site Cache Switch.  For caching to initiate 2 variables must be set to true. */
		/* One variable is SCS (below), the other MCS (Master Cache Swith) is located in the core library. */
			var SCS	= true;
		/* Setting this to false turns off SLCGM across your entire site. */
		/* To turn it off at the page level add PLUCKOFF=1 to your query string */
			var SLCGMSWITCH = true;
		/* Currently VelocIT contains the output of the article id we need to send to Pluck. */
		/* This is CMS specific, and needs to be adjusted if this code is used with another CMS. */
			var ARTICLEKEYMETATAGNAME = "vit_story_id";

		/* Staging switch tells the system whether to use production ($$) or the staging site,
			 which should be used for development.  To move to production just make SLCGMSTAGINGSWITCH
			 equal to a blank string. */
		/* var SLCGMSTAGINGSWITCH = "stage";  */
		var SLCGMSTAGINGSWITCH = "";

		/* TEMPLATES FOR OUTPUT HTML CODE, see additional documentation before editing
		/*************************************************************************************************************************/
		/* This part is the variable declaration for the global templates.  Before adding a custom template */
		/* you must initialize your string here. */

		/* SLCGMPHOTOGALLERYTEMPLATE controls the boxes displayed on /membercontent/photos/gallery.html */
		if(typeof(SLCGMPHOTOGALLERYTEMPLATE)=='undefined')
		{
					/* SLCGMPHOTOGALLERYTEMPLATE+= '<div class="gallerybox"><div class="cgminfo">#{recommendationHTML}</div>'; */
					/* SLCGMPHOTOGALLERYTEMPLATE+= '<div class="thumb"><a href="#{pageLink}"><img src="#{Image.Small}" border="0" width="60" height="60" alt="#{Title}" /></a></div>'; */
					/* SLCGMPHOTOGALLERYTEMPLATE+= '<p><strong>posted by <a href="#{profileLink}">#{Author.DisplayName}</a></strong></p>'; */
					/* SLCGMPHOTOGALLERYTEMPLATE+= '<p><a href="#{pageLink}"><strong>#{Title}</strong></a></p><p>#{Desc}</p></div>'; */
			var SLCGMPHOTOGALLERYTEMPLATE = '<div style="width:90px;height:70px;float:left;">';
					/* SLCGMPHOTOGALLERYTEMPLATE+= '<p class="header"><a href="#{pageLink}">#{Title}</a></p>'; */
					SLCGMPHOTOGALLERYTEMPLATE+= '<div class="thumb"><a href="#{pageLink}"><img src="#{Image.Small}" alt="#{Title}" title="#{Title}" border="0" /></a></div>';
					/* SLCGMPHOTOGALLERYTEMPLATE+= '<div class="arrowlink">#{recommendationHTML}</div>'; */
					/* SLCGMPHOTOGALLERYTEMPLATE+= '<div class="arrowlink">posted by <a href="http://www.pe.com/membercontent/memberprofile.html?ukey=#{Author.UserKey.Key}">#{Author.DisplayName}</a></div>'; */
					/* SLCGMPHOTOGALLERYTEMPLATE+= '<p class="description">#{Desc}</p>'; */
					SLCGMPHOTOGALLERYTEMPLATE+= '</div>';
		}


		/* SLCGMVIDEOGALLERYTEMPLATE controls the boxes displayed on /membercontent/videos/gallery.html */
		/* For default we are using the same template as photos, but you have the ability to customize a video gallery */
		if(typeof(SLCGMVIDEOGALLERYTEMPLATE)=='undefined')
		{
					/* SLCGMVIDEOGALLERYTEMPLATE+= '<div class="gallerybox"><div class="cgminfo">#{recommendationHTML}</div>'; */
					/* SLCGMVIDEOGALLERYTEMPLATE+= '<div class="thumb"><a href="#{pageLink}"><img src="#{VideoThumbnail}" border="0" width="60" height="60" alt="#{Title}" /></a></div>'; */
					/* SLCGMVIDEOGALLERYTEMPLATE+= '<p><strong>posted by <a href="#{profileLink}">#{Author.DisplayName}</a></strong></p>'; */
					/* SLCGMVIDEOGALLERYTEMPLATE+= '<p><a href="#{pageLink}"><strong>#{Title}</strong></a></p><p>#{Desc}</p></div>'; */

			var SLCGMVIDEOGALLERYTEMPLATE = '<div style="width:110px;height:86px;float:left;">';
					/* SLCGMVIDEOGALLERYTEMPLATE+= '<p class="header"><a href="#{pageLink}">#{Title}</a></p>'; */
					SLCGMVIDEOGALLERYTEMPLATE+= '<div style="float:left;width:99px;height:75px;"><a href="#{pageLink}"><img src="#{VideoThumbnail}" border="0" width="99" height="75" alt="#{Title}" /></a></div>';
					/* SLCGMVIDEOGALLERYTEMPLATE+= '<div class="arrowlink">#{recommendationHTML}</div>'; */
					/* SLCGMVIDEOGALLERYTEMPLATE+= '<div class="arrowlink">posted by <a href="http://www.pe.com/membercontent/memberprofile.html?ukey=#{Author.UserKey.Key}">#{Author.DisplayName}</a></div>'; */
					/* SLCGMVIDEOGALLERYTEMPLATE+= '<p class="description">#{Desc}</p>'; */
					SLCGMVIDEOGALLERYTEMPLATE+= '</div>';
		}

		/*  SLCGMGALLERYTEMPLATE controls the gallery of galleries page out put. Most of the page's look and feel is controlled through the template and the css file. */
		/*  This template controls the list output. */
		if(typeof(SLCGMGALLERYTEMPLATE)=='undefined')
		{
			/* SLCGMGALLERYTEMPLATE+= '<div class="galleryboxline">'; */
			/* SLCGMGALLERYTEMPLATE+= '<div class="thumb"><a href="#{galleryHREF}"><img src="#{GalleryPromo.Image.Small}" alt="#{Title}" title="#{Title}" border="0" /></a></div>'; */
			/* SLCGMGALLERYTEMPLATE+= '<div id="cgminfo">#{recommendationHTML}</div>'; */
			/* SLCGMGALLERYTEMPLATE+= '<p class="header">#{Title}</p>'; */
			/* SLCGMGALLERYTEMPLATE+= '<div class="arrowlink"><a href="#{galleryHREF}">View Gallery</a></div>'; */
			/* SLCGMGALLERYTEMPLATE+= '<div class="arrowlink"><a href="#{uploadHREF}">Upload Your #{MediaType.Name}</a></div>'; */
			/* SLCGMGALLERYTEMPLATE+= '<p>#{Desc}</p>'; */
			/* SLCGMGALLERYTEMPLATE+= '</div>'; */
			var SLCGMGALLERYTEMPLATE = '<div class="galleryboxline">';
					SLCGMGALLERYTEMPLATE+= '<p class="header"><a href="#{galleryHREF}">#{Title}</a></p>';
					SLCGMGALLERYTEMPLATE+= '<div class="thumb"><a href="#{galleryHREF}"><img src="#{GalleryPromo.Image.Small}" alt="#{Title}" title="#{Title}" border="0" /></a></div>';
					/* SLCGMGALLERYTEMPLATE+= '<div class="arrowlink">#{recommendationHTML}</div>'; */
				  if (typeof(MEDIATYPE)!='undefined') SLCGMGALLERYTEMPLATE+= (MEDIATYPE=='Photo')?  '<div class="arrowlink"><a href="#{slideshowHREF}">View Slideshow</a></div>':'';
					SLCGMGALLERYTEMPLATE+= '<div class="arrowlink"><a href="#{uploadHREF}">Upload Your #{MediaType.Name}</a></div>';
					SLCGMGALLERYTEMPLATE+= '<p class="description">#{Desc}</p>';
					SLCGMGALLERYTEMPLATE+= '</div>';
		}

		/* SLCGMCOMMENTTEMPLATE controls each individual comment block */
			if(typeof(SLCGMCOMMENTTEMPLATE)=='undefined')
			{
				var SLCGMCOMMENTTEMPLATE = '<div class="wrote">Posted by <a href="#{SLCGMPROFILEPAGEURI}?ukey=#{Author.UserKey.Key}">#{Author.DisplayName}</a> | #{timeDistance}</div>';
						SLCGMCOMMENTTEMPLATE+= '<div>';
						SLCGMCOMMENTTEMPLATE+= '<div class="avatar"><a href="#{SLCGMPROFILEPAGEURI}?ukey=#{Author.UserKey.Key}"><img src="#{Author.AvatarPhotoUrl}" border="0" /></a></div>';
						SLCGMCOMMENTTEMPLATE+= '<div class="maincomments_story">';
						SLCGMCOMMENTTEMPLATE+= '<p>#{CommentBodyFormated}</p>';
						SLCGMCOMMENTTEMPLATE+= '</div>';
						SLCGMCOMMENTTEMPLATE+= '</div>';
						SLCGMCOMMENTTEMPLATE+= '<br clear="all"/>';
						SLCGMCOMMENTTEMPLATE+= '<div class="cgminfo">';
		  			SLCGMCOMMENTTEMPLATE+= '#{recommendHTML}';
		  			SLCGMCOMMENTTEMPLATE+= '</div>';
		  			SLCGMCOMMENTTEMPLATE+= '#{reportabuseHTML}';
						SLCGMCOMMENTTEMPLATE+= '<br clear="all" />';
						SLCGMCOMMENTTEMPLATE+= '<hr class="greyline" />';
			}

		/* SLCGMRECENTACTIVITYTEMPLATE */
		if(typeof(SLCGMDISCOVERYTEMPLATE)=='undefined')
		{
			var SLCGMDISCOVERYTEMPLATE = '<p><a href="#{PageUrl}">#{PageTitle}</a></p>';
		}

		if(typeof(SLCGMRecommendedDISCOVERYTEMPLATE)=='undefined')
		{
			var SLCGMRecommendedDISCOVERYTEMPLATE = '<p><a href="#{PageUrl}">#{PageTitle}</a> <span style="color:#666;font-size:10px;">(#{Recommendations.NumberOfRecommendations})</span></p>';
		}
		if(typeof(SLCGMCommentedDISCOVERYTEMPLATE)=='undefined')
		{
			var SLCGMCommentedDISCOVERYTEMPLATE = '<p><a href="#{PageUrl}">#{PageTitle}</a> <span style="color:#666;font-size:10px;">(#{Comments.NumberOfComments})</span></p>';
		}

		/* SLCGMRECENTVIDEOSTEMPLATE controls index and home page recent video discovery. */
		/* see additional documentation for overwriting these at the page level for unlimited options for content discovery */
		if(typeof(SLCGMRECENTVIDEOSTEMPLATE)=='undefined')
		{
			var SLCGMRECENTVIDEOSTEMPLATE = '<div class="cgmvideo">';
      		SLCGMRECENTVIDEOSTEMPLATE+= '<div class="thumb"><a href="http://www.pe.com/membercontent/videos/video.html?plckVideoID=#{VideoKey.Key}&plckGalleryID=#{GalleryKey.Key}"><img src="#{VideoThumbnail}" border="0" /></a></div>';
     			/* SLCGMRECENTVIDEOSTEMPLATE+= '#{recommendHTML}'; */
     			/* SLCGMRECENTVIDEOSTEMPLATE+= '<p>#{Desc}</p>'; */
      		/* SLCGMRECENTVIDEOSTEMPLATE+= '<p><span style="color:#666;">Posted by:</span> <a href="#{SLCGMPROFILEPAGEURI}?ukey=#{Author.DisplayName}">#{Author.DisplayName}</a></p>'; */
     			/* SLCGMRECENTVIDEOSTEMPLATE+= '<div style="clear:both;"></div>'; */
   				SLCGMRECENTVIDEOSTEMPLATE+= '</div>';
   	}

		/* SLCGMRECENTPHOTOSTEMPLATE */
		if(typeof(SLCGMRECENTPHOTOSTEMPLATE)=='undefined')
		{
			var SLCGMRECENTPHOTOSTEMPLATE = '<div class="cgmphoto">';
		  		SLCGMRECENTPHOTOSTEMPLATE+= '<a href="#{SLCGMPHOTOPAGEURI}?plckPhotoID=#{PhotoKey.Key}&plckGalleryID=#{GalleryKey.Key}">';
		   		SLCGMRECENTPHOTOSTEMPLATE+= '<img src="#{Image.Small}" border="0" /></a>';
	 	 			/* SLCGMRECENTPHOTOSTEMPLATE+= '<br/>'; */
	  	 		/* SLCGMRECENTPHOTOSTEMPLATE+= '<a href="#{SLCGMPHOTOPAGEURI}?plckPhotoID=#{PhotoKey.Key}">#{Title}</a>'; */
 					SLCGMRECENTPHOTOSTEMPLATE+= '</div>';
 		}

		/* SLCGMLOGINHEADERTEMPLATE_LOGGEDIN */
		if(typeof(SLCGMLOGINHEADERTEMPLATE_LOGGEDIN)=='undefined')
		{
	  		var SLCGMLOGINHEADERTEMPLATE_LOGGEDIN = '<div class="p_login">';
					SLCGMLOGINHEADERTEMPLATE_LOGGEDIN+= '<div class="p_icon"><a href="http://www.pe.com/membercontent/memberprofile.html"><img src="#{avatar}" border="0" alt="View #{DisplayName}&lsquo;s Profile" title="View #{DisplayName}&lsquo;s Profile"  /></a></div>';
					SLCGMLOGINHEADERTEMPLATE_LOGGEDIN+= '<div class="p_links"><a href="/LogOut.do">Sign Out</a><br>Hi, #{DisplayName}</div>';
					SLCGMLOGINHEADERTEMPLATE_LOGGEDIN+= '</div>';
		}

		/* SLCGMLOGINHEADERTEMPLATE_LOGGEDOUT */
		if(typeof(SLCGMLOGINHEADERTEMPLATE_LOGGEDOUT)=='undefined')
		{
			var SLCGMLOGINHEADERTEMPLATE_LOGGEDOUT ='<div class="p_login">';
					SLCGMLOGINHEADERTEMPLATE_LOGGEDOUT+='<div class="p_icon"><a href="http://www.pe.com/sharedcontent/membership/join.jsp"><img src="http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/default_avatar_32x32.gif" border="0" alt="Default Avatar" title="Default Avatar" /></a></div>';
					SLCGMLOGINHEADERTEMPLATE_LOGGEDOUT+='<div class="p_links"><a href="http://www.pe.com/sharedcontent/membership/signin.jsp?fw=' + escape(document.location.href) +'">Sign In</a><br/>';
					SLCGMLOGINHEADERTEMPLATE_LOGGEDOUT+='<a href="http://www.pe.com/sharedcontent/membership/">Join</a></div>';
					SLCGMLOGINHEADERTEMPLATE_LOGGEDOUT+='</div>';
		}

		/* SLCGMLOGINHEADERTEMPLATE_NOPROFILE */
		if(typeof(SLCGMLOGINHEADERTEMPLATE_NOPROFILE)=='undefined')
		{
			var SLCGMLOGINHEADERTEMPLATE_NOPROFILE ='<div class="p_login">';
					SLCGMLOGINHEADERTEMPLATE_NOPROFILE+='<div class="p_icon"><a href="javascript:void(0);" onclick="belo.slcgm.util.showDivAtMouse(event,\'screennameForm\');$(\'screenname\').focus();"><img src="http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/default_avatar_32x32.gif" border="0" alt="Default Avatar" title="Default Avatar" /></a></div>';
					SLCGMLOGINHEADERTEMPLATE_NOPROFILE+='<div class="p_links"><a href="/LogOut.do">Sign Out</a><br/>';
					SLCGMLOGINHEADERTEMPLATE_NOPROFILE+='<a href="javascript:void(0);" onclick="document.location.href=\'http://www.pe.com/membercontent/screenname.html?fw=\' + escape(document.location.href);">Create a Profile</a></div>';
					SLCGMLOGINHEADERTEMPLATE_NOPROFILE+='</div><div id="screenname_popup_container"></div>';
		}

		if(typeof(SLCGMSLIDESHOWTEMPLATE)=='undefined')
		{
			var SLCGMSLIDESHOWTEMPLATE = '<p><a href="#{pageLink}"><strong>#{Title}</strong></a> <strong>posted by <a href="#{profileLink}?ukey=#{Author.UserKey.Key}">#{Author.DisplayName}</a></strong></p>';
					SLCGMSLIDESHOWTEMPLATE+= '<a href="#{nextPage}"><img src="#{Image.Large}" border="0" alt="#{Title}" class="slcgmcontent__" /></a>';
					SLCGMSLIDESHOWTEMPLATE+= '<div><p style="margin:3px auto 3px auto;padding:5px;width:500px;font-weight:700;">#{Desc}</p></div>';
		}

		if(typeof(SLCGMGALLERYHEADERTEMPLATE)=='undefined')
		{
			/*  SLCGMGALLERYHEADERTEMPLATE */
			var SLCGMGALLERYHEADERTEMPLATE = '<div style="width:95%;" class="galleryboxline">';
					SLCGMGALLERYHEADERTEMPLATE+= '<div style="width:460px;float:left;">';
					SLCGMGALLERYHEADERTEMPLATE+= '<div class="thumb"><a href="#{galleryHREF}?plckGalleryID=#{GalleryKey.Key}"><img src="#{GalleryPromo.Image.Medium}" alt="#{Title}" title="#{Title}" border="0" class="slcgmcontent__" style="max-width:120px;" /></a></div>';
					SLCGMGALLERYHEADERTEMPLATE+= '<p class="header"><h1>#{Title}</h1></p>';
					SLCGMGALLERYHEADERTEMPLATE+= '<p>#{Description}</p>';
					SLCGMGALLERYHEADERTEMPLATE+= '</div>';
					SLCGMGALLERYHEADERTEMPLATE+= '<div style="border-left:1px solid #9a9a9a;height:90%;float:left;padding:5px;">';
					SLCGMGALLERYHEADERTEMPLATE+= '<div id="cgminfo">#{recommendationHTML}</div>';
					SLCGMGALLERYHEADERTEMPLATE+= '<p><div id="GalleryContestRules#{SLCGMCONTENTSEPARATOR}#{GalleryKey.Key}"><span class="bold">#{contestRulesLink}</span></div></p>';
					SLCGMGALLERYHEADERTEMPLATE+= '<p><span class="bold"><a href="#{galleryHREF}?plckGalleryID=#{GalleryKey.Key}">View Gallery</a></span></p>';
					if (typeof(MEDIATYPE)!='undefined') SLCGMGALLERYHEADERTEMPLATE+= (MEDIATYPE=='Photo')?  '<p><span class="bold"><a href="#{slideshowHREF}">View Slideshow</a></span></p>':'';
					SLCGMGALLERYHEADERTEMPLATE+= '<p><span class="bold"><a href="#{uploadHREF}?plckGalleryID=#{GalleryKey.Key}">Upload to this Gallery</a></span></p>';
					SLCGMGALLERYHEADERTEMPLATE+= '<p><span class="bold"><a href="#{galleryHREF}">View All Galleries</a></span></p>';
					SLCGMGALLERYHEADERTEMPLATE+= '</div>';
					SLCGMGALLERYHEADERTEMPLATE+= '<br clear="all" />';
		}

		/* END TEMPLATES */
		/*************************************************************************************************************************/

		/* IMAGES */
			var SLCGMSFNSAVEBUTTON = "http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/save.gif";
			var METADATACOMMENTSGRAPHIC = "http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/comment_icon.gif";
			var PHOTOUPLOADANIMATION = "http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/blue_progress_fast_ani.gif";
			var VIDEOUPLOADANIMATION = "http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/blue_progress_slow_ani.gif";
			var UPLOADANIMATIONCOMPLETE = "http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/blue_progress_complete.gif";
			var LOADINGANIMATION = "http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/ajax_loading.gif";
			var SLCGMABUSEICON = "http://www.pe.com/images/cgm/abuse_icon.gif";
			var SLCGMABUSEXICON = "http://www.pe.com/images/cgm/abusex_icon.gif";
			var SLCGMCHECKICON = "http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/thumb_up_disabled.gif";
			var SLCGMTHUMBSUPACTIVE = "http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/thumb_up.gif";
			var SLCGMTHUMBSUPINACTIVE = "http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/thumb_up_disabled.gif";
			var SLCGMTHUMBSDOWNACTIVE = "http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/thumb_down.gif";
			var SLCGMTHUMBSDOWNINACTIVE = "http://www.pe.com/sharedcontent/cgm/ver1.0/assets/img/thumb_down_disabled.gif";
			var SLCGMASSETBARROW = "http://www.pe.com/images/cgm/barrow_left.gif";
			var SLCGMFILMICON	= "http://www.pe.com/images/cgm/film_icon.gif";
		/* PAGE LEVEL CONFIGURATIONS */
		/* DOM IDs and Class Names */
		/* ONLY CHANGE THESE IF YOU CHANGE THE HTML IN TEMPLATES */
		  var SLCGMCREATEDONDATEID = "slcgmDatePosted";
			var SLCGMAUTHORDISPLYNAMEID = "slcgmAuthorDisplayName";
			var SLCGMAUTHORPROFILELINKID = "slcgmAuthorProfileLink";
			var SLCGMAUTHORAVATARIMGID = "slcgmAuthorAvatarImg";
			var SLCGMPHOTOID = "slcgmPhoto";
			var SLCGMPHOTOIMAGELARGEIMGID = "slcgmPhotoLarge";
			var SLCGMPHOTOTITLEID = "slcgmPhotoTitle";
			var SLCGMPHOTODESCRIPTIONID = "slcgmPhotoDescription";
			var SLCGMPHOTOPAGENAVID = "slcgmPhotoPageNav";
			var SLCGMGALLERYTITLEID = "slcgmGalleryTitle";
			var SLCGMCOMMENTSBLOCKDIV = "slcgm_comments_block";
			var SLCGMMETADATA = "slcgm_metadata";
			var SLCGMUPLOADLINK = "div.cgmupload";
			var SLCGMPHOTOPAGINATION = "slcgm_photo_pagination";
			var SLCGMVIEWGALLERYLINK = "div.cgmview";
			var SLCGMPAGINATION = "div.cgmpagenav";
			var SLCGMCOMMENTSPAGINATION = "slcgm_comment_pagenav";
			var SLCGMCOMMENTSFORMID = "slcgm_comments_add_form";
			var SLCGMCOMMENTSCOUNTID = "slcgm_comments_count";
			var SLCGMCOMMENTSTITLEHTML = "Comments <span class=\"slcgm_comments_count_wrapper\">(<span id=\"slcgm_comments_count\" class=\"amount\"></span>)</span>";
			var SLCGMCOMMENTSTITLEDIV  = "slcgm_comments_title";
			var SLCGMCOMMENTGUIDELINESDIV = "slcgm_comments_guidelines";
			var SLCGMCOMMENTANCHOR = "#slcgm_comments_anchor";
			var SLCGMREPORTABUSECONTAINER = "ReportAbuseContainer";
			var SLCGMREPORTABUSEID = "reportabuse";
			var SLCGMREPORTABUSECOUNTID = "reportabuseCnt";
			var SLCGMREPORTABUSESTATEID = "slcgm_reportabuse";
			var SLCGMRECOMMENDID = "recommend";
			var SLCGMRECOMMENDCOUNTID = "recommendCnt";
			var SLCGMRECOMMENDSTATEDIV = "slcgm_recommend";
			var SLCGMRATINGID = "rating";
			var SLCGMRATINGCOUNTID = "ratingCnt";
			var SLCGMRATINGSTATEDIV = "slcgm_rating";
			var SLCGMCOMMENTID = "comment";
			var SLCGMCOMMENTCOUNTID = "commentCnt";
			var SLCGMCOMMENTBODYFORMELEMENTID = "commentBody";
			var SLCGMCOMMENTSPAGEDIV = "slcgm_comments_page";
			var SLCGMVELOHEADCLASS = "span.vitstoryheadline";
		/* URLs Defined */
			var SLCGMUPLOADPAGE = "http://www.pe.com/membercenter/upload.html";
			var SLCGMPHOTOGALLERYURI = "http://www.pe.com/membercontent/photos/gallery.html";
			var SLCGMSLIDESHOWGALLERYURI = "http://www.pe.com/membercontent/photos/slideshow.html";
			var SLCGMVIDEOPAGEURI = "http://www.pe.com/membercontent/videos/video.html";
			var SLCGMVIDEOGALLERYURI = "http://www.pe.com/membercontent/videos/gallery.html";
			var SLCGMVIDEOUPLOADURI = "http://www.pe.com/membercontent/videos/upload.html";
			var SLCGMPHOTOPAGEURI = "http://www.pe.com/membercontent/photos/photo.html";
			var SLCGMPHOTOUPLOADURI = "http://www.pe.com/membercontent/photos/upload.html";
			var SLCGMPROFILEPAGEURI = "http://www.pe.com/membercontent/memberprofile.html";
	 /* var SLCGMEMBERCENTERURI = "http://www.pe.com/sharedcontent/registration/membercenter.jsp"; */
			var SLCGMEMBERCENTERURI = "http://www.pe.com/membercontent/profile-error.html";
			var SLCGMSNMINLENMESSAGE = "Screen Names must be at least 6 characters";
			var domainPieces = document.domain.split(".");

		/* Gallery thumbnail size (Small, Medium, Large, RecentSlide) */
		/* var SLCGMGALLERYIMAGESIZE = "Small"; */

 		/* ITEMS ON PAGE AND COTENT DISCOVERY AGE */
 		/* ONLY THE VARIABLES ENDING IN AGE CAN BE UP TO 15, WHICH IS MEASURED IN DAYS */
 		/* ALL OTHER ON AND PER PAGE VARIABLES CANNOT BE OVER 10 */

		/* default items per page */
		/* var SLCGMITEMSPERPAGE = 10; */
			var SLCGMITEMSPERPAGE = 10;
		/* Number of characters to display */
			var SLCGMTEXTTRUNCATE = 160;
		/* The number of videos on a single video page. */
			var SLCGMITEMSPERVIDEOPAGE = 5;
		/* The number of photos on a single photo page. */
			var SLCGMITEMSPERPHOTOPAGE = 8;
		/* var SLCGMITEMSPERPHOTOPAGE = 4;
		/* Most Commented, Recommended tab list search age.  Measured in days.  Usually found on article pages. */
			var RECENTACTIVITYAGE = 7;
			var RECENTARTICLESAGE = 2;
			var RECENTACTIVITYAGEPHOTOS = 7;
			var RECENTACTIVITYAGEVIDEOS = 7;
		/* Most Commented, Recommended tab list count.  Usually found on article pages. */
			var RECENTACTIVITYCOUNT = 5;
		/* home page and index page recent photos display count */
			var RECENTPHOTOSDCCOUNT = 4;
		/* home page and index page recent videos display count */
			var RECENTVIDEOSDCCOUNT = 3;
		/* Number of comments	to be displayed per page, 10 is the most, 5 displays faster. */
			var SLCGMCOMMENTSONPAGE = 10;

	/***************************************************************************************
	::DISCOVERY ACTIVITIES::

	Recent: latest content in the system
	Commented: content with the most comments
	Reviewed: content with the most reviews
	Recommended: content with the most recommendations
	Rated: content with the highest average rating
	MostActive: content owners that have the most active content in the system
	***************************************************************************************/

	/* Activity Type for photos (DEFAULT FOR WHOLE SITE) */
		var SLCGMPHOTODISCTYPE = typeof(SLCGMPHOTODISCTYPE)=='undefined' ? "Recent":SLCGMPHOTODISCTYPE;
	/* Activity Type for videos (DEFAULT FOR WHOLE SITE) */
		var SLCGMVIDEODISCTYPE = typeof(SLCGMVIDEODISCTYPE)=='undefined' ? "Recent":SLCGMVIDEODISCTYPE;


		/* END SITE LEVEL CONFIGURATION */
		/* DO NOT EDIT BELOW THIS LINE */
		/* START SITELIFE CORE LIBRARIES */
		/* END SITELIFE SCRIPTS */

		/* PATTERNS */
			var SLCGMNULLCONTENTID = "NOIDHERE";
			var PAGETITLEDELIMITER = " | ";
		/* addLoadEvent for adding window.onload */
			try
			{
				if (ONLOADFUNC)
				{
					addLoadEvent(ONLOADFUNC);
				}
			}
			catch(e){}

/****************************************************************
DO NOT EDIT BELOW THIS COMMENT
****************************************************************/
function init_globals()
{
	this.site_config = {
		media : {
			gallery:
			{
				updateGalleryPromo: false	// This will replace the gallery thumbnail with the most recent picture uploaded to that gallery
			}
		}
	};
}