				YAHOO.namespace("nyed.container");

				function jumpURL(URL) { window.location.href=URL; }

				function ShowPopWin(wName, page, header, wWidth, fWidth, wHeight, fHeight, wType) {
					NewShowPopWin(wName, page, header, wWidth, fWidth, wHeight, fHeight, wType, "/");
				}

				function NewShowPopWin(wName, page, header, wWidth, fWidth, wHeight, fHeight, wType, urlPrefix) {
					if (wType == 1) {
						YAHOO.nyed.container.showWin = new YAHOO.widget.Panel(wName,{ width: wWidth,fixedcenter:true,close:true,draggable:true,height: wHeight,modal:true,visible:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.5}} );
						YAHOO.nyed.container.showWin.setBody("<body topmargin='0' leftmargin='0' rightmargin='0' bottommargin='0' marginwidth='0' marginheight='0'><IFRAME WIDTH='" + fWidth + "' HEIGHT='" + fHeight + "' SRC='" + urlPrefix + page + "' BORDER='0' frameborder='0' marginwidth='0' marginheight='0' name='PFRAME'></body>");
					} else {
						YAHOO.nyed.container.showWin = new YAHOO.widget.Panel(wName,{ width: wWidth,fixedcenter:true,close:true,draggable:true,modal:true,visible:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.5}} );
						YAHOO.nyed.container.showWin.setBody(page);
					}
					YAHOO.nyed.container.showWin.setHeader(header);
					YAHOO.nyed.container.showWin.render(document.body);
           			YAHOO.nyed.container.showWin.show();
            		return false;
				}

				function showAcctCreate(EventID) {
					YAHOO.nyed.container.LoginWin.hide();
					if (theBrowser == "ie") {
						return ShowPopWin("acctWin", "create_account.html?event=" + EventID, "Event Registration - New Account", "450px", "445", "300px", "290",1);
					} else if (theBrowser == 'iphone') {
						return ShowPopWin("acctWin", "create_account.html?event=" + EventID, "Event Registration - New Account", "450px", "445", "330px", "300",1);
					} else {
						return ShowPopWin("acctWin", "create_account.html?event=" + EventID, "Event Registration - New Account", "450px", "445", "300px", "273",1);
					}
				}

				function displayDirections(title, directions) {
					popWidth = "380px";
					contextArea = "showdirectionsloc";
					if (theBrowser == 'iphone') { contextArea = 'iphone_' + contextArea; popWidth = "270px"; }
					YAHOO.nyed.container.showDirections =
							new YAHOO.widget.Panel("showDirections",
															{ context:[contextArea, 'tl', 'bl'],
															  width: popWidth,
															  close:true, iframe:false,
															  effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.5}
															}
														);
					if ((theBrowser == 'ie') || (theBrowser == 'ie7')) {
						directions = directions.replace(/&apos;/g, "\'");
						directions = directions.replace(/&quot;/g, "\"");
						title = title.replace(/&apos;/g, "\'");
						title = title.replace(/&quot;/g, "\"");
					}
					YAHOO.nyed.container.showDirections.setBody("<b>" + title + "</b><br>" + directions);
            		var content = document.getElementById(contextArea);
					YAHOO.nyed.container.showDirections.render(content);
            		YAHOO.nyed.container.showDirections.show();
            		return false;
				}

				function DisplayFaq(title, faq, contextArea) {
					if (contextArea == undefined) { contextArea = 'showfaqhint'; }
					popWidth = "380px";
					if (theBrowser == 'iphone') { contextArea = 'iphone_' + contextArea; popWidth = "280px"; }
					YAHOO.nyed.container.showFAQ =
							new YAHOO.widget.Panel("faqWin",
															{ context:[contextArea, 'tl', 'bl'],
															  width: popWidth,
															  close:true, iframe:false,
															  effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.5}
															}
														);
					if ((theBrowser == 'ie') || (theBrowser == 'ie7')) {
						faq = faq.replace(/&apos;/g, "\'");
						faq = faq.replace(/&quot;/g, "\"");
						title = title.replace(/&apos;/g, "\'");
						title = title.replace(/&quot;/g, "\"");
					}
					YAHOO.nyed.container.showFAQ.setBody("<u><b>" + title + "</b></u><br><br>" + faq);
            		var content = document.getElementById(contextArea);
					YAHOO.nyed.container.showFAQ.render(content);
            		YAHOO.nyed.container.showFAQ.show();
            		return false;
            	}

				function popWLinfo(title, page) {
					return ShowPopWin("wlInfoWin", page, title, "550px", "545", "440px", "410",1);
				}

				function showTAFWin() {
					if (theBrowser == 'firefox')
						return ShowPopWin("TafWin", "tellafriend_pop.html", "Tell a Friend", "425px", "420", "320px", "290",1);
					else if (theBrowser == "ie")
						return ShowPopWin("TafWin", "tellafriend_pop.html", "Tell a Friend", "425px", "420", "310px", "300",1);
					else
						return ShowPopWin("TafWin", "tellafriend_pop.html", "Tell a Friend", "425px", "420", "310px", "283",1);
				}

				function showEventTAFWin(EventID) {
					if (theBrowser == 'firefox')
						return ShowPopWin("EventTafWin", "tellafriend_event_pop.html?e=" + EventID, "Tell a Friend this Event", "425px", "420", "350px", "320",1);
					else if (theBrowser == "ie")
						return ShowPopWin("EventTafWin", "tellafriend_event_pop.html?e=" + EventID, "Tell a Friend this Event", "425px", "420", "340px", "330",1);
					else
						return ShowPopWin("EventTafWin", "tellafriend_event_pop.html?e=" + EventID, "Tell a Friend this Event", "425px", "420", "340px", "313",1);
				}

				function showMLWin() {
					if (theBrowser == 'firefox')
						return ShowPopWin("mlJoinWin", "join_mailing.html", "Join Mailing List", "410px", "405", "320px", "290",1);
					else if (theBrowser == "ie")
						return ShowPopWin("mlJoinWin", "join_mailing.html", "Join Mailing List", "410px", "405", "310px", "300",1);
					else
						return ShowPopWin("mlJoinWin", "join_mailing.html", "Join Mailing List", "410px", "405", "310px", "283",1);
				}

				function showSSMLWin() {
					if (theBrowser == 'firefox')
						return ShowPopWin("mlJoinWin", "join_mailing.html?ss=1", "Join Mailing List", "410px", "405", "320px", "290",1);
					else if (theBrowser == "ie")
						return ShowPopWin("mlJoinWin", "join_mailing.html?ss=1", "Join Mailing List", "410px", "405", "310px", "300",1);
					else
						return ShowPopWin("mlJoinWin", "join_mailing.html?ss=1", "Join Mailing List", "410px", "405", "310px", "283",1);
				}

				function showNLWin() {
					if (theBrowser == 'firefox')
						return ShowPopWin("nlJoinWin", "join_notify.html", "Join Notification List", "400px", "395", "310px", "280",1);
					else if (theBrowser == "ie")
						return ShowPopWin("nlJoinWin", "join_notify.html", "Join Notification List", "400px", "395", "310px", "300",1);
					else
						return ShowPopWin("nlJoinWin", "join_notify.html", "Join Notification List", "400px", "395", "330px", "300",1);
				}

            	function showLogin(EventID) {
					var wName = "SignUpWin";
					var page = "event_signin.html?e=" + EventID;
					var header = "Event Registration";
					var wWidth = "410px";
					var fWidth = "405";
					var wHeight = "200px";
					var fHeight = "170";
					var wType = 1;
					var urlPrefix = "/";
					YAHOO.nyed.container.LoginWin = new YAHOO.widget.Panel(wName,{ width: wWidth,fixedcenter:true,close:true,draggable:true,height: wHeight,modal:true,visible:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.5}} );
					YAHOO.nyed.container.LoginWin.setBody("<body topmargin='0' leftmargin='0' rightmargin='0' bottommargin='0' marginwidth='0' marginheight='0'><IFRAME WIDTH='" + fWidth + "' HEIGHT='" + fHeight + "' SRC='" + urlPrefix + page + "' BORDER='0' frameborder='0' marginwidth='0' marginheight='0' name='PFRAME'></body>");
					YAHOO.nyed.container.LoginWin.setHeader(header);
					YAHOO.nyed.container.LoginWin.render(document.body);
            	}

            	function ShowCCVPanel(myObject, myWidth, Anc1, Anc2) {
	            	var ObjID = document.getElementById("hook1");
					YAHOO.nyed.container.HelpPanel = new YAHOO.widget.Panel("HelpPanel", { context:[myObject, Anc1, Anc2], width:myWidth, iframe:false, close:false, effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.25} } );
           			YAHOO.nyed.container.HelpPanel.setBody("<div style='background:#F1FFEA;'>This is an authentication feature established by credit and debit card companies to further efforts towards reducing fraud on online transactions. View the diagrams below to find your CVN:<br><br><img src=\"/images/cvdefault.jpg\" align=\"left\" vspace=\"5\"><b>Visa, Master Card</b> and <b>Discover</b> cards have the CVN printed on the back of the card. It is the last 3 digits AFTER the credit card number in or above the signature area.<div style=\"clear:both;\"><br><br><img src=\"/images/cv_amex.jpg\" align=\"left\" vspace=\"5\"><b>American Express</b> cards show the CVN printed above and to the right of the imprinted card number on the front of the credit card.</div>");
					YAHOO.nyed.container.HelpPanel.render(ObjID);
   	        		YAHOO.nyed.container.HelpPanel.show();
            	}

            	var isFirstTime = 1;

				function ShowHelpPanel(myObject, myText, myWidth, Anc1, Anc2) {
	            	isFirstTime = 0;
	            	var myObject = "hook1";
					YAHOO.nyed.container.HelpPanel = new YAHOO.widget.Panel("HelpPanel", { width: myWidth, close:false, effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.25} } );
	            	var ObjID = document.getElementById(myObject);
					YAHOO.nyed.container.HelpPanel.setBody(myText);
					YAHOO.nyed.container.HelpPanel.render(ObjID);
   	        		YAHOO.nyed.container.HelpPanel.show();
				}

				function HideHelpPanel() {
					YAHOO.nyed.container.HelpPanel.hide();
				}

				function ShowQuickWLInfo(gender) {
	            	var myObject = "hook2";
					YAHOO.nyed.container.HelpPanel = new YAHOO.widget.Panel("HelpPanel", { width: "250px", close:false, iframe: true, zindex: 99, effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.25} } );
	            	var ObjID = document.getElementById(myObject);
					YAHOO.nyed.container.HelpPanel.setBody("You can sign up with a " + gender + " to get in right away. For more information on this and how the waitlist works, see the information in the left panel.");
					YAHOO.nyed.container.HelpPanel.render(ObjID);
   	        		YAHOO.nyed.container.HelpPanel.show();
				}

				function ShowTaC() {
					return ShowPopWin("TermsAndCond", "pop_terms.html", "Terms and Conditions", "550px", "545", "400px", "370",1);
				}

				function TestUs() {
					if ((theBrowser != 'ie') && (theBrowser != 'ie7'))
						ShowPopWin("TestUsOut", "test_contact.html", "Contact Chicago EasyDates", "350px", "345", "310px", "300",1);
					else
						ShowPopWin("TestUsOut", "test_contact.html", "Contact Chicago EasyDates", "350px", "345", "300px", "290",1);
					return false;
				}

				function TestUs_Done() {
					ShowPopWin("TestUsOut2", "<div style=\"width: 300px; height: 70px; display:block;\"><center><br>Thanks!  We\'ll respond as soon as we can!</center><br><br>\n<center><div id=\"frmbutton\"><a href=\"#\" onclick=\"javascript:window.parent.YAHOO.nyed.container.showWin.hide(); return false;\"><b>Close</b></a></div></center></div><br><br>", "Contact Chicago EasyDates", "305px", "300", "80px", "70",0);
				}

				function ShowFreeDrinkInfo(myObject, myText, myWidth) {
					YAHOO.nyed.container.HelpPanel = new YAHOO.widget.Panel("HelpPanel", { context:[myObject, "tl", "bl"], width: myWidth, close:false, effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.25} } );
	            	var ObjID = document.getElementById(myObject);
					YAHOO.nyed.container.HelpPanel.setBody(myText);
					YAHOO.nyed.container.HelpPanel.render(ObjID);
   	        		YAHOO.nyed.container.HelpPanel.show();
				}
