YAHOO.util.Event.onDOMReady(function () {

	suggPanel = new YAHOO.widget.Panel("suggPanel", {
		width: "400px",
		fixedcenter: true,
		modal: true,
		constraintoviewport: true,
		underlay: "none",
		close: true,
		visible: false,
		zIndex: 100,
		effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration: .2},
		draggable: true} );

	var current_url = location.href

	suggPanel.setHeader("<p>Make Suggestion</p>");
	var body = '<form action="/feedback/what-else/" method="post" name="what-else-overlay"><table cellpadding="0" cellspacing="0" border="0" class="regtabledata" summary="Personal Details"><tr><td class="regfieldtitle" width="80">Name:</td><td nowrap="nowrap" class="tablespacecol"></td><td><input name="name" maxlength="100" id="id_name_frm1" type="text" size="28" class="required" /></td></tr><tr><td colspan="3" nowrap="nowrap" class="tablespacerow"></td></tr><tr><td class="regfieldtitle">Email:</td><td nowrap="nowrap" class="tablespacecol"></td><td><input name="email" maxlength="200" id="id_email_frm1" type="text" class="required" size="28" /></td></tr><tr><td colspan="3" nowrap="nowrap" class="tablespacerow"></td></tr><tr><td class="regfieldtitle">Do you have any suggestions or information that would help us improve this website?</td><td nowrap="nowrap" class="tablespacecol"></td><td><textarea id="id_body_frm1" cols="35" rows="6" name="body" class="required"></textarea></td></tr><tr><td></td><td nowrap="nowrap" class="tablespacecol"></td><td><a href="javascript:document.forms[\'what-else-overlay\'].submit();" id="btn-submit"></a></td></tr></table><input type="hidden" name="fwd_url" value="{{ full_url }}" id="id_article_url" /></form>'
	body = body.replace('{{ full_url }}', current_url)
	suggPanel.setBody(body);
	suggPanel.render(document.body);

	askPanel = new YAHOO.widget.Panel("askPanel", {
		width: "400px",
		fixedcenter: true,
		modal: true,
		constraintoviewport: true,
		underlay: "none",
		close: true,
		visible: false,
		zIndex: 100,
		effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration: .2},
		draggable: true} );

	var body = '<form action="/feedback/ask-expert/" method="post" name="expert-overlay"><table cellpadding="0" cellspacing="0" border="0" class="regtabledata" summary="Personal Details"><tr><td class="regfieldtitle" width="80">Name:</td><td nowrap="nowrap" class="tablespacecol"></td><td><input name="name" maxlength="100" id="id_name_frm2" type="text" size="28" class="required" /></td></tr><tr><td colspan="3" nowrap="nowrap" class="tablespacerow"></td></tr><tr><td class="regfieldtitle">Email:</td><td nowrap="nowrap" class="tablespacecol"></td><td><input name="email" maxlength="200" id="id_email_frm2" type="text" class="required" size="28" /></td></tr><tr><td colspan="3" nowrap="nowrap" class="tablespacerow"></td></tr><tr><td class="regfieldtitle">Do you have any questions that you would like to ask one of our many experts?</td><td nowrap="nowrap" class="tablespacecol"></td><td><textarea id="id_body_frm2" cols="35" rows="6" name="body" class="required"></textarea></td></tr><tr><td></td><td nowrap="nowrap" class="tablespacecol"></td><td><a href="javascript:document.forms[\'expert-overlay\'].submit();" id="btn-submit"></a></td></tr></table><input type="hidden" name="fwd_url" value="{{ full_url }}" id="id_article_url" /></form>'
	body = body.replace("{{ full_url }}", current_url)

	askPanel.setHeader("<p>Ask Question</p>");
	askPanel.setBody(body);
	askPanel.render(document.body);

});
