function DCsI(s) {
	var SITEID = s;
	var __dcsi = false;
	if (typeof dc_d.si != "undefined")
		__dcsi = dc_d.si
	else if (typeof dc_d.DCSESS_ID != "undefined")
		__dcsi = dc_d.DCSESS_ID
	else if (typeof DCSESS_ID != "undefined")
		__dcsi = DCSESS_ID

	var si_c = $('<div id="__DCsI__" style="position: relative; top: 0; left: 0; display: none; width: 100%; height: 0px; background: #fff;"></div>');
	var si = $('<div id="__DCsI__c" style="position: absolute; top: 0px; left: 0; width: 100%;"></div>');

	var dl_a = $("#dcsi_85acfaf6b3e3_a");
	var dl = dl_a.children("img");
			dl_a.css({display: "block", width: dl.attr("width"), height: dl.attr("height")});

	var si_f = $("#dciprocessform");
			si_f.append('<input type="hidden" name="dcsessid" value="'+__dcsi+'">');
			si_f.append('<input type="hidden" name="interactid" value="">');

	$("body").append(si_c.append(si));
	$("#__DCsI__l").attr("href", dl_a.attr("href"));

	var head = document.getElementsByTagName('head')[0];

	var script = document.createElement('script');
	 		script.src = 'http://www.tjdesigntest.com/DC.interface/js/jquery.scrollTo.min.js';
	head.appendChild(script);

	this.check = function() {
		var allow_submit = true;
		for (f in dcsi_reqd) {
			var ff = dcsi_reqd[f];
			var v = $("#dciprocessform [name='post_vars\["+ff+"\]']").val();
			if (v == "")
				allow_submit = false;
		}

		$("#__DCsI__bn").css("display", (allow_submit)?"":"none");
	};
	var check = this.check;

	this.show = function() {
		var si_t = '<style type=\"text/css\">\n.DCIt {\n	height: 120px;\n	margin-top: 2px;\n}\n.DCIt select, .DCIt input, .DCIt textarea {\n	font-size: 11px;\n	font-weight: default;\n	font-family: Arial, sans-serif;\n}\n.DCIfield {\n	margin-bottom: 2px;\n}\n.DCIlabel {\n	color: 333;\n	font-family: Arial, sans-serif;\n	font-size: 11px;\n	font-weight: bold;\n	margin-bottom: 2px;\n	border-bottom: solid 1px #333;\n}\n.DCIslabel {\n	color: 333;\n	font-family: Arial, sans-serif;\n	font-size: 10px;\n	margin-bottom: 4px;\n}\n.DCItext {\n	font-family: \"Times New Roman\", Times, serif;\n	font-size: 12px;\n	font-style: italic;\n	color: 444;\n}\n<\/style>\n<script type=\"text/javascript\">\nvar dcsi_reqd = [\"subject\"];\n<\/script>\n\n<div style=\"width: 100%; height: 1px; background: #000; opacity: .80; filter: alpha(opacity=80);\"><\/div>\n<div style=\"width: 100%; height: 1px; background: #000; opacity: .60; filter: alpha(opacity=60);\"><\/div>\n<div style=\"width: 100%; height: 1px; background: #000; opacity: .40; filter: alpha(opacity=40);\"><\/div>\n<div style=\"width: 100%; height: 1px; background: #000; opacity: .20; filter: alpha(opacity=20);\"><\/div>\n\n<form id=\"dciprocessform\" action=\"http://www.tjdesigntest.com\" method=\"POST\" target=\"_blank\">\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"DCIt\" align=\"center\">\n<tr>\n	<td style=\"padding: 0 12px; border-right: solid 1px #333;\"><a href=\"http://www.tjdesigntest.com/?s=TJ3.mahnomen\" target=\"_blank\" id=\"__DCsI__l\"><img src=\"http://www.tjdesigntest.com/DC.interface/logo/tj_design.png\" width=\"93\" height=\"19\" /><\/a><\/td>\n	<td style=\"padding: 0 12px; border-right: solid 1px #333;\">\n	<div class=\"DCItext\" style=\"width: 325px;\">TJ Design Studio websites are dynamic, interactive, and client-driven.  The words, images and content you see here come straight from {CLIENT_NAME} to you.  If you have any questions, comments or concerns about this web site, please let us know.<\/div>\n	<\/td>\n	<td style=\"padding-left: 12px; vertical-align: middle;\">\n\n	<div id=\"__DCsI__f\">\n	<div class=\"DCIfield\">\n	<div><select name=\"post_vars[subject]\">\n	<option value=\"\"><\/option>\n	<optgroup label=\"Errors\">\n		<option value=\"ERROR:FORM\">Form: Something doesn\'t look right.<\/option>\n		<option value=\"ERROR:FUNCTION\">Function: Something isn\'t working.<\/option>\n		<option value=\"ERROR:CONTENT\">Content: There are errors in spelling, grammar or punctuation.<\/option>\n	<\/optgroup>\n	<optgroup label=\"I Like\">\n		<option value=\"LIKE:FORM\">Form: I want to see more like this page.<\/option>\n		<option value=\"LIKE:FUNCTION\">Function: I like the tools on this page.<\/option>\n		<option value=\"LIKE:CONTENT\">Content: This page is useful, insightful, interesting...<\/option>\n	<\/optgroup>\n	<\/select><\/div>\n	<div class=\"DCIslabel\">Subject<\/div>\n	<\/div>\n	<div class=\"DCIfield\">\n	<div><textarea name=\"post_vars[comments]\" rows=\"1\" cols=\"36\" class=\"TextareaFixed\" style=\"height: 36px;\"><\/textarea><\/div>\n	<div class=\"DCIslabel\">Comments<\/div>\n	<\/div>\n	<div id=\"__DCsI__id\" style=\"display: none;\">\n	<div style=\"clear: both;\"><\/div>\n	<div class=\"DCIfield\" style=\"float: left; margin-right: 6px;\">\n	<div><input type=\"text\" name=\"post_vars[name]\" size=\"24\" /><\/div>\n	<div class=\"DCIslabel\">Your Name<\/div>\n	<\/div>\n	<div class=\"DCIfield\" style=\"float: left;\">\n	<div><input type=\"text\" name=\"post_vars[email]\" size=\"24\" /><\/div>\n	<div class=\"DCIslabel\">Your Email<\/div>\n	<\/div>\n	<div style=\"clear: both;\"><\/div>\n	<\/div>\n	<\/div>\n\n	<\/td>\n	<td style=\"padding-left: 12px; vertical-align: middle;\">\n	<input type=\"button\" id=\"__DCsI__bn\" value=\"Submit\" onclick=\"sI.process(); return false;\" style=\"display: none;\">\n	<\/td>\n<\/tr>\n<\/table>\n<\/form>';
				si_t = si_t.replace(new RegExp("{CLIENT_NAME}", "gi"), dc_d.client.company_name);

		$("#__DCsI__c").html(si_t);

		$("#dciprocessform select").change(function() {
			check();
			return;
		});

		dl.hide();
		dl_a.blur();

		si_c.css({display: "", height: 128});
		$.scrollTo("#dciprocessform", 500);
	};
	var show = this.show;

	this.hide = function() {
		si_c.css({display: "none", height: 0});
		dl.show();
	};
	var hide = this.hide;

	this.process = function() {
		var rs = "/request.php";
		if (typeof dc_d.loc != "undefined" && typeof dc_d.loc.rs != "undefined")
			rs = dc_d.loc.rs;
		var q = $("#dciprocessform").serialize()+"&req="+dc_d.REQUESTID;

		$.post(rs+"?action=dcsi&dcid="+__dcsi, q, function(data) {
				if (typeof data.submissionid != "undefined") {
					$("#__DCsI__f").css("width", 250).html("Your input has been submitted.	Thank you for your time!");
				} else {
					$("#__DCsI__f").css("width", 250).html("Thanks for your input!");
				}

				$("#__DCsI__bn").css("display", "none");
			},
			"json"
		);
	};

	dl_a.click(function() {
		show();
		return false;
	});
}

var sI = new DCsI('TJ3.mahnomen');