/*Add and remove calendar items here. Do not change anything else in this file */	function populateSchedule(){			var scheduleItems = 	"<li><b>Check back soon!</b><br/>Dates will be added here...</li>";			var schedule = dojo.byId("schedule_list");			schedule.innerHTML = scheduleItems;   	}		var color="#fff;";		var summaryColor="white";		var buttonObjects = [];				function optionObject(button_name){			var button = dojo.byId(button_name);			if(button!=null){				this.button = button;				this.summary = dojo.byId(button_name + "_summary");				this.content = dojo.byId(button_name + "_content");				this.linker =  dojo.byId(button_name + "_link");			}					}		function hideSummaries(){			for (i=0;i<buttonObjects.length;i++){		   	var buttonObject = buttonObjects[i];		   	dojo.style(buttonObject.summary,"display","none");		   	dojo.style(buttonObject.linker,"display","none");		   	dojo.style(buttonObject.button,"backgroundImage","url(./images/colour_themes/unselectedtab_withcorners_" + summaryColor + ".gif)");		   	dojo.style(buttonObject.button,"color","#000");		   		dojo.style(buttonObject.content,"display","none");		   }		}		function showSummary(event){						hideSummaries();			dojo.style(event.target,"background",color);			dojo.style(event.target,"color","#fff");			var id = event.target.id + "_summary";			var linkId = event.target.id + "_link";			var contentId = event.target.id + "_content";			dojo.style(dojo.byId(id), "display", "block");			dojo.style(event.target,"backgroundImage","url(./images/colour_themes/tab_corners.png)");			dojo.style(dojo.byId(linkId), "display", "block");			dojo.style(dojo.byId(contentId), "display", "block");				}				function initProjectList(){			var projectDescriptions = dojo.query("#project_list dd");			var projectIcons = dojo.query("#project_list dt");						projectDescriptions.forEach(function(node, index, nodeList){				dojo.connect(projectIcons[index],"onclick",function(){ /*Creates a function linking each icon to each description*/    				hideProjectDescriptions();    				dojo.style(node, "display", "block");					var yPosition = -165*index;					dojo.style(projectIcons[index],"backgroundPosition","-84px " + yPosition + "px");					console.log(projectIcons[index].style.backgroundPosition);											    		});	    			dojo.style(node, "display", "none");    			i++;			});						dojo.style(projectDescriptions[0], "display", "block");			dojo.style(projectIcons[0],"backgroundPosition","-84px 0");		}				function hideProjectDescriptions(){			var projectDescriptions = dojo.query("#project_list dd");			var projectIcons = dojo.query("#project_list dt");					projectDescriptions.forEach(function(node, index, nodeList){    			    			dojo.style(node, "display", "none");    			var yPosition = -165*index;    			dojo.style(projectIcons[index],"backgroundPosition","0px " + yPosition + "px");    				    			i++;			});				}					function initSummary(pageThemeColor){			summaryColor = pageThemeColor;			if(summaryColor=="orange"){				color="#ff5f12";			}else if(summaryColor=="green"){				color="#11b152";			}else if(summaryColor=="blue"){				color="#0072bc";			}else if(summaryColor=="red"){				color="#ED0F0F";			}								   var optionObject1 = new optionObject("option_1");		   if(optionObject1.button!=null){		   	buttonObjects[0] = optionObject1;		   }		   var optionObject2 = new optionObject("option_2");		   if(optionObject2.button!=null){		   	buttonObjects[1] = optionObject2;		   }		   var optionObject3 = new optionObject("option_3");		   if(optionObject3.button!=null){		   	buttonObjects[2] = optionObject3;		   }		   var optionObject4 = new optionObject("option_4");		   if(optionObject4.button!=null){		   	buttonObjects[3] = optionObject4;		   }		   for (i=0;i<buttonObjects.length;i++){		   	dojo.connect(buttonObjects[i].button,"onclick",showSummary);		   }		   		   hideSummaries();		   dojo.style(dojo.byId("option_1_summary"),"display","block");		   dojo.style(dojo.byId("option_1_link"),"display","block");		   dojo.style(dojo.byId("option_1_content"),"display","block");		   dojo.style(dojo.byId("option_1"),"background",color);		   dojo.style(dojo.byId("option_1"),"backgroundImage","url(./images/colour_themes/tab_corners.png)");		   dojo.style(dojo.byId("option_1"),"color","#fff");		}						function submitForm(form){			var uploadForm = dojo.byId(form.id);		if(form.isValid()){					/* gather all parameters from a form:*/			dojo.io.iframe.send({				/* The target URL on your webserver:*/				url: "http://e3unlimited-enews.com/signup.ashx",				/* The form node, which contains the*/				/* to be transfered form elements:*/				form: uploadForm,				handleAs: "text/plain",				handle: function(response, ioArgs){					if(response instanceof Error){									}else{									}					ioResponse = response; 				}				  			});  			  		}else{			dijit.byId('newsletterDialog').show();		}	}		function closeForm(event){			dijit.byId("newsletterDialog").hide();	}			 	function print_mail_to_link(firstName, lastName){		    		 var emailAddress = firstName + "." + lastName + "@e3unlimited.com";		 var subject = "Hello " + capitalizeMe(firstName) + "!";		 document.write("<a id=\"email\" href=\"mailto");		 document.write(":" + emailAddress + "?Subject=" + subject + "\">" + emailAddress + "</a>"); 		 /*document.write("&Body=" + body + "\"></a>");		    */	 }	 		 	function capitalizeMe(val) {                newVal = '';        val = val.split(' ');        for(var c=0; c < val.length; c++) {            newVal += val[c].substring(0,1).toUpperCase() +				val[c].substring(1,val[c].length);        }        return newVal;	}