function showImage(image)
{
	var overlay = document.getElementById('overlay');
	var popup = document.getElementById('popup');
	var popupwait = document.getElementById('popupwait');
	var popupcontent = document.getElementById('popupcontent');
	//overlay.style.height = document.height + "px";
	overlay.style.display="block";
	popupwait.style.display="block";
	popupwait.innerHTML = "<div align='center'><h2>Please Wait ...</h2><img src='/images/loadingAnimation.gif'/></div>";
	makeRequest("/includes/simpleajax.php?image=" + image + "&w=" + document.body.clientWidth + "&h=" + document.documentElement.clientHeight,"popupcontent" );
}
function showMovie(movie, size)
{
	var overlay = document.getElementById('overlay');
	var popup = document.getElementById('popup');
	var popupwait = document.getElementById('popupwait');
	var popupcontent = document.getElementById('popupcontent');
	//overlay.style.height = document.height + "px";
	overlay.style.display="block";
	popupwait.style.display="block";
	popupwait.innerHTML = "<div align='center'><h2>Please Wait ...</h2><img src='/images/loadingAnimation.gif'/></div>";
	makeRequest("/includes/simpleajaxmovie.php?movie=" + movie + "&w=" + document.body.clientWidth + "&h=" + document.documentElement.clientHeight + "&sz=" + size,"popupcontent" );
}
function hideOverlay()
{
	var overlay = document.getElementById('overlay');
	var popup = document.getElementById('popup');
	var popupcontent = document.getElementById('popupcontent');
	overlay.style.display="none";
	popup.style.display="none";
	popupcontent.innerHTML="";
	
}
function showSignUpForm(form)
{
	var overlay = document.getElementById('overlay');
	var popup = document.getElementById('popup');
	var popupcontent = document.getElementById('popupcontent');
	//overlay.style.height = document.height + "px";
	overlay.style.display="block";
	
	if (form == 'ITC_Trial')
		popupcontent.innerHTML = "<!-- /AWeber Web Form Generator 3.0 -->\n\n\n<form\n	class=\"af-form-wrapper\"\n	style=\"color:white;\"\n	action=\"http://www.aweber.com/scripts/addlead.pl\"\n	method=\"post\">\n	<div\n		style=\"display: none;\">\n		<input\n			type=\"hidden\"\n			name=\"meta_web_form_id\"\n			value=\"1005261487\" />\n		<input\n			type=\"hidden\"\n			name=\"meta_split_id\"\n			value=\"\" />\n		<input\n			type=\"hidden\"\n			name=\"listname\"\n			value=\"itc_trial\" />\n		<input\n			id=\"redirect_61e05cd654fa2a3e30434985b296ae24\"\n			type=\"hidden\"\n			name=\"redirect\"\n			value=\"http://www.inspirationssoftwaredesign.com/products/inspired-time-clock?msg=thankyou\" />\n		<input\n			type=\"hidden\"\n			name=\"meta_adtracking\"\n			value=\"ITC_Trial_Form\" />\n		<input\n			type=\"hidden\"\n			name=\"meta_message\"\n			value=\"1\" />\n		<input\n			type=\"hidden\"\n			name=\"meta_required\"\n			value=\"name,email\" />\n		\n		<input\n			type=\"hidden\"\n			name=\"meta_tooltip\"\n			value=\"\" />\n	</div>\n	<div\n		id=\"af-header-363372359\"\n		class=\"af-header\">\n		<img\n			style=\"float: left; padding-right: 3px; margin-top:-8px;margin-left:-10px;\"\n			src=\"http://forms.aweber.com/images/forms/pointer/oceans/header.png\"\n			alt=\"\" />\n		<div\n			class=\"bodyText\">\n			<h2\n				style=\"font-size:16px;margin-bottom:2px;margin-top:2px;\">Free FileMaker Time Clock Trial</h2>\n			<span\n				style=\"font-size: 12px;\">To download your free copy of the Inspired Time Clock trial, simply add your name and email address below to receive our free Inspired FileMaker Business e-newsletter with FileMaker Tips and special offers.</span>\n		\n		</div>\n	</div>\n	<div\n		id=\"af-body-1005261487\"\n		class=\"af-body af-standards\"\n		align=\"center\">\n		<table\n			class=\"af-element\">\n			<tbody>\n				<tr>\n					<td>\n						<label\n							class=\"previewLabel\"\n							for=\"awf_field-28283486\">Name: </label>\n					</td>\n					<td>\n						<input\n							id=\"awf_field-28283486\"\n							type=\"text\"\n		style=\"width:200px;\"					name=\"name\"\n							class=\"text\"\n							value=\"\"\n							tabindex=\"500\" />\n					</td>\n				</tr>\n				<tr>\n					<td>\n						<label\n							class=\"previewLabel\"\n							for=\"awf_field-28283487\">Email: </label>\n					</td>\n					<td>\n						<input\n							class=\"text\"\n							style=\"width:200px;\"\n							id=\"awf_field-28283487\"\n							type=\"text\"\n							name=\"email\"\n							value=\"\"\n							tabindex=\"501\" />\n					</td>\n				</tr>\n			</tbody>\n		</table>\n		<div\n			class=\"af-element buttonContainer\">\n			<input\n				class=\"image\"\n				style=\"background: none; width:170px; height:40px;\"\n				tabindex=\"502\"\n				type=\"image\"\n				name=\"submit\"\n				src=\"http://www.aweber.com/images/forms/pointer/oceans/button.png\"\n				alt=\"Submit Form\" />\n			<br/>\n			<input\n				type=\"button\"\n				name=\"cmdCancel\"\n				value=\"Cancel\"\n				onClick=\"hideOverlay();return false;\" />\n		</div>\n		<div\n			style=\"font-size: 10px;\"> \n			Your email address will not be sold, spammed or used for any purpose other than delivering your download link and newsletters. <a\n				title=\"Privacy Policy\"\n				href=\"http://www.aweber.com/permission.htm\"\n				target=\"_blank\">privacy</a>\n		</div>\n	</div>\n	<div\n		style=\"display: none;\">\n		<img\n			src=\"http://forms.aweber.com/form/displays.htm?id=jAwMrExsjCwc7A==\"\n			alt=\"\" />\n	</div>\n</form>\n<script\n	type=\"text/javascript\">\n    <!--\n    (function() {\n        var IE = /*@cc_on!@*/false;\n        if (!IE) { return; }\n        if (document.compatMode && document.compatMode == 'BackCompat') {\n            if (document.getElementById(\"af-form-1005261487\")) {\n                document.getElementById(\"af-form-1005261487\").className = 'af-form af-quirksMode';\n            }\n            if (document.getElementById(\"af-body-1005261487\")) {\n                document.getElementById(\"af-body-1005261487\").className = \"af-body inline af-quirksMode\";\n            }\n            if (document.getElementById(\"af-header-1005261487\")) {\n                document.getElementById(\"af-header-1005261487\").className = \"af-header af-quirksMode\";\n            }\n            if (document.getElementById(\"af-footer-1005261487\")) {\n                document.getElementById(\"af-footer-1005261487\").className = \"af-footer af-quirksMode\";\n            }\n        }\n    })();\n    --></script>\n\n";
	else if (form == 'POS_Trial')
		popupcontent.innerHTML = "<!-- /AWeber Web Form Generator 3.0 -->\n\n\n<form\n	class=\"af-form-wrapper\"\n	style=\"color:white;\"\n	action=\"http://www.aweber.com/scripts/addlead.pl\"\n	method=\"post\">\n	<div\n		style=\"display: none;\">\n		<input\n			type=\"hidden\"\n			name=\"meta_web_form_id\"\n			value=\"1005261487\" />\n		<input\n			type=\"hidden\"\n			name=\"meta_split_id\"\n			value=\"\" />\n		<input\n			type=\"hidden\"\n			name=\"listname\"\n			value=\"pos_trial\" />\n		<input\n			id=\"redirect_61e05cd654fa2a3e30434985b296ae24\"\n			type=\"hidden\"\n			name=\"redirect\"\n			value=\"http://www.inspirationssoftwaredesign.com/products/filemaker-point-of-sale?msg=thankyou\" />\n		<input\n			type=\"hidden\"\n			name=\"meta_adtracking\"\n			value=\"POS_Trial_Form\" />\n		<input\n			type=\"hidden\"\n			name=\"meta_message\"\n			value=\"1\" />\n		<input\n			type=\"hidden\"\n			name=\"meta_required\"\n			value=\"name,email\" />\n		\n		<input\n			type=\"hidden\"\n			name=\"meta_tooltip\"\n			value=\"\" />\n	</div>\n	<div\n		id=\"af-header-363372359\"\n		class=\"af-header\">\n		<img\n			style=\"float: left; padding-right: 3px; margin-top:-8px;margin-left:-10px;\"\n			src=\"http://forms.aweber.com/images/forms/pointer/oceans/header.png\"\n			alt=\"\" />\n		<div\n			class=\"bodyText\">\n			<h2\n				style=\"font-size:16px;margin-bottom:2px;margin-top:2px;\">Free FileMaker Point Of Sale Trial</h2>\n			<span\n				style=\"font-size: 12px;\">To download your free copy of the Simple Sale POS trial, simply add your name and email address below to receive our free Inspired FileMaker Business e-newsletter with FileMaker Tips and special offers.</span>\n		\n		</div>\n	</div>\n	<div\n		id=\"af-body-1005261487\"\n		class=\"af-body af-standards\"\n		align=\"center\">\n		<table\n			class=\"af-element\">\n			<tbody>\n				<tr>\n					<td>\n						<label\n							class=\"previewLabel\"\n							for=\"awf_field-28283486\">Name: </label>\n					</td>\n					<td>\n						<input\n							id=\"awf_field-28283486\"\n							type=\"text\"\n		style=\"width:200px;\"					name=\"name\"\n							class=\"text\"\n							value=\"\"\n							tabindex=\"500\" />\n					</td>\n				</tr>\n				<tr>\n					<td>\n						<label\n							class=\"previewLabel\"\n							for=\"awf_field-28283487\">Email: </label>\n					</td>\n					<td>\n						<input\n							class=\"text\"\n							style=\"width:200px;\"\n							id=\"awf_field-28283487\"\n							type=\"text\"\n							name=\"email\"\n							value=\"\"\n							tabindex=\"501\" />\n					</td>\n				</tr>\n			</tbody>\n		</table>\n		<div\n			class=\"af-element buttonContainer\">\n			<input\n				class=\"image\"\n				style=\"background: none; width:170px; height:40px;\"\n				tabindex=\"502\"\n				type=\"image\"\n				name=\"submit\"\n				src=\"http://www.aweber.com/images/forms/pointer/oceans/button.png\"\n				alt=\"Submit Form\" />\n			<br/>\n			<input\n				type=\"button\"\n				name=\"cmdCancel\"\n				value=\"Cancel\"\n				onClick=\"hideOverlay();return false;\" />\n		</div>\n		<div\n			style=\"font-size: 10px;\"> \n			Your email address will not be sold, spammed or used for any purpose other than delivering your download link and newsletters. <a\n				title=\"Privacy Policy\"\n				href=\"http://www.aweber.com/permission.htm\"\n				target=\"_blank\">privacy</a>\n		</div>\n	</div>\n	<div\n		style=\"display: none;\">\n		<img\n			src=\"http://forms.aweber.com/form/displays.htm?id=jAwMrExsjCwc7A==\"\n			alt=\"\" />\n	</div>\n</form>\n<script\n	type=\"text/javascript\">\n    <!--\n    (function() {\n        var IE = /*@cc_on!@*/false;\n        if (!IE) { return; }\n        if (document.compatMode && document.compatMode == 'BackCompat') {\n            if (document.getElementById(\"af-form-1005261487\")) {\n                document.getElementById(\"af-form-1005261487\").className = 'af-form af-quirksMode';\n            }\n            if (document.getElementById(\"af-body-1005261487\")) {\n                document.getElementById(\"af-body-1005261487\").className = \"af-body inline af-quirksMode\";\n            }\n            if (document.getElementById(\"af-header-1005261487\")) {\n                document.getElementById(\"af-header-1005261487\").className = \"af-header af-quirksMode\";\n            }\n            if (document.getElementById(\"af-footer-1005261487\")) {\n                document.getElementById(\"af-footer-1005261487\").className = \"af-footer af-quirksMode\";\n            }\n        }\n    })();\n    --></script>\n\n";
	else
		popupcontent.innerHTML = "<form \n	class=\"af-form-wrapper\" \n	style='color:white;' action=\"http://www.aweber.com/scripts/addlead.pl\" \n	method=\"post\"> \n	<div \n		style=\"display: none;\"> \n		<input \n			type=\"hidden\" \n			name=\"meta_web_form_id\" \n			value=\"363372359\" /> \n		<input \n			type=\"hidden\" \n			name=\"meta_split_id\" \n			value=\"\" /> \n		<input \n			type=\"hidden\" \n			name=\"listname\" \n			value=\"ibs_basic\" /> \n		<input \n			id=\"redirect_61e05cd654fa2a3e30434985b296ae24\" \n			type=\"hidden\" \n			name=\"redirect\" \n			value=\"http://www.inspirationssoftwaredesign.com/products/inspired-business-suite?thankyou\" /> \n		<input \n			type=\"hidden\" \n			name=\"meta_adtracking\" \n			value=\"isd_free_CM\" /> \n		<input \n			type=\"hidden\" \n			name=\"meta_message\" \n			value=\"1\" /> \n		<input \n			type=\"hidden\" \n			name=\"meta_required\" \n			value=\"name,email\" /> \n		 \n		<input \n			type=\"hidden\" \n			name=\"meta_tooltip\" \n			value=\"\" /> \n	 \n	</div> \n	<div \n		id=\"af-header-363372359\" \n		class=\"af-header\"> \n		<img \n			style=\"float: left; padding-right: 3px; margin-top:-8px;margin-left:-10px;\" \n			src=\"http://forms.aweber.com/images/forms/pointer/oceans/header.png\" \n			alt=\"\" /> \n		<div \n			class=\"bodyText\"> \n			<h2 style='font-size:16px;margin-bottom:2px;margin-top:2px;'>Free Contact Manager Database</h2> \n			<span \n				style=\"font-size: 12px;\">To download your free copy of the Inspired Business Suite contact manager, simply add your name and email address below to receive our free Inspired FileMaker Business e-newsletter with FileMaker Tips and special offers.</span> \n		 \n		</div> \n	</div> \n	<div \n		id=\"af-body-363372359\" \n		class=\"af-body af-standards\" \n		align=\"center\"> \n		<table \n			class=\"af-element\"> \n			<tbody> \n				<tr> \n					<td> \n						<label \n							class=\"previewLabel\" \n							for=\"awf_field-28274660\">Name: </label> \n					</td> \n					<td> \n						<input \n							id=\"awf_field-28274660\" \n							class=\"text\" \n							style='width:200px;' \n							tabindex=\"500\" \n							type=\"text\" \n							name=\"name\" \n							value=\"\" /> \n					</td> \n				</tr> \n				<tr> \n					<td> \n						<label \n							class=\"previewLabel\" \n							for=\"awf_field-28274661\">Email: </label> \n					</td> \n					<td> \n						<input \n							id=\"awf_field-28274661\" \n							class=\"text\" \n							style='width:200px;' \n							tabindex=\"501\" \n							type=\"text\" \n							name=\"email\" \n							value=\"\" /> \n					</td> \n				</tr> \n			</tbody> \n		</table> \n		<div \n			class=\"af-element buttonContainer\"> \n			<input \n				id=\"af-submit-image-363372359\" \n				class=\"image\" \n				style=\"background: none; width:170px; height:40px;\" \n				tabindex=\"502\" \n				type=\"image\" \n				name=\"submit\" \n				src=\"http://www.aweber.com/images/forms/pointer/oceans/button.png\" \n				alt=\"Submit Form\" /> \n<br/><input type='button' name='cmdCancel' value='Cancel' onClick='hideOverlay();return false;'>		</div> \n		<div \n			style=\"font-size: 10px;\"> \n			Your email address will not be sold, spammed or used for any purpose other than delivering your download link and newsletters. <a \n				title=\"Privacy Policy\" \n				href=\"http://www.aweber.com/permission.htm\" \n				target=\"_blank\">privacy</a> \n		</div> \n	</div> \n	<div \n		style=\"display: none;\"> \n		<img \n			src=\"http://forms.aweber.com/form/displays.htm?id=zGzMzOxMzKyc\" \n			alt=\"\" /> \n	</div> \n</form> \n<script \n	type=\"text/javascript\">// <![CDATA[ \n     (function() {         var IE = /*@cc_on!@*/false;         if (!IE) { return; }         if (document.compatMode && document.compatMode == 'BackCompat') {             if (document.getElementById(\"af-form-363372359\")) {                 document.getElementById(\"af-form-363372359\").className = 'af-form af-quirksMode';             }             if (document.getElementById(\"af-body-363372359\")) {                 document.getElementById(\"af-body-363372359\").className = \"af-body inline af-quirksMode\";             }             if (document.getElementById(\"af-header-363372359\")) {                 document.getElementById(\"af-header-363372359\").className = \"af-header af-quirksMode\";             }             if (document.getElementById(\"af-footer-363372359\")) {                 document.getElementById(\"af-footer-363372359\").className = \"af-footer af-quirksMode\";             }         }     })(); \n// ]]> \n</script>";
	
	popup.style.width='400px';
	var winwidth = document.body.clientWidth;
	popup.style.left=((winwidth-350)/2) + 'px';
	
	popupcontent.style.display="block";
	popup.style.display='block';
	
}



//Carousel

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.startAuto(0);
    }, function() {
        carousel.startAuto();
    });
};

if ( navigator.appName == "Microsoft Internet Explorer" )
{
	jQuery(document).ready(function() {
			jQuery('#mycarousel').jcarousel({
					auto: 10,
					wrap: 'last',
					initCallback: mycarousel_initCallback,
					visible: 2,
					scroll: 1,
					// This tells jCarousel NOT to autobuild prev/next buttons
					buttonNextHTML: null,
					buttonPrevHTML: null,
					itemFallbackDimension: 270,
					vertical: true
			});
	});
}
else
{
	jQuery(document).ready(function() {
			jQuery('#mycarousel').jcarousel({
					auto: 10,
					wrap: 'last',
					initCallback: mycarousel_initCallback,
					visible: 1,
					scroll: 1,
					// This tells jCarousel NOT to autobuild prev/next buttons
					buttonNextHTML: null,
					buttonPrevHTML: null
			});
	});
}

/**
 * We use the initCallback callback
 * to assign functionality to the controls
 */
function mycarousel_initCallback(carousel) {
    jQuery('.jcarousel-control a').bind('click', function() {
	 		var panel=1;
			if(jQuery(this).text()=='Inspired Business Suite')panel=4;
			else if(jQuery(this).text()=='Instant Messenger')panel=3;
			else if(jQuery(this).text()=='Time Clock')panel=2;
        carousel.scroll(jQuery.jcarousel.intval(panel));
		  carousel.startAuto(60);
        return false;
    });

    jQuery('.jcarousel-scroll select').bind('change', function() {
        carousel.options.scroll = jQuery.jcarousel.intval(this.options[this.selectedIndex].value);
        return false;
    });

    jQuery('#mycarousel-next').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('#mycarousel-prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};

