/*******************************************************************************
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 *
 *
 * Copyright (c) 2008 - 2010 Sun Microsystems Inc. All Rights Reserved
 *
 * This file is available and licensed under the following license:
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * * Redistributions of source code must retain the above copyright
 * notice, this list of conditions and the following disclaimer.
 * * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * * Neither the name of Sun Microsystems nor the names of its contributors
 * may be used to endorse or promote products derived from this software
 * without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 ******************************************************************************/
var TEMPLATE_SITECONNECT_TABLE =
'<h3>Connect Your Social Networks</h3>' +
'You can connect to your online social personality by clicking the below icons.  Once connected, '+
'your personal connections will appear in the below <strong>Personal Connections</strong> area.<br><br>' +
'<div id="ceq_siteconnect_personal_icons"/><br>' +
'<h3>Personal Connections</h3>' +
'You have personally connected to the following sites.  Click <b>Delete</b> to disconnect the feed.  Click the icons above to reconnect.<br><br>' +
'<table id="ceq_siteconnect_personal_table">' +
	'<tbody id="ceq_siteconnect_personal_table_content"><tr><td><img src="${WIDGET_RESSOURCE_PATH}/img/wait.gif">Please Wait.</td></tr></tbody>' +
'</table>' +
'<br><h3>Site Feed Names</h3>' +
'The following site-wide feeds are currently active.  If you participate in any of the venues associated with these feeds, '+
'click <strong>Edit...</strong> and specify your identifier for a given venue so that your activities are attributed to you.<br><br>' +
'<table id="ceq_siteconnect_table">' +
	'<tbody id="ceq_siteconnect_table_content"><tr><td><img src="${WIDGET_RESSOURCE_PATH}/img/wait.gif">Please Wait.</td></tr></tbody>' +
'</table>';

var TEMPLATE_SITECONNECT_EMPTY_ROW = '<tr id="ceq_siteconnect_empty_row"><td colspan="3"><em>There are no site-wide feeds defined.</em></td></tr>';

var TEMPLATE_SITECONNECT_PERSONAL_EMPTY_ROW = '<tr id="ceq_siteconnect_personal_empty_row"><td colspan="3"><em>You have not personally connected to any sites.</em></td></tr>';

var TEMPLATE_SITECONNECT_ROW = '<tr id="ceq_siteconnect_table_row_${applicationName}"></tr>';

var TEMPLATE_SITECONNECT_PERSONAL_ROW = '<tr id="ceq_siteconnect_personal_table_row_${feedId}"></tr>';

var TEMPLATE_SITECONNECT_ROW_CONTENT =
'<td align="center"><button id="ceq_siteconnect_button_update_${applicationName}">Edit...</button></td>' +
'<td align="left" id="applicationName_${applicationName}">${applicationName}<input type="hidden" value="${applicationName}"></input></td>' +
'<td align="center" id="siteicon_${applicationName}"><span class="application application${applicationName}"/><input type="hidden" value="${applicationName}"></input></td>' +
'<td align="left" id="userAlias_${applicationName}">${userAlias}<input type="hidden" value="${userAlias}"></input></td>';

var TEMPLATE_SITECONNECT_PERSONAL_ROW_CONTENT =
'<td align="center"><button id="ceq_siteconnect_personal_button_delete_${feedId}">Delete</button></td>' +
'<td align="center" id="siteicon_${feedId}"><span class="application application${applicationName}"/></td>' +
'<td align="left" id="applicationName_${feedId}">${applicationName}</td>';

var TEMPLATE_SITECONNECT_OVERLAY_UPDATE =
'<div id="${overlay_id}" class="overlay">' +
'<span class="application application${applicationName}"/><h3>Edit Site Feed Names for ${applicationName}</h3><br/>' +
'<div id="messages">' +
'</div>' +
'<div id="update_siteconnect_content">' +
'    <table>' +
'        <tr>' +
'            <td><label for="enabled">Site Names:</label></td><td><input type="text" id="siteNames" name="siteNames" size="40" value="${siteNames}"></input>' +
'        </tr>' +
'        <tr><td colspan="2" align="center"><button type="button" id="update_siteconnect_submit">Update</button></td></tr>' +
'    </table>' +
'<input type="hidden" name="applicationName" id="applicationName" value="${applicationName}"></input>' +
'</div>' +
'</div>';

var TEMPLATE_FBCONNECT_WIDGET = '<div id="fbconnect_content"/>';
var TEMPLATE_FBCONNECT_ITEM = 'You are connected to Facebook [<a href="http://www.facebook.com/editapps.php">Disconnect</a>] &nbsp;';

var TEMPLATE_CLIQSETCONNECT_WIDGET =
'<div id="cliqsetconnect_content">' +
'<img id="cliqsetconnect_register" src="http://cliqset-v3.s3.amazonaws.com/img/header-logo.png" width="120" alt="Register your Cliqset feed"/>' +
'</div>'+
'<div class="overlay" style="width:350px;height:150px;" id="cliqsetconnect_overlay">' +
'	<table>' +
'		<tr>' +
'			<td><label for="cliqsetid">Cliqset Username:</label></td>' +
'			<td><input type="text" id="cliqsetid" name="cliqsetid"' +
'			           size="40"/>' +
'		</tr>' +
'		<tr>' +
'			<td>' +
'				<div id="messages">&nbsp;</div>' +
'			</td>' +
'		</tr>' +
'		<tr>' +
'			<td colspan="2" align="center">' +
'				<button type="button" id="add_cliqset_feed">Connect' +
'				</button>' +
'			</td>' +
'		</tr>' +
'	</table>' +
'</div>'+
'</div>';


