document.domain = 'cbc.ca';
$S = CBC.SETTINGS;

//page settings
$S.setVal("pluckEnabled",true);

//server urls
$S.setVal("membercentreUrl","https://membercentre.cbc.ca");
$S.setVal("mcnsUrl","http://membercentre.cbc.ca");
$S.setVal("sitelifeUrl","http://sitelife.cbc.ca");
$S.setVal("serverUrl","http://sitelife.cbc.ca/ver1.0/Direct/Process");
$S.setVal("serverPhotoUploadUrl","http://sitelife.cbc.ca/ver1.0/Photo/Upload");
$S.setVal("serverVideoUploadUrl","http://sitelife.cbc.ca/ver1.0/Video/Upload");
$S.setVal("proxyRelUrl","/pluckproxy/update");


//general settings
$S.setVal("memberUrl","/membercentre/ViewMember.aspx");
$S.setVal("bar",true);

//comments settings
$S.setVal("cmtSort","TimeStampDescending");
$S.setVal("cmtOnLoad",true);
$S.setVal("cmtPerPage",5);
$S.setVal("maxCmtLength",2500);
$S.setVal("cmtAbuseReportWrapperOffset",[150,210]);
$S.setVal("preModMsg",'Comments on this story are pre-moderated. Before they appear, comments are reviewed by moderators to ensure they meet our <a href="/aboutcbc/discover/submissions.html">submission guidelines</a>.');
$S.setVal("semiModMsg",'Comments on this story are semi-moderated. That means that comments appear immediately but may be removed if they violate our <a href="/aboutcbc/discover/submissions.html">submission guidelines</a>.');

// ratings settings 
$S.setVal("tpl_ratings_type","review");
$S.setVal("tpl_rating_options","Horrible|Not for me|It is alright|I like it|I love it");

//gallery settings
$S.setVal("dummyPhotoGalleryId","64bfc471-7403-4aef-aa69-1bd024fda71a");
$S.setVal("yourNewsPhotoGalleryId","c38c6459-3cda-4ea6-8c41-443e8b6e991a");


// form upload controls
$S.setVal("maxFileUpload", 4); 
$S.setVal("tpl_videoUGC_notloggedin","<h1>Submit a Video</h1><p style=\"margin:0 10px;\">Be the first to break news, tell us what you think or submit a story about your community. It's easy, but to get started, you must first be <a href=\"/sso/SSOAuthenticationDomain.ashx?mode=login&redirecturl=" + document.location.href + "\">logged in</a>. Or, if you're not already a member, <a href=\"https://membercentre.cbc.ca/Register.aspx\" >register now</a>.</p>");
$S.setVal("tpl_videoUGC_thankyou","<p>Thank you for submitting your video. Please note that videos are pre-moderated and may not appear immediately.</p>");
$S.setVal("tpl_videoUGC_contest",false); // to limit contest entries
$S.setVal("tpl_step1_instructions", "<ul class='desc'><li>Select and submit up to 4 photos at a time.</li><li>Upload 4 photos max.</li><li>maximum file size 3 MB.</li><li>JPG, GIF or PNG formats.</li></ul>"); 
$S.setVal("tpl_step2_instructions", "<p>Add a title, location, description and tags for each photo.  Then click on submit.<span>* required fields</span></p>"); 
$S.setVal("tpl_rules_regulations", ""); 
//uploader settings
$S.setVal("vFileTypes","*.mpg;*.mpeg;*.mp4;*.mpg4;*.mpeg4;*.vob;*.3gp;*.avi;*.asf;*.wmv;*.mov;*.flv;");
$S.setVal("vFileDesc","Videos");
$S.setVal("vSizeLimit","100 MB");
$S.setVal("pFileTypes","*.jpg;*.jpeg;*.gif;*.bmp;*.png;");
$S.setVal("pFileDesc","Images");
$S.setVal("pSizeLimit","5 MB");

$S.setVal("videoGalleryKey",""); 

// video UGC Settings upload
$S.setVal("tpl_video_gallery_owner","");
$S.setVal("tpl_video_meta_data_account","");
$S.setVal("tpl_video_meta_data_show",""); 
$S.setVal("tpl_video_meta_data_event","");
$S.setVal("tpl_video_meta_data_comments_enabled",""); 
$S.setVal("tpl_video_meta_data_comments_expiration_date","");
$S.setVal("tpl_video_meta_data_event_date","");
$S.setVal("tpl_video_meta_data_genre","News"); 
$S.setVal("tpl_video_meta_data_season_number","");
$S.setVal("tpl_video_meta_data_segment","");
$S.setVal("tpl_video_meta_data_sport","");
$S.setVal("tpl_video_meta_data_sub-event","");
$S.setVal("tpl_video_meta_data_region","");

$S.setVal("tpl_video_lightbox",true);
$S.setVal("tpl_video_pagename","");

$S.setVal("tpl_memberInfo_firstname",false);                      
$S.setVal("tpl_memberInfo_lastname",false);                   
$S.setVal("tpl_memberInfo_email",false);                      
$S.setVal("tpl_memberInfo_city",false);                   
$S.setVal("tpl_memberInfo_province",false);  

$S.setVal("tpl_customField_Names","");  
$S.setVal("tpl_customField_Labels","");  
$S.setVal("tpl_customField_Required","");  	



//modules
$S.setVal("p-sitecatalyst",{loader:{_src:'/includes/objects/pluck/js/sitecatalystsettings.js',_name:'SiteCatalystSettings',_class:'SiteCatalystSettings'}});
$S.setVal("p-article",{loader:{_src:'/includes/objects/pluck/js/article.js',_name:'Article',_class:'Article'}});
$S.setVal("p-lineup",{loader:{_src:'/includes/objects/pluck/js/lineup.js',_name:'Lineup',_class:'Lineup'}});
$S.setVal("p-comments",{loader:{_src:'/includes/objects/pluck/js/comments.js',_name:'Comments',_class:'Comments'}});
$S.setVal("p-discovery",{loader:{_src:'/includes/objects/pluck/js/discovery.js',_name:'Discovery',_class:'Discovery'}});
$S.setVal("p-photogallery",{loader:{_src:'/includes/objects/pluck/js/photogallery.js',_name:'Photogallery',_class:'Photogallery'}});
$S.setVal("p-photogalleries",{loader:{_src:'/includes/objects/pluck/js/photogalleries.js',_name:'Photogalleries',_class:'Photogalleries'}});
$S.setVal("p-videouploader",{loader:{_src:'/includes/objects/pluck/js/videoupload-ugc.js',_name:'Videogallery',_class:'Videogallery'}});
$S.setVal("p-forums",{loader:{_src:'/includes/objects/pluck/js/forums.js',_name:'Forums',_class:'Forums'}});
$S.setVal("MC_standalone",{loader:{_src:'/includes/objects/pluck/js/mcstandalone.js',_name:'MC_standalone',_class:'MC_standalone'}});
$S.setVal("p-ratings",{loader:{_src:'/includes/objects/pluck/js/ratings.js',_name:'Ratings',_class:'Ratings'}});

//ugc video meta data; escape entities, separate name:value pairs with ampersand
$S.setVal("tpl_video_meta_data", "");

//generic templates
$S.setVal("tpl_loggedin_msg",'<h2>You must be a CBC Member to contribute. Members please log in below.</h2><h2><strong>Not a member?</strong> Simply click "Sign Up" below to register.</h2> <span><a href="#" onclick="CBC.APP.PLUCK.spawnLogin(this,\'' + $S.getVal("colourTheme") + '\');return false;">Log In</a> | <a href="/membercentre/SignUp.aspx" target="_blank">Sign Up</a></span>');

//paginator
$S.setVal("tpl_paginator_li",'<li class="page"><a class="#{activeClass}" href="##{anchor}" #{attrib}>#{pageNumber}</a></li>');
$S.setVal("tpl_paginator_li_prev_on",'<li class="prev"><a href="##{anchor}" #{attrib}>Previous</a></li>');
$S.setVal("tpl_paginator_li_prev_off",'<li class="prev-off"><span>Previous</span></li>');
$S.setVal("tpl_paginator_li_next_on",'<li class="next"><a href="##{anchor}" #{attrib}>Next</a></li>');
$S.setVal("tpl_paginator_li_next_off",'<li class="next-off"><span>Next</span></li>');
$S.setVal("tpl_paginator_li_first",'<li class="first"><a href="##{anchor}" #{attrib}>First</a></li>');
$S.setVal("tpl_paginator_li_first_off",'<li class="first-off"><span>First</span></li>');
$S.setVal("tpl_paginator_li_last",'<li class="last"><a href="##{anchor}" #{attrib}>Last</a></li>');
$S.setVal("tpl_paginator_li_last_off",'<li class="last-off"><span>Last</span></li>');

//lineup module templates
$S.setVal("pluckContainerIds",[]);
$S.setVal("tpl_socialicons",'<a href="#{PageUrl}#socialcomments"><em>Comments</em><em class="cmt">#{NumberOfComments}</em></a>|<em>Recommend</em><em class="rec">#{NumberOfRecommendations}</em>');

//discovery module templates
$S.setVal("tpl_headline",'<dt class="headline"><a href="#{PageUrl}">#{PageTitle}</a> <span class="socialicons"><a href="#{PageUrl}#socialcomments"><em class="cmt">#{NumberOfComments}</em></a>|<em class="rec">#{NumberOfRecommendations}</em></span></dt>');
$S.setVal("tpl_headline_rec",'<dt class="headline"><a href="#{PageUrl}">#{PageTitle}</a> <span class="socialicons"><em class="rec">#{NumberOfRecommendations}</em></span></dt>');
$S.setVal("tpl_headline_cmt",'<dt class="headline"><a href="#{PageUrl}">#{PageTitle}</a> <span class="socialicons"><a href="#{PageUrl}#socialcomments"><em class="cmt">#{NumberOfComments}</em></a></span></dt>');

//register template
$S.setVal("tpl_register_link",'<a onclick="CBC.APP.PLUCK.spawnRegister(this);return false;" href="#">Sign up</a>');

