joms = {
	apps: {
		windowTitle: '',
		toggle: function (id){
			jQuery(id).children('.app-box-actions').slideToggle('fast');
			jQuery(id).children('.app-box-footer').slideToggle('fast');
			jQuery(id).children('.app-box-content').slideToggle('fast',
				function() {
					jQuery(id).toggleClass('collapse', (jQuery(this).css('display')=='none'));
				}
			);
		},
		showAboutWindow: function(appName){
			var ajaxCall = "jax.call('community', 'apps,ajaxShowAbout', '"+appName+"');";
			cWindowShow(ajaxCall, '' , 450, 200);
		},
		showPrivacyWindow: function(appName){
			var ajaxCall = "jax.call('community', 'apps,ajaxShowPrivacy', '"+appName+"');";
			cWindowShow(ajaxCall, '' , 450, 300);
		},
		showSettingsWindow: function(id, appName){
			var ajaxCall = "jax.call('community', 'apps,ajaxShowSettings', '"+id+"', '"+appName+"');";
			cWindowShow(ajaxCall, '', 450, 300);
		},
		savePrivacy: function(){
			var value   = jQuery('input[name=privacy]:checked').val();
			var appName = jQuery('input[name=appname]').val();
			jax.call('community', 'apps,ajaxSavePrivacy', appName, value);
		},
		saveSettings: function(){
			jax.call('community', 'apps,ajaxSaveSettings', jax.getFormValues('appSetting'));
		},
		remove: function(appName){
			var ajaxCall = "jax.call('community', 'apps,ajaxRemove', '"+appName+"');";
			cWindowShow(ajaxCall, this.windowTitle , 450, 100);	
		},
		add: function(appName){
			var ajaxCall = "jax.call('community', 'apps,ajaxAdd', '"+appName+"');";
			cWindowShow(ajaxCall, '', 450, 100);
		},
		comingsoon:function(){
			var message = "This feature will be coming soon.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'HomeTrax' , 450 , 150 , '');
		}
	},
	report: {
		emptyMessage: '',
		
		checkReport: function(){
			if( jQuery( '#report-message' ).val() == '' )
			{
				jQuery( '#report-message-error' ).html( this.emptyMessage ).css( 'color' , 'red' );
				return false;
			}
			return true;
		},
		showWindow: function ( reportFunc, arguments ){
			var ajaxCall	= 'jax.call("community" , "system,ajaxReport" , "' + reportFunc + '","' + location.href + '" ,' + arguments + ');';
			cCommunityWindowShow(ajaxCall, '', 450, 300);
		},
		submit: function ( reportFunc , pageLink , arguments ){
			if( joms.report.checkReport() )
			{
				var message	= escape( jQuery('#report-message').val() );
				var ajaxcall='jax.call("community", "system,ajaxSendReport","' + reportFunc + '","' + pageLink + '","' + message + '" , ' + arguments + ')';
				cWindowShow(ajaxcall, '', 450, 300);
			}
		}
	},
	flash: {
		enabled: function(){
			// ie 
			try
			{ 
				try
				{
					// avoid fp6 minor version lookup issues 
					// see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/ 
					var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6'); 
					try
					{ 
						axo.AllowScriptAccess = 'always'; 
					} 
					catch(e)
					{
						return '6,0,0';
					} 
				}
				catch(e)
				{
				}
				return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1]; 
			// other browsers 
			}
			catch(e)
			{ 
				try
				{ 
					if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
					{ 
						return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1]; 
					} 
				}
				catch(e)
				{
				} 
			}		
			return false; 
		}
	},
	notifications: {
		showWindow: function (){
			var ajaxCall = 'jax.call("community", "notification,ajaxGetNotification", "")';
			cWindowShow(ajaxCall, 'Notification', 450, 350);
		},
		updateNotifyCount: function (){
			var notifyCount	= jQuery('#toolbar-item-notify-count').text();
			
			if(jQuery.trim(notifyCount) != '' && notifyCount > 0)
			{
				//first we update the count. if the updated count == 0, then we hide the tab.
				notifyCount = notifyCount - 1;
				jQuery('#toolbar-item-notify-count').html(notifyCount);
				if (notifyCount == 0)
				{
					jQuery('#toolbar-item-notify').hide();
				}				
			}			
		}
	},
	filters:{
		bind: function(){
			var loading	= this.loading;
			
			jQuery(document).ready( function() 
			{
				//sorting option binding for members display
				jQuery('.newest-member').bind('click', function() {
				    if ( !jQuery(this).hasClass('active-state') ) {
				        loading( jQuery(this).attr('class') );
						jax.call('community', 'frontpage,ajaxGetNewestMember', frontpageUsers);
					}
				});
				jQuery('.active-member').bind('click', function() {
				    if ( !jQuery(this).hasClass('active-state') ) {
			            loading( jQuery(this).attr('class') );
						jax.call('community', 'frontpage,ajaxGetActiveMember', frontpageUsers);
					}
				});
				jQuery('.popular-member').bind('click', function() {
				    if ( !jQuery(this).hasClass('active-state') ) {
				        loading( jQuery(this).attr('class') );
				    	jax.call('community', 'frontpage,ajaxGetPopularMember', frontpageUsers);
					}
				});
					
				//sorting option binding for activity stream
				jQuery('.all-activity').bind('click', function() {
				    if ( !jQuery(this).hasClass('active-state') ) {
			            loading( jQuery(this).attr('class') );
						jax.call('community', 'frontpage,ajaxGetActivities', 'all');
					}
				});
				jQuery('.me-and-friends-activity').bind('click', function() {
				    if ( !jQuery(this).hasClass('active-state') ) {
				        loading( jQuery(this).attr('class') );
				    	jax.call('community', 'frontpage,ajaxGetActivities', 'me-and-friends');
					}
				});
				jQuery('.active-profile-and-friends-activity').bind('click', function() {
				    if ( !jQuery(this).hasClass('active-state') ) {
				        loading( jQuery(this).attr('class') );
				    	jax.call('community', 'frontpage,ajaxGetActivities', 'active-profile-and-friends');
					}
				});	
				jQuery('.active-profile-activity').bind('click', function() {
				    if ( !jQuery(this).hasClass('active-state') ) {
				        loading( jQuery(this).attr('class') );
				    	jax.call('community', 'frontpage,ajaxGetActivities', 'active-profile');
					}
				});	
				
				// remove last link border
				jQuery('.popular-member').css('border-right', '0').css('padding-right', '0');
				jQuery('.me-and-friends-activity').css('border-right', '0').css('padding-right', '0');
				jQuery('.active-profile-activity').css('border-right', '0').css('padding-right', '0');
			});
		},
		loading: function(element){
			elParent = jQuery('.'+element).parent().parent().attr('id');
			if ( elParent === '' ) {
		        elParent = jQuery('.'+element).parent().attr('id');
			}
		    jQuery('#' + elParent + ' .loading').show();
		    jQuery('#' + elParent + ' a').removeClass('active-state');
		    jQuery('.'+element).addClass('active-state');
		},
		hideLoading: function(){
			jQuery( '.loading' ).hide();
		}
	},
	groups: {
		saveMember: function (arrGroupID, community_id,zip_code)
		{
			var ajaxCall	= 'jax.call("community","groups,ajaxSaveMember", "' + arrGroupID + '", "' + community_id + '", "' + zip_code + '");';
			cCommunityWindowShow( ajaxCall , '' , 406 , 135 );
		},
		joingroup:function (groupid,discussionid)
		{
			var ajaxCall	= 'jax.call("community","groups,ajaxjoingroup", "' + groupid + '","' + discussionid + '");';
			cCommunityWindowShow( ajaxCall , 'Join this group' , 406 , 145 );
		},
		addInvite: function( element,friendid ){
			
			var parentId = jQuery('#' +element).parent().attr('id');
	
			if(parentId == "friends-list")
			{
				jQuery("#friends-invited").append(jQuery('#' +element)).html();
			}
			else
			{
				jQuery("#friends-list").append(jQuery('#' +element)).html();
			}
		},
		removeTopic: function( title , groupid , topicid ){
			var ajaxCall	= 'jax.call("community","groups,ajaxShowRemoveDiscussion", "' + groupid + '","' + topicid + '");';
			//cWindowShow( ajaxCall , title , 450 , 150 );
			cCommunityWindowShow( ajaxCall , title , 450 , 120 );
		},
		
	   /**
		* BEGIN CORE MOD 
		* By: Manish 
		* To delete an event
		* Date: 28-July-2009
		*/
		
		deleteEvent: function( title , eventId , groupId , categoryId ){
	
			var ajaxCall	= 'jax.call("community" , "groups,ajaxDeleteEvent" , "' + eventId + '", "' + groupId + '", "' + categoryId + '", location.href );';
			//cWindowShow( ajaxCall , title , 450 , 150 );
			cCommunityWindowShow( ajaxCall , title , 450 , 150 );
			//cWindowShow( ajaxCall , title , 450 , 150 );
	
		},
	   /**
		* END CORE MOD
		*/
		
		
	  /**
		* BEGIN CORE MOD 
		*/
		ajaxgetPhotoForGroup: function( groupid,divedit,groupname){
		jax.call("community" , "groups,ajaxgetPhotoForGroup" , groupid,divedit ,groupname);
		},
		ajaxupdatePhotoForGroup: function( photoid,groupid){
		jax.call("community" , "groups,ajaxupdatePhotoForGroup" , photoid,groupid );
		},
		communityEvents: function( groupIdList , eventDate ){
	
			var ajaxCall = 'jax.call("community" , "groups,ajaxCommunityEvents" , "' + groupIdList + '", "' + eventDate + '", location.href );';
	
		},
		getCommunityEvents: function( eventDate , community_id ){
	
			jax.call("community" , "groups,ajaxCommunityEvents" ,  eventDate ,  community_id );
	
		},
		
		getCommunityEventsByGroup: function( eventDate , community_id , search_post ){

			jax.call("community" , "groups,ajaxCommunityEventsByGroup" ,  eventDate ,  community_id ,search_post );
	
		},
		searchEventWindow:function(){
			var ajaxCall	= 'jax.call("community" , "groups,ajaxCommunitySearchEvents" );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 200 );
	
		},
		searchEventWindowWithCommunity:function(community_id){
			var ajaxCall	= 'jax.call("community" , "groups,ajaxCommunitySearchEventsWithCommunity","' + community_id +'");';
			cCommunityWindowShow( ajaxCall , '' , 406 , 200 );
		},
	   /**
		* END CORE MOD
		*/
		
		
		
		editBulletin: function(){
			
			if( jQuery('#bulletin-data').css('display') == 'none' )
			{
				jQuery('#bulletin-data').show();
				jQuery('#bulletin-edit-data').hide();
			}
			else
			{
				jQuery('#bulletin-data').hide();
				jQuery('#bulletin-edit-data').show();
			}

		},
		removeBulletin: function( title , groupid , bulletinid ){
			var ajaxCall	= 'jax.call("community","groups,ajaxShowRemoveBulletin", "' + groupid + '","' + bulletinid + '");';
			cWindowShow( ajaxCall , title , 450 , 150 );
		},
		unpublish: function( groupId ){
			jax.call( 'community' , 'groups,ajaxUnpublishGroup' , groupId );
		},
		leave: function( groupid ){
		//	alert(groupid);return false;
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowLeaveGroup" , "' + groupid + '");';
			// cWindowShow( ajaxCall , '' , 450 , 170 ); - Default line
			/**
			* BEGIN CORE MOD
			*/	
			cCommunityWindowShow( ajaxCall , '' , 450 , 170 );
			/**
			* END CORE MOD
			*/			

		},
		joinWindow: function( groupid ){
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowJoinGroup" , "' + groupid + '", location.href );';
			//cWindowShow( ajaxCall , '' , 450 , 170 );
			/**
			* BEGIN CORE MOD
			*/			
			cCommunityWindowShow( ajaxCall , '' , 450 , 170 );
			/**
			* END CORE MOD
			*/
		},
		
		
		
		
	   /**
		* BEGIN CORE MOD
		*/
		
		viewcommunityStatsWindow: function( communityid ){
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowCommunityStatsGroup" , "' + communityid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 1000 , 500 );
		},
		
		
		viewcommunityGroupsWindow: function( groupid ){
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowCommunityGroups" , "' + groupid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 750 , 500 );
		},
		
		replyforumWindow: function( topicid ){
			var ajaxCall	= 'jax.call("community" , "groups,ajaxReplyForum" , "' + topicid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 700 , 400 );
			
		},
		
		updateForumArchive:function(community_id){
			jax.call("community" , "groups,ajaxForumArchiveUpdate" , community_id );
		},
		
		searchDiscussionWindow:function(){
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowsearchDiscussion" , "", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 200 );
		},
		
		searchFromZipcodeWindow:function(community_id){
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowsearchFromZipcode" , "' + community_id + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 280 );
		},
		
		searchFromZipcodeWindowWithCity:function(community_id){
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowsearchFromZipcodeWithCity" , "' + community_id + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 280 );
		},
		
		
	   /**
		* END CORE MOD
		*/
		
		
	   /**
		* BEGIN CORE MOD
		*/
		
		createDiscussionWindow:function(groupid){
			
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowCreateDiscussionGroup" , "' + groupid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Discussions' , 406 , 500 );
		},
		
		createFrontpageDiscussionWindow:function(groupid){
			
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowCreateDiscussionGroup" , "' + groupid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Ask Community' , 406 , 500 );
		},
		createWritePostWindow:function(groupid){
			
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowCreateDiscussionGroup" , "' + groupid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Write a post' , 406 , 500 );
		},
		createPostquestionWindow:function(groupid){
			
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowCreateDiscussionGroup" , "' + groupid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Post a Question' , 406 , 500 );
		},
		
		createEventWindow:function(){
			
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowCreateEventGroup" , "", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 200 );
		},
				
			
	   /**
		* END CORE MOD
		*/
		
	   /**
		* BEGIN CORE MOD
		*/
		FooterDiscussionWindow:function(groupid){
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			x = obj.offsetLeft;
			y = obj.offsetTop;
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowCreateDiscussionGroup" , "' + groupid + '", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , 'Discussions' , width, 474, x + 85 , y - 530);
			/*var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			var aryPosition = ObjectPosition(obj);
			//element reference
			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			//return false;
			var ajaxCall	= 'jax.call("community" , "groups,ajaxShowCreateDiscussionGroup" , "' + groupid + '", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , 'Discussions' , width, 474, position.x + 85 , position.y - 530);*/
		},
	   /**
		* END CORE MOD
		*/
		
	   /**
		* BEGIN CORE MOD
		*/
		addedgroupadmin:function( groupid ){
			
			document.frm_view_members.submit();
			
		},
	   /**
		* END CORE MOD
		*/	
		/**
		 * BEGIN CORE MOD
		 */
		viewCommunitiesWindow: function(){
			var ajaxCall	= 'jax.call("community" , "groups,ajaxViewCommunities" , "", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 250 );
		},
		
		/**
		 * BEGIN CORE MOD
		 */
		footerviewCommunitiesWindow: function(){
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			x = obj.offsetLeft;
			y = obj.offsetTop;
			var ajaxCall	= 'jax.call("community" , "groups,ajaxViewCommunities" , "", location.href );';
			cFooterWindowShow( ajaxCall , 'Search Community' ,406 , 250, x + 180 , y - 330);
			
			/*var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			var aryPosition = ObjectPosition(obj);
			//element reference
			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			var ajaxCall	= 'jax.call("community" , "groups,ajaxViewCommunities" , "", location.href );';
			cFooterWindowShow( ajaxCall , 'Search Community' ,406 , 250, position.x + 180 , position.y - 330);*/
		},
		/**
		 * END CORE MOD
		 */
		
		/***************************************/
		/**
		 * BEGIN CORE MOD
		 */
		ViewMoreForums:function(){
			var ajaxCall	= 'jax.call("community" , "groups,ajaxViewMoreForums","",location.href);';
			cCommunityWindowShow( ajaxCall , 'Community Forum' , 406 , 525 );
		},	
		/**
		 * END CORE MOD
		 */ 
		/**********************************************/	

		edit: function(){
			// Check if input is already displayed
			jQuery('#community-group-info .cdata').each(function(){
				// Test if the next div is cinput
	
				if(jQuery(this).next().html() && jQuery(this).css('display') != 'none' )
					jQuery(this).css('display' , 'none');
				else
					jQuery(this).css('display' , 'block');
			});
	
			jQuery('#community-group-info .cinput').each(function(){
				if(jQuery(this).css('display') == 'none')
					jQuery(this).css('display' , 'block');
				else
					jQuery(this).css('display' , 'none');
			});
	
			if(jQuery('div#community-group-info-actions').css('display') != 'none')
				jQuery('div#community-group-info-actions').css('display' , 'none');
			else
				jQuery('div#community-group-info-actions').css('display' , 'block');
		},
		save: function( groupid ){
			var name		= jQuery('#community-group-name').val();
			var description	= jQuery('#community-group-description').val();
			var website		= jQuery('#community-group-website').val();
			var category	= jQuery('#community-group-category').val();
			var approvals	= jQuery("input[@name='group-approvals']:checked").val();
			
			jax.call('community' , 'groups,ajaxSaveGroup' , groupid , name , description , website , category , approvals);
		},
		
		
		/**
		 * BEGIN CORE MOD
		 */
		editgroup: function( groupid ){
			
			
			var name		= jQuery('#community-group-name').val();
			var description	= jQuery('#community-group-description').val();
			var website		= jQuery('#community-group-website').val();
			var category	= jQuery('#community-group-category').val();
			var approvals	= jQuery("input[name=group-approvals]:checked").val();
			var member_group	= jQuery("input[name=member_group]:checked").val();
			var ht_member	= jQuery("input[name=ht_member]:checked").val();
			var group_admin_connection	= jQuery("input[name=group_admin_connection]:checked").val();
			var rssurl	= jQuery("#community-group-rssurl").val();
			//var neighborhoodid	= jQuery("#community-group-neighbourhoodid").val();
			var neighborhoodid	= jQuery("#community_id").val();

			var groupcontactemail		= jQuery('#groupcontactemail').val();
			var groupcontactphone	= jQuery('#groupcontactphone').val();
			var groupcontactlast		= jQuery('#groupcontactlast').val();
			var groupcontactfirst	= jQuery('#groupcontactfirst').val();
			var groupwebsite		= jQuery('#groupwebsite').val();
			var groupemail	= jQuery('#groupemail').val();
			var groupphone		= jQuery('#groupphone').val();
			var groupzipcode	= jQuery('#search_zipcode').val();
			var groupstate		= jQuery('#groupstate').val();
			var groupcity	= jQuery('#groupcity').val();
			var groupaddress		= jQuery('#groupaddress').val();

jax.call('community' , 'groups,ajaxEditGroup' , groupid , name , description , website , category , approvals,rssurl,neighborhoodid,member_group,ht_member,group_admin_connection,groupcontactemail,groupcontactphone,groupcontactlast,groupcontactfirst,groupwebsite,groupemail,groupphone,groupzipcode,groupstate,groupcity,groupaddress);
		},
		
		
		updategroup:function( groupName , groupDescription , groupWebsite , groupCategory ){
			
			document.editGroup.submit();
			
		},
		
		/**
		* END CORE MOD
		*/
		
		update: function( groupName , groupDescription , groupWebsite , groupCategory){
			// Re-update group data
			jQuery('#community-group-data-name').html( groupName );
			jQuery('#community-group-data-description').html( groupDescription );
			jQuery('#community-group-data-website').html( groupWebsite );
			jQuery('#community-group-data-category').html( groupCategory );
			this.edit();
		},
		removeMember: function( memberId , groupId ){
			ajaxCall = jax.call('community' , 'groups,ajaxRemoveMember' , memberId , groupId );
		},
		AjaxremoveGroupMember: function( memberId , groupId ){
			ajaxCall = jax.call('community' , 'groups,ajaxDeleteFriendFromGroup' , memberId , groupId );
			cCommunityWindowShow( ajaxCall , '' , 406 , 110 );
		},
		confirmRemoveMember: function( name, memberId , groupId , type ){
			ajaxCall = jax.call('community' , 'groups,confirmRemoveMember', name, memberId , groupId, type );
			cCommunityWindowShow( ajaxCall , '' , 406 , 110 );
		},
		confirmRemoveRequest: function(name, connectionId){
			ajaxCall = jax.call('community' , 'groups,confirmRemoveRequest', name, connectionId );
			cCommunityWindowShow( ajaxCall , '' , 406 , 110 );
		},
		deleteGroup: function( groupId ){
			var ajaxCall = "jax.call('community', 'groups,ajaxWarnGroupDeletion', '" + groupId + "');";	
			//cWindowShow(ajaxCall, 'Delete Group', 450, 200);
			cCommunityWindowShow(ajaxCall, '', 450, 200);
			//jax.call( 'community' , 'groups,ajaxUnpublishGroup' , groupId );
		},
		getUserGroupsEvents: function( eventDate , groupIds ){
			jax.call("community" , "groups,ajaxUserGroupsEvents" ,  eventDate ,  groupIds );			
		},
		createbulletin: function ( groupid ){
			var ajaxCall = jax.call("community" , "groups,ajaxCreateBulletin" ,  groupid );			
			cCommunityWindowShow(ajaxCall, 'Create Bulletin', 450, 200);			
		},
		searchHomefromZip:function(){
			//var ajaxCall	= 'jax.call("community" , "groups,ajaxsearchHomefromZip" , "", location.href );';
			jax.call("community" , "groups,ajaxsearchHomefromZip" , "", location.href );
			//cFrontPageWindowShow( ajaxCall , '' , 430 , 400 );
			//jQuery('#cWindow').css("margin-top","100px");
			//jQuery('#cWindow').css("left","400px");
			
		},
		editGroupAccess:function(groupID){
			//alert(groupID);
			var ajaxCall	= 'jax.call("community" , "groups,ajaxEditGroupAccessDialog" , "' + groupID + '", location.href );';
			//ajaxCall ="hello";
			cCommunityWindowShow( ajaxCall , 'Edit Access' , 560 , 500);
		},
		saveGroupAccessData:function(groupID,e1,e2,e3){			
			//alert(groupID + " = " + e1 + " = " +e2+ " = " + e3 );
			var ajaxCall	= 'jax.call("community" , "groups,ajaxEditGroupAccessSave" , "' + groupID + '", "' + e1 + '", "' + e2 + '", "' + e3 + '", location.href );';	
			cCommunityWindowShow( ajaxCall , 'Edit Access' , 560 , 500);
		},
		checkGroupEditAccessRecord:function(groupID,email,returnDivID){			
			//alert(groupID + " = " + email + " = " +returnDivID);
			//var ajaxCall	= 'jax.call("community" , "groups,ajaxCheckGroupEditAccessRecord" , "' + groupID + '", "' + email + '" , "' +returnDivID+ '", location.href );';	
			//cCommunityWindowShow( ajaxCall , 'Edit Access' , 560 , 500);			
			jax.call('community' , 'groups,ajaxCheckGroupEditAccessRecord' , groupID , email , returnDivID );
		},
		SendInvitationForGroupEditAccess:function (emailaddress,groupID,returnDivID){
			//alert('manish');
			//alert(returnDivID);
			if(returnDivID=="manager1_message")
			   order =1;
			else if(returnDivID=="manager2_message")
			   order =2;
			else if(returnDivID=="manager3_message")
			   order =3;			   			
			var ajaxCall	= 'jax.call("community" , "groups,ajaxSendInvitationForGroupEditAccess" , "' + emailaddress + '", "' + groupID + '" , "' + order + '", location.href );';	
			cCommunityWindowShow( ajaxCall , 'Send Invitation' , 406 , 400 );	
		},
		SendmmailForGroupEditAccess:function (to,message,groupID,order){
			//alert(to+"--"+message+"---"+groupID);
			var ajaxCall = 'jax.call("community" , "groups,ajaxSendmmailForGroupEditAccess","' + to + '","' + message + '","' + groupID + '" ,"' + order + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 400 );	
		},
		
		deleteGroupDocument: function( gid, docid, filename ){
		var ajaxCall	= 'jax.call("community" , "groups,ajaxdeleteGroupDocument" , "' + gid + '" , "' + docid + '" , "' + filename + '", location.href );';
		cCommunityWindowShow( ajaxCall , '' , 406 , 100);
		},
		addFAQs: function(groupid)
		{
			//alert(groupid);
			var ajaxCall	= 'jax.call("community" , "groups,ajaxAddFAQs" , "' + groupid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Group FAQs' , 600 , 350);
		}
	},
	friends: {
		saveTag: function(){
			var formVars = jax.getFormValues('tagsForm');
			jax.call("community", "friends,ajaxFriendTagSave", formVars);
			return false;
		},
		saveGroup: function(userid) {
			if(document.getElementById('newtag').value == ''){
			    window.alert('TPL_DB_INVALIDTAG');
			}else{
				jax.call("community", "friends,ajaxAddGroup",userid,jQuery('#newtag').val());
			}
		},
		cancelRequest: function( friendsId ){
			var ajaxCall	= 'jax.call("community" , "friends,ajaxCancelRequest" , "' + friendsId + '");';
			cCommunityWindowShow(ajaxCall, 'Cancel Friend Request', 450, 100);
		},
		connect: function( friendid ){
			var ajaxCall = 'jax.call("community", "friends,ajaxConnect", '+friendid+')';
			//cWindowShow(ajaxCall, 'Add new friend', 450, 200);
			/**
			 * BEGIN CORE MOD
			 */			
			cCommunityWindowShow(ajaxCall, 'Add new connection', 455, 200);
			/**
			 * END CORE MOD
			 */
		},
		connectinvitaion: function( friendid ){// by hiren dave for invite connection
			var ajaxCall = 'jax.call("community", "friends,ajaxInvitedConnect", '+friendid+')';
			//cWindowShow(ajaxCall, 'Add new friend', 450, 200);
			/**
			 * BEGIN CORE MOD
			 */			
			cCommunityWindowShow(ajaxCall, 'Add new connection', 455, 220);
			jQuery("#loader").hide();
			/**
			 * END CORE MOD
			 */
		},
		connect_footer:function( friendid ){
			var obj;
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			
			var aryPosition = ObjectPosition(obj);
			//element reference


			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			
			var ajaxCall = 'jax.call("community", "friends,ajaxConnect", '+friendid+')';
		
			cFooterWindowShow( ajaxCall , 'Suggested Connections' , 450, 200, position.x + 120, position.y - 492);
		},
		
		addNow: function(){
		 	var formVars = jax.getFormValues('addfriend');
		 	jax.call("community", "friends,ajaxSaveFriend",formVars);
		 	return false;
		},
		addInvitedNow: function(){
		 	var formVars = jax.getFormValues('addfriend');
		 	jax.call("community", "friends,ajaxSaveInvitedFriend",formVars);
		 	return false;
		},
		/**
		 * BEGIN CORE MOD
		 */
		
		SuggestedFriends:function(width){
			var ajaxCall	= 'jax.call("community" , "friends,ajaxShowSuggectedFriends", "' + width + '");';
			//<!--cWindowShow( ajaxCall , 'Suggested Friends' , 500 , 500 );-->
			//cCommunityWindowShow( ajaxCall , 'SUGGESTED CONNECTIONS' , 440 , 450 ); Commented out by Girish
			cCommunityWindowShow( ajaxCall , 'SUGGESTED CONNECTIONS' , 540 , 550 );
		},
		/**
		 * BEGIN CORE MOD
		 */
		FooterSuggestedFriends:function(width){
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			x = obj.offsetLeft;
			y = obj.offsetTop;
			var ajaxCall	= 'jax.call("community" , "friends,ajaxShowSuggectedFriends","' + width +'");';
			cFooterWindowShow( ajaxCall , 'Suggested Connections' , 460, 400, x + 315, y - 458);
			/*var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			var aryPosition = ObjectPosition(obj);
			//element reference
			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			var ajaxCall	= 'jax.call("community" , "friends,ajaxShowSuggectedFriends","' + width +'");';
			cFooterWindowShow( ajaxCall , 'Suggested Connections' , 460, 400, position.x + 315, position.y - 458);*/
		},
		
		/**
		 * END CORE MOD
		 */
		 
		/**
		 * BEGIN CORE MOD
		 */
		 
		InviteFriends:function(emailaddress)
		{
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			x = obj.offsetLeft;
			y = obj.offsetTop;
			var ajaxCall	= 'jax.call("community" , "friends,ajaxInviteFriends", "' + emailaddress +'");';
			cFooterWindowShow( ajaxCall , 'Send Invitation' , 406, 370, x + 245, y - 461);
			/*var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			var aryPosition = ObjectPosition(obj);
			//element reference
			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			var ajaxCall	= 'jax.call("community" , "friends,ajaxInviteFriends", "' + emailaddress +'");';
			cFooterWindowShow( ajaxCall , 'Send Invitation' , 406, 370, position.x + 245, position.y - 461);*/
		},
		
		/**
		 * END CORE MOD
		 */
		
		/**
		 * BEGIN CORE MOD
		 */
		SearchConnection:function(){
			var obj;
			obj = document.getElementById('foot_menu_container');
			pos = getRealPosition(obj);
						
			var ajaxCall	= 'jax.call("community" , "search,ajaxSearch");';
			cFooterWindowShow( ajaxCall , 'Search Connection' , 406, 150, 600, pos - 240);
		},
		
		/**
		 * END CORE MOD
		 */
		 
		/**
		 * BEGIN CORE MOD
		 */
		SendMessage:function(id){
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			x = obj.offsetLeft;
			y = obj.offsetTop;
			var ajaxCall	= 'jax.call("community" , "inbox,ajaxSendMessage","' + id + '");';
			cFooterWindowShow( ajaxCall , 'Send a Message' , 406, 450, x + 400, y - 540);
			
			/*var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			var aryPosition = ObjectPosition(obj);
			//element reference
			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			var ajaxCall	= 'jax.call("community" , "inbox,ajaxSendMessage","' + id + '");';
			cFooterWindowShow( ajaxCall , 'Send a Message' , 406, 450, position.x + 400, position.y - 540);*/
		},
		 
		/**
		 * END CORE MOD
		 */
		/**
		 * BEGIN CORE MOD
		 */
		UpdateStatus:function(){
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			
			var aryPosition = ObjectPosition(obj);
			//element reference


			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};

			var ajaxCall	= 'jax.call("community" , "friends,ajaxUpdateStatus");';

						
			cFooterWindowShow( ajaxCall , 'Chat' , 406, 250, position.x + 505, position.y - 440);

		},
		showPreSignUpConnection:function(){
			var ajaxCall	= 'jax.call("community" , "friends,ajaxshowPreSignUpConnection");';
			cFrontPageWindowShow( ajaxCall , '' , 440 , 250 );
			jQuery('#cWindow').css("margin-top","100px");
			jQuery('#cWindow').css("left","400px");
		},
		deleteFriend: function( friendsId ){
			var ajaxCall	= 'jax.call("community" , "friends,ajaxDeleteFriend" , "' + friendsId + '");';
			cCommunityWindowShow(ajaxCall, '', 450, 100);
		},
		deleteSuggestedFriend: function( friendsId ){
			var ajaxCall	= 'jax.call("community" , "friends,ajaxDeleteSuggestedFriend" , "' + friendsId + '");';
			cCommunityWindowShow(ajaxCall, '', 450, 100);
		},
		checkmeailforinviteconnection: function( email,message ){
			jax.call("community" , "friends,ajaxCheckConnections" , email,message );
		},
		connectionexist: function(){
			var message = "";
			message = '<div id="default_width">';
			message += '		<div id="default_width">';
			message += '			<div id="default_width" class="top_margin_10 popbody_text">This user is already in your connection list</div>';
			message += '		</div>';
			message += '		<div style="height:125px">&nbsp;';
			message += '		</div>';
			message += '	<span style="float: right; margin-right: 10px;">';
			message += '		<div id="left_orange_button"></div>';
			message += '			<button name="" type="button" class="middle_orange_button" onclick="url();">Close</button>';
			message += '		<div id="right_orange_button" class="right_margin_5"></div>';			
			message += '	</span>';
			message += ' </div>';
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Invite Connection' , 450 , 200 , '');
			jQuery("#loader").hide();
			return false;
		},
		connectionconfirmation: function(email){
		
		var message = "";
			message = '<div id="default_width">';
			message += '		<div id="default_width">';
			message += '			<div id="default_width" class="top_margin_10 popbody_text">Connection request send successfully to '+ email +'</div>';
			message += '		</div>';
			message += '		<div style="height:125px">&nbsp;';
			message += '		</div>';
			message += '	<span style="float: right; margin-right: 10px;">';
			message += '		<div id="left_orange_button"></div>';
			message += '			<button name="" type="button" class="middle_orange_button" onclick="url();">Close</button>';
			message += '		<div id="right_orange_button" class="right_margin_5"></div>';			
			message += '	</span>';
			message += ' </div>';
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Invite Connection' , 450 , 200 , '');
			jQuery("#loader").hide();
			return false;			
		}
		/**
		 * END CORE MOD
		 */
	},
	
		/**
		 * BEGIN CORE MOD
		 */
   	
	service:{
		SearchServiceProvider:function(){
			var ajaxCall	= 'jax.call("community" , "friends,ajaxSearchServiceProvider");';
			cCommunityWindowShow( ajaxCall , 'Search Forum' , 406 , 300 );
		}		
	},
	forum:{
		MoreUpdate:function(){
			var ajaxCall	= 'jax.call("community" , "friends,ajaxMoreUpdate");';
			cCommunityWindowShow( ajaxCall , 'Activity Updates' , 500 , 500 );
		},
		
		updateForum:function(){
			
			jax.loadingFunction = function(){
					jQuery('#cWindowContent').addClass('winloading');
					jQuery("#cwin-wait").css('display','none');
					jQuery('#cWindowContent').addClass('winloading');
			}
			jax.call("community" , "friends,ajaxForumUpdate" , "", location.href );
		    jax.loadingFunction = function(){
					jQuery('#cWindowContent').removeClass('winloading');
					jQuery("#cwin-wait").css('display','none');
					jQuery('#cWindowContent').removeClass('winloading');
			}


			
		},
		updateActivities:function(){
			
			jax.call("community" , "friends,ajaxActivityUpdate" , "", location.href );
			
		}
		
		
	},
	/* By Amit,24th Aug 09.START*/
	photos:{
		ajaxopenPhotoUploader:function(objectid,albumid,objecttype)
		{		
		
			var ajaxCall	= 'jax.call("community" , "photos,ajaxopenPhotoUploader","'+ objectid + '","'+ albumid + '","'+ objecttype + '");';
			cCommunityWindowShow( ajaxCall , 'Upload Photos' , 650 , 425 );
		}
		
	},
	/* By Amit,24th Aug 09.START*/

	
	homes:{
		
		viewactivity: function( homeid , year, month ){
			jax.call("community" , "homes,ajaxViewActivity" , homeid ,  year  ,  month);
			//cCommunityWindowShow( ajaxCall , 'View Open Houses' , 680 , 600 );
		},
		contactPoint2Agent:function(home_id){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxContactPoint2Agent" , "' + home_id + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 600 , 560);
		},
		showActivityDetails:function(homeid,activityid){
			var ajaxCall	= '	jax.call("community" , "homes,ajaxviewHomeActivity" , "' + homeid + '", "' + activityid + '", location.href);';
			cCommunityWindowShow( ajaxCall , '' , 550 , 260 );
		},	
		savehomeactivity:function(homeid,type){
			var ajaxCall	= '	jax.call("community" , "homes,ajaxsaveHomeActivity" , "' + homeid + '", "' + type + '",location.href);';
			cCommunityWindowShow( ajaxCall , '' , 705 , 520 );
		},	
		editHomeActivityDetail:function(homeid,activityid,type){
			var ajaxCall	= '	jax.call("community" , "homes,ajaxeditHomeActivity" , "' + homeid + '", "' + activityid + '", "' + type + '", location.href);';
			cCommunityWindowShow( ajaxCall , '' , 705 , 520 );
		},	
		activitytorooms:function(homeid,activityid){
			var ajaxCall	= '	jax.call("community" , "homes,ajaxAssignActivityToRoom" , "' + homeid + '", "' + activityid + '", location.href);';
			cCommunityWindowShow( ajaxCall , 'Add Activity To Room' , 406 , 400 );
		},
		assignActivityToItem:function(homeid,activityid){
			var ajaxCall	= '	jax.call("community" , "homes,ajaxAssignActivityToItem" , "' + homeid + '", "' + activityid + '", location.href);';
			cCommunityWindowShow( ajaxCall , 'Add Activity To Item' , 406 , 400 );
		},
		viewallactivity:function(homeid){
			jax.call("community" , "homes,ajaxViewAllActivity" , homeid);
		},
		CreateOpenHouse: function( homeid ){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxCreateOpenHouse" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 560 , 645 );
			
		},
		EditOpenHouse: function( homeid,id ){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxEditOpenHouse" , "' + homeid + '", "' + id + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 560 , 645 );
			
		},
	
		ViewOpenHouses:function( homeid ){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxViewOpenHouses" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'View Open Houses' , 650 , 530 );
		},
			
			deleteHomesDocument: function( homeid, docid, filename ){
		var ajaxCall	= 'jax.call("community" , "homes,ajaxdeleteHomesDocument" , "' + homeid + '" , "' + docid + '" , "' + filename + '", location.href );';
		cCommunityWindowShow( ajaxCall , '' , 406 , 80 );
		},
		
		SellHouse:function( homeid ){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxSellHouses" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Sell House' , 520 , 550 );
		},
		UnsellHouse:function( homeid ){

			var ajaxCall	= 'jax.call("community" , "homes,ajaxUnsellHouses" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Unsell House' , 500 , 250 );
		},
		RentHouse:function( homeid ){

			var ajaxCall	= 'jax.call("community" , "homes,ajaxRentHouses" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Rent House' , 590 , 473 );
		},
		UnrentHouse:function( homeid )
		{
			var ajaxCall	= 'jax.call("community" , "homes,ajaxUnrentHouses" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Unrent House' , 500 , 250  );
		},		
		SoldHouse:function( homeid ){

			var ajaxCall	= 'jax.call("community" , "homes,ajaxSoldHouse" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Sold House' , 520 , 500 );
		},
		redirectToViewOpenHouse:function()
		{
			if(document.frmViewOpenHouse != undefined)
				document.frmViewOpenHouse.submit();
				
				
		},
		SendInvitationForEditAccess:function (emailaddress,homeid,owner){
			var ajaxCall = 'jax.call("community" , "homes,ajaxSendInvitationForEditAccess","' + emailaddress + '","' + homeid + '","' + owner + '","' + location.href + '");';
			cCommunityWindowShow( ajaxCall , 'Send Message' , 406 , 400 );	
		},
		SendMailForEditAccess:function (to,message,homeid){
		
			var ajaxCall = 'jax.call("community" , "homes,ajaxSendmmail","' + to + '","' + message + '","' + homeid + '","' + location.href + '");';
			cCommunityWindowShow( ajaxCall , '' , 406 , 400 );	
		},
		SaveFinalSellHouse:function( id ){
			
			var ajaxCall	= 'jax.call("community" , "homes,ajaxSellHousesFinalSave" , "' + id + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Home Sold?' , 500 , 250 );
		},
		SaveFinalRentHouse:function( id ){
			
			var ajaxCall	= 'jax.call("community" , "homes,ajaxRentHousesFinalSave" , "' + id + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Rent Home?' , 500 , 250 );
		},
		PrieviewHomeProfile:function( homeid ,edithome){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxPrieviewHomeProfile" , "' + homeid + '","' + edithome + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Preview Home Profile' , 730 , 520 );
		},
		
		postAnotherCreateHouse: function( homeid){	
			jax.call("community" , "homes,ajaxsaveopenhousedetails" ,issinglepost,homeid,title,startdate,startfromhours,startfromminutes,startfromampm,enddate,endtohours,endtominutes,endtoampm,firstname,lastname,phone1,phone2,phone3,email,openhomeid);
	

		},
		

		redirectToViewOpenHouse:function()
		{
			if(document.frmViewOpenHouse != undefined)
				document.frmViewOpenHouse.submit();
		},
		
		postAnotherCreateHouse: function( homeid){	
			jax.call("community" , "homes,ajaxsaveopenhousedetails" ,issinglepost,homeid,title,startdate,startfromhours,startfromminutes,startfromampm,enddate,endtohours,endtominutes,endtoampm,firstname,lastname,phone1,phone2,phone3,email,openhouseid);
	

		},
		EditAccessForHome:function( homeid ){
			
			var ajaxCall	= 'jax.call("community" , "homes,ajaxEditAccessForHome" , "' + homeid + '", location.href );';
			///cCommunityWindowShow( ajaxCall , 'Edit Access' , 600 , 570 );
			cCommunityWindowShow( ajaxCall , 'Edit Access' , 600 , 542 );
		},
		EditAccessFinalForHome:function( homeid){
			
			var ajaxCall	= 'jax.call("community" , "homes,ajaxEditAccessFinalForHome" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Edit Access' , 560 , 570 );
		},	
		
		showConfirmDeleteItemAssignPhotos:function( objectid){
			
			var ajaxCall	= 'jax.call("community" , "homes,ajaxConfirmDeleteItemAssignPhotos" , "' + objectid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 450 , 150 );
		},	
		
		showConfirmDeleteRoomAssignPhotos:function(objectid,photoid){
			
			var ajaxCall	= 'jax.call("community" , "homes,ajaxConfirmDeleteRoomAssignPhotos" , "' + objectid + '", "' + photoid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 450 , 150 );
		},	
		
		showConfirmDeleteRoomAssignVideos:function(objectid,videoid){
			
			var ajaxCall	= 'jax.call("community" , "homes,ajaxConfirmDeleteRoomAssignVideos" , "' + objectid + '", "' + videoid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 450 , 150 );
		},
		showConfirmDeleteItemAssignVideos:function( autoid,objectid){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxConfirmDeleteItemAssignVideos" , "' + autoid + '", "' + objectid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 450 , 150 );
		},
		showConfirmDeleteUnassignPhotos:function(photoid){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxConfirmDeleteUnassignPhotos" , "' + photoid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 450 , 150 );
		},	
		showConfirmDeleteUnassignVideos:function(id){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxConfirmDeleteUnassignVideos" , "' + id + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 450 , 150 );
		},
		
		
		viewOwnerProfile: function( home_id,user_id){	
			var ajaxCall	= 'jax.call("community" , "homes,ajaxviewOwnerProfile" , "' + home_id + '", "' + user_id + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 550 , 250 );
			
			
		},
		
		getHomeDefaultItems: function( catid,user_id,selected_ids){	
			jax.call("community" , "homes,ajaxgetHomeDefaultItems" ,catid,user_id,selected_ids);
			
		},
		
		saveHomeDefaultItems: function(catid,item_name){
			
			jax.call("community" , "homes,ajaxsaveHomeDefaultItems" ,catid,item_name);
			
		},
		
		saveHomeItems: function(home_id,item_ids,item_titles,url){
			jax.call("community" , "homes,ajaxsaveHomeItems" ,home_id,item_ids,item_titles,url);
		},
		
		getHomeItemDetails:function(home_id,item_id){
			jax.call("community" , "homes,ajaxgetHomeItemDetails" ,home_id,item_id);

		},
		
		saveItemDetails:function(homeid ,itemid,roomid,type){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxCreateItemDetails" , "' + homeid + '", "' + itemid + '", "' + roomid + '", "' + type + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 750 , 480 );

		},
		openNewItemDetails:function(homeid ,itemid,roomid,type){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxOpenItemDetails" , "' + homeid + '", "' + itemid + '", "' + roomid + '", "' + type + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 750 , 550 );

		},
		viewItemDetails:function(homeid, itemId){
			var ajaxCall	= 'jax.call("community" , "homes,viewItemDetails" , "' + homeid + '", "' + itemId + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 635 , 380 );

		},
		
		assignHomePhoto:function(home_id ,photo_id,task){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxassignHomePhoto" , "' + home_id + '", "' + photo_id + '" , "' + task + '");';
			cCommunityWindowShow( ajaxCall , '' , 406 , 400 );

		},	
		assignHomeVideo:function(home_id ,video_id,task){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxassignHomeVideo" , "' + home_id + '", "' + video_id + '" , "' + task + '");';
			cCommunityWindowShow( ajaxCall , '' , 406 , 400 );

		},
		makeProfilePic:function(home_id ,photo_id){
			jax.call("community" , "homes,ajaxmakeProfilePic" ,  home_id ,  photo_id );

		},	
		
		
		saveHomeMappingDetails:function(homeid ,itemid,estimated_value,insurance_inventory,rooms_ids,item_desc){
			jax.call("community" , "homes,ajaxsaveHomeMappingDetails" ,homeid ,itemid,estimated_value,insurance_inventory,rooms_ids,item_desc );
		},	
		updateHomeItemDetails:function(homeid ,itemid,item_name,item_brand,item_model,item_serial,item_price,item_purchase_date,item_service_provider,item_notes,photoid,objecttype){
			jax.call("community" , "homes,ajaxupdateHomeItemDetails" ,homeid ,itemid,item_name,item_brand,item_model,item_serial,item_price,item_purchase_date,item_service_provider,item_notes,photoid,objecttype );

		},	
		
		showItemsByFilter:function(homeid ,sort_val,show_val){
			jax.call("community" , "homes,ajaxshowItemsByFilter" ,homeid ,sort_val,show_val );
		},	
		
		sortItemsByFilter:function(homeid ,sort_val,show_val){
			jax.call("community" , "homes,ajaxshowItemsByFilter" ,homeid ,sort_val,show_val );
		},	
		
		searchHomefromZip:function(){
			//var ajaxCall	= 'jax.call("community" , "homes,ajaxsearchHomefromZip" , "", location.href );';
			jax.call("community" , "homes,ajaxsearchHomefromZip" , "", location.href );
			//cFrontPageWindowShow( ajaxCall , '' , 430 , 400 );
			//jQuery('#cWindow').css("margin-top","100px");
			//jQuery('#cWindow').css("left","400px");
			
		},
		
		
		
		editRoomSpaceDetails: function(room_id,sqrFt,room_desc,photoid,objecttype,homeid){						
			jax.call("community" , "homes,ajaxEditRoomSpaceDetails" ,room_id,sqrFt,room_desc,photoid,objecttype,homeid);
			
		}//By Amit,18th Aug 09.
		,
		openAddRoomWindow: function(home_id,flag,type){	
			
			var ajaxCall	= 'jax.call("community" , "homes,ajaxopenAddRoomWindow" , "' + home_id + '", "' + flag + '", "' + type + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Rooms & Spaces :' , 700 , 595 );					
			
		}//By Amit,18th Aug 09.
		,

		deleteHomeActivityPhoto:function( objectid){
			
			//jax.call("community" , "homes,ajaxDeleteHomeActivitiPhoto" , objId, objType );
			var ajaxCall	= 'jax.call("community" , "homes,ajaxConfirmDeleteActivityAssignPhotos" , "' + objectid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 450 , 150 );
		},	
		deleteHomeActivityVideo:function(autoid,objectid){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxConfirmDeleteActivityAssignVideo" , "' + autoid + '", "' + objectid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 450 , 150 );
		},		
		openAddHomeDetailsPopup:function( homeid ) {
			var ajaxCall	= 'jax.call("community" , "homes,ajaxopenAddHomeDetailsPopup" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 700 , 800 );
		},	
		
		mapHomeAddress:function( homeid ) {
			var ajaxCall	= 'jax.call("community" , "homes,ajaxMapHomeAddress" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 700 , 400 );
		},	
		
		ajaxsaveNewRoom:function(home_id,room_ids){
			jax.call("community" , "homes,ajaxsaveNewRoom" ,home_id,room_ids);
		},//By Amit,19th Aug 09.
				
		ajaxSaveAndPreviewHomeRooms:function(home_id,room_ids){
			jax.call("community" , "homes,ajaxSaveAndPreviewHomeRooms" ,home_id,room_ids);
		},//By Amit,30th Sep 09.
		
		
		ajaxgetPhotoForHome: function( homeid,divedit){
		jax.call("community" , "homes,ajaxgetPhotoForHome" , homeid,divedit );
		},
		
		OwnerProfile: function( homeid,userid ){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxOwnerProfile" , "' + homeid + '", "' + userid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 500 , 200 );
			
		},
		
		ajaxOpenHouseDetail: function( openhouseid , isviewtype){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxOpenHouseDetail" , "' + openhouseid + '", "' + isviewtype+ '");';
			cCommunityWindowShow( ajaxCall , '' , 560 , 350 );
			
		}
		,
		UpdateVideoOrder: function(objType,orderList){
			jax.call("community" , "homes,ajaxUpdateVideoOrder",objType,orderList);
		},
		UpdatePhotoOrder: function(objType,orderList){
			jax.call("community" , "homes,ajaxUpdatePhotoOrder",objType,orderList);
		}, // by Amit,for changing photo order.29th Aug 09.
		
		updateHomeAddress:function( homeid , addr1 , addr2 , city , state , zip ,community_id)	{
		var ajaxCall = 'jax.call("community" , "homes,ajaxupdateHomeAddress" , "' + homeid + '", "' + addr1 + '",  "' + addr2 + '",  "' + city + '",  "' + state + '",  "' + zip + '","'+ community_id +'");';
		cCommunityWindowShow( ajaxCall , 'Edit Address' , 406 , 310 );
		},
		updateHomeDescription:function( homeid , hometype , totalBedrooms , totalBathrooms , sqft , lotsize , style , yearbuilt , homestory ) {
		var ajaxCall = 'jax.call("community" , "homes,ajaxupdateHomeDescription" , "' + homeid + '", "' + hometype + '",  "' + totalBedrooms + '",  "' + totalBathrooms + '",  "' + sqft + '",  "' + lotsize + '",  "' + style + '",  "' + yearbuilt + '",  "' + homestory + '" );';
		cCommunityWindowShow( ajaxCall , 'Edit Description' , 415 , 510 );
		},
		makeCommunityGroupMmeber: function(homeid){

			jax.call("community" , "homes,ajaxmakeCommunityGroupMmeber",homeid);
			//var ajaxCall	= 'jax.call("community" , "homes,ajaxmakeCommunityGroupMmeber","' + userid + '", "' + homeid + '");';			
			//cCommunityWindowShow( ajaxCall , 'Group Member' , 415 , 505 );
		},
		openHomeServiceProvidersopup:function( homeid ) {
			var ajaxCall	= 'jax.call("community" , "homes,ajaxOpenHomeServiceProvidersopup" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Businesses' , 700 , 490 );
		}
		,
		ajaxchooseDefaultItems:function( homeid ) {
			var ajaxCall	= 'jax.call("community" , "homes,ajaxchooseDefaultItems" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Choose From Our List' , 900 , 520 );			
		},
		ajaxrefreshMyItems:function( homeid,curr_item_id) {
			jax.call("community" , "homes,ajaxrefreshMyItems",homeid,curr_item_id);
		},
		helpHouseholdOrPersonal:function() {
			var ajaxCall = 'jax.call("community" , "homes,helpHouseholdOrPersonal");';
			cCommunityWindowShow( ajaxCall , 'Choosing <em>Household</em> vs. <em>Personal</em>' , 500 , 300 )
		},
		helpMyItems:function() {
			var ajaxCall = 'jax.call("community" , "homes,helpMyItems");';
			cCommunityWindowShow( ajaxCall , 'My Items' , 500 , 300 );		
		},
		
		deleteHome: function( homeid ){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxDeleteHome" , "' + homeid + '", location.href );';
			//cWindowShow( ajaxCall , '' , 450 , 170 );
			/**
			* BEGIN CORE MOD
			*/			
			cCommunityWindowShow( ajaxCall , '' , 406 , 80 );
			/**
			* END CORE MOD
			*/
		},
		deleteClientHome: function( homeid ){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxDeleteClientHome" , "' + homeid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 80 );
		},
		
		homeUploadImage: function( homeid, image_path ){
			//var ajaxCall	= 'jax.call("community" , "homes,ajaxUploadImage" , "' + homeid + '" , "' + image_path + '", location.href );';
			//cCommunityWindowShow( ajaxCall , '' , 50 , 50 );
			jax.call("community" , "homes,ajaxUploadImage" , homeid , image_path , location.href );
		},
		
		homeFromGallary: function( homeid, photo_id ){
			//var ajaxCall	= 'jax.call("community" , "homes,ajaxUploadImage" , "' + homeid + '" , "' + image_path + '", location.href );';
			//cCommunityWindowShow( ajaxCall , '' , 50 , 50 );
			jax.call("community" , "homes,homeFromGallary" , homeid , photo_id , location.href );
		},
		ajaxDeleteItemForHome: function( homeid, itemid ){
			jax.call("community" , "homes,ajaxDeleteItemForHome" , homeid , itemid);
		}, // Added by amit,on 13thOct09 to delete items for home.
		createhomeactivityreport:function(homeid){

			var ajaxCall	= '	jax.call("community" , "homes,ajaxCreateHomeActivityReport" , "' + homeid + '",location.href);';
			cCommunityWindowShow( ajaxCall , 'Create Report' , 406 , 200 );
		},
		activityReport:function(homeid,startDate,endDate){
			jax.call("community" , "homes,ajaxGenerateActivityReport" ,homeid , startDate, endDate, location.href);
		},
		createHomeInfo:function(step_no){
			var message = "";
			var title ="create home profile";
			if(step_no==1)
			{
				height=260;
			}
			else if(step_no==2)
			{
				height=280;
			}
			else if(step_no==3)
			{
				height=240;
			}
			else if(step_no==3.1)
			{
				height=140;
			}
			else
			{
				height=260;
			}
			var ajaxCall	= '	jax.call("community" , "homes,ajaxCreateHomeHelp" , "' + step_no + '");';
			cCommunityWindowShow( ajaxCall , 'Create Home Profile' , 600 , height );
			/*cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , "", 450 , 200 , '');*/
		},
		learnmore:function(){
			var message = "Pending.....";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		showvedio:function(){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxShowVedio");';
			cCommunityWindowShow( ajaxCall , '' , 950 , 725 );
		},
		/**
		* by manish
		* date may 25 2010
		* for removing the items associated for a room for a specific home
		*/
		removeHomeRoomItemsDialog:function(homeID,roomID){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxRemoveHomeRoomItemsDialog" , "' + homeID + '", "' + roomID+ '");';
			cCommunityWindowShow( ajaxCall , '' , 500 , 400 );
		},
		removeHomeRoomItems:function(roomId,roomItems){
			//cWindowHide();
			jax.call("community" , "homes,ajaxRemoveHomeRoomItems" , roomId , roomItems , location.href );
		},
		joinHometrax:function(){
			var ajaxCall	= 'jax.call("community" , "homes,ajaxjoinHometrax" , "", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 280 );
		}
		
	},
		

	
	
	/**
	 * END CORE MOD
	 */
	 
	messaging: {
		loadComposeWindow: function(userid){
			var ajaxCall = 'jax.call("community", "inbox,ajaxCompose", '+userid+')';
			//cWindowShow(ajaxCall, '', 450, 300);  // Default line 
			
		   /**
		 	* BEGIN CORE MOD
		 	*/			
			cCommunityWindowShow(ajaxCall, '', 470, 350);
			/**
			 * END CORE MOD
			 */
			 
		},
		send: function(){
			var formVars = jax.getFormValues('writeMessageForm');
			jax.call("community", "inbox,ajaxSend", formVars);
			return false;
		},
		/**
		 * BEGIN CORE MOD
		 */
		 // Added funciton to be called from inbox->controller to redirect to inbox page after ajaxRemoveFullMessages called. 
		redirectToInbox:function()
		{
			if(document.frmInbox != undefined)
				document.frmInbox.submit();
		}
		/**
		 * END CORE MOD
		 */
	},
	walls: {
		
		/**
		 * BEGIN CORE MOD
		 */
		
		add: function ( uniqueId, addFunc , Type ){

			jax.loadingFunction = function()
			{
				jQuery('#wall-message').attr('disabled', true);
				jQuery('#wall-submit').attr('disabled', true);
			}
		
			jax.doneLoadingFunction = function()
			{
				jQuery('#wall-message').attr('disabled', false);
				jQuery('#wall-submit').attr('disabled', false);
			};
			
			if(typeof getCacheId == 'function')
			{
				cache_id = getCacheId();
			}
			else
			{
				cache_id = "";
			}		
			
			jax.call('community', addFunc, jQuery('#wall-message').val(), uniqueId,  Type , cache_id);
		},	
		
		/**
		 * END CORE MOD
		 */
		
		insert: function( html ){
			jQuery('#wall-message').val('');
			//jQuery('#wallContent').prepend(html);	
			jQuery('#wallContent').append(html);	
		},
		
		/**
		 * BEGIN CORE MOD
		 **/
		replyinsert: function( html ){
			document.replyForum.submit();
		},
		/**
		 * END CORE MOD
		 */
		
		remove: function( type , wallId , contentId ){
			if(confirm('Are you sure you want to delete this wall?'))
			{
				jax.call('community' , type + ',ajaxRemoveWall' , wallId , contentId );
				jQuery('#wall_' + wallId ).fadeOut('normal', function(){jQuery(this).remove()});
				
				// Process ajax calls
			}
		}
	},
	toolbar: {
		timeout: 500,
		closetimer: 0,
		ddmenuitem: 0,
		open: function( id ){
			
			if ( jQuery('#'+id).length > 0 ) { 
				// cancel close timer
				joms.toolbar.cancelclosetime();
			
				// close old layer
				if(joms.toolbar.ddmenuitem)
				{
					joms.toolbar.ddmenuitem.style.visibility = 'hidden';
				}
			
				// get new layer and show it
				joms.toolbar.ddmenuitem = document.getElementById(id);
				joms.toolbar.ddmenuitem.style.visibility = 'visible';
			}				
		},
		close: function(){
			if(joms.toolbar.ddmenuitem)
			{
				joms.toolbar.ddmenuitem.style.visibility = 'hidden';
			}
		},
		closetime: function(){
			joms.toolbar.closetimer	= window.setTimeout( joms.toolbar.close , joms.toolbar.timeout );
		},
		cancelclosetime: function(){
			if( joms.toolbar.closetimer )
			{
				window.clearTimeout( joms.toolbar.closetimer );
				joms.toolbar.closetimer = null;
			}
		}
	},
	registrations:{
		windowTitle: '',
		showTermsWindow: function(){
			var ajaxCall = 'jax.call("community", "register,ajaxShowTnc", "")';
			cWindowShow(ajaxCall, this.windowTitle , 600, 350);
		},
		authenticate: function(){
			jax.call("community", "register,ajaxGenerateAuthKey");
		},
		authenticateAssign: function(){
			jax.call("community", "register,ajaxAssignAuthKey");
		},		
		assignAuthKey: function(fname, token, authkey){
			eval("document.forms['" + fname + "'].elements['" + token + "'].value = '" + authkey + "';");
		},
		showWarning: function(message) {			
			cWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Notice' , 450 , 200 , 'warning');		
		}		
	},
	comments:{
		add: function(id){			
			var cmt = jQuery('#'+ id +' textarea').val();
			if(cmt != '') {
				jQuery('#'+ id +' .wall-coc-form-action.add').attr('disabled', true);
				if(typeof getCacheId == 'function')
				{
					cache_id = getCacheId();
				}
				else
				{
					cache_id = "";
				}
				jax.call("community", "plugins,walls,ajaxAddComment", id, cmt, cache_id);
			}
		},
		insert: function(id, text){
			jQuery('#'+ id +' form').before(text);
			joms.comments.cancel(id);
		},
		remove: function(obj){
			var cmtDiv = jQuery(obj).parents('.wallcmt');
			var index  = jQuery(obj).parents('.wallcmt').parent().children().index(cmtDiv);
			try{ console.log(index); } catch(err){}
			var parentId = jQuery(obj).parents('.wallcmt').parent().attr('id');
			try{ console.log(parentId); } catch(err){}
			//jQuery(obj).parent('.wallcmt').remove();		
			
			jax.call("community", "plugins,walls,ajaxRemoveComment", parentId, index);
		},
		cancel: function(id){
			jQuery('#'+ id +' textarea').val('');
			jQuery('#'+ id +' form').hide();
			jQuery('#'+ id +' .show-cmt').show();
			jQuery('#'+ id + ' .wall-coc-errors').hide();
		},
		show: function(id){
			var w = jQuery('#'+ id +' form').parent().width();
			try{ console.log(w); } catch(err){}
			jQuery('#'+ id +' textarea').width(w);
			jQuery('#'+ id +' .wall-coc-form-action.add').attr('disabled', false);
			jQuery('#'+ id +' form').width(w).show();
			jQuery('#'+ id +' .show-cmt').hide();
			
			// Need to reduce the textarea with, taking into accoutn of border and margin
			// the form need to be show first before we can calculate the correct size
			var ow = jQuery('#'+ id +' textarea').outerWidth(true);
			try{ console.log(ow); } catch(err){}

			// Bind the textarea to autogrow func
			joms.utils.autogrow('#'+ id +' textarea');
			
			// Hide the comment form if textarea IS empty and lose focus
			jQuery('#'+ id +' textarea').width(w - (ow - w)).blur(function(){
				var cmt = jQuery('#'+ id +' textarea').val();
				if(cmt == ''){
					joms.comments.cancel(id);
				}
			});
			
		}
	},
	utils: {
		// Resize the width of the giventext to follow the innerWidth of 
		// another DOM object
		// The textarea must be visible
		textAreaWidth: function(target){
			/*
			Rev 1
			var w = jQuery(followId).width();
			try{ console.log(w); } catch(err){}
			jQuery(textareaId).width(w);
			
			// Need to reduce the textarea with, taking into account of border and margin
			// the form need to be show first before we can calculate the correct size
			var ow = jQuery(textareaId).outerWidth(true);
			try{ console.log(ow); } catch(err){}
			jQuery(textareaId).width(w - (ow - w));
			*/

			/*
			Rev 2
			if (source==undefined)
				source = jQuery(target).parent();
				
			w  = jQuery(source).width() - (jQuery(target).outerWidth(true) - jQuery(target).width());
			
			jQuery(target).width(w);
			*/
			
			with (jQuery(target))
			{
				css('width', '100%');
				width(width() * 2 - outerWidth(true));
			}
		},
		
		autogrow: function (id, params){
			// Bind the textarea to autogrow func
			var lineHeight = parseFloat(jQuery(id).css('line-height').replace(/[^0-9]/g, ''));
			
			if(params==undefined)
				params = {maxHeight: 300, minHeight: (lineHeight*2), lineHeight: lineHeight};
			
			jQuery(id).height(params.minHeight).autogrow(params);
		}
	},
	connect: {
		// Displays popup that requires user to update their details upon 
		// Change light-box same as default
		update: function(){
			var ajaxCall = "jax.call('community', 'connect,ajaxUpdate' );";
			cCommunityWindowShow(ajaxCall, '', 450, 200);
		},
		mergeNotice: function(){
			var ajaxCall = "jax.call('community','connect,ajaxMergeNotice');";
			cWindowShow(ajaxCall, '', 450, 200);
		},
		merge: function(){
			var ajaxCall = "jax.call('community','connect,ajaxMerge');";
			cWindowShow(ajaxCall, '', 450, 200);
		}
	},
	
	// Video component
	videos: {
		showEditWindow: function(id){		
			var ajaxCall = "jax.call('community', 'videos,ajaxEditVideo', '"+id+"');";
			cWindowShow(ajaxCall, '' , 450, 400);		
		},		
		deleteVideo: function(videoId){
			var ajaxCall = "jax.call('community' , 'videos,ajaxRemoveVideo', '" + videoId + "','myvideos');";
			cWindowShow(ajaxCall, '', 450, 150);
		},
		playerConf: {
			// Default flowplayer configuration here
		},
	/** 
	 * BEGIN CORE MOD
	 */
	 	//changed from homeid to objectid and with object_type
		addVideo: function(objectid,object_type) {
			var ajaxCall = "jax.call('community', 'videos,ajaxAddVideo', '" + objectid + "','" + object_type + "');";
			/*cWindowShow(ajaxCall, '', 500, 330);*/
			cCommunityWindowShow(ajaxCall, '', 500, 360);
		},
		//changed from homeid to objectid and with object_type
		linkVideo: function(objectid,object_type) {
			var ajaxCall = "jax.call('community', 'videos,ajaxLinkVideo', '" + objectid + "','" + object_type + "');";
			/*cWindowShow(ajaxCall, '', 450, 220);*/
			cCommunityWindowShow(ajaxCall, '', 450, 220);
		},
	/**
	 * END CORE MOD
	 */
		uploadVideo: function() {
			var ajaxCall = "jax.call('community', 'videos,ajaxUploadVideo', '');";
			cWindowShow(ajaxCall, '', 450, 400);
		},
		submitLinkVideo: function() {
			var isValid = true;
			
			videoLinkUrl = "#linkVideo input[name='videoLinkUrl']";
		
			if(jQuery.trim(jQuery(videoLinkUrl).val())=='')
			{
				jQuery(videoLinkUrl).addClass('invalid');
				isValid = false;
			}
			else
			{
				jQuery(videoLinkUrl).removeClass('invalid');
			}
			
			if (isValid)
			{
				jQuery('#cwin-wait').css("margin-left","20px");
				jQuery('#cwin-wait').show();
				
				document.linkVideo.submit();
			}
		},
		submitUploadVideo: function() {
			var isValid = true;
			
			videoFile = "#uploadVideo input[name='videoFile']";

			if(jQuery.trim(jQuery(videoFile).val())=='')
			{
				jQuery(videoFile).addClass('invalid');
				isValid = false;
			}
			else
			{
				jQuery(videoFile).removeClass('invalid');
			}
			
			videoTitle = "#uploadVideo input[name='title']";
			if(jQuery.trim(jQuery(videoTitle).val())=='')
			{
				jQuery(videoTitle).addClass('invalid');
				isValid = false;
			}
			else
			{
				jQuery(videoTitle).removeClass('invalid');
			}

			if (isValid)
			{
				jQuery('#cwin-wait').css("margin-left","20px");
				jQuery('#cwin-wait').show();
				
				document.uploadVideo.submit();
			}
		}
	},
	users: {
		blockUser: function( userId , isBlocked ){
			var ajaxCall = "jax.call('community', 'profile,ajaxBlockUser', '" + userId + "' , '" + isBlocked + "');";
			cWindowShow(ajaxCall, '', 450, 400);
		},
		removePicture: function( userId ){
			var ajaxCall = "jax.call('community', 'profile,ajaxRemovePicture', '" + userId + "');";
			cWindowShow(ajaxCall, '', 450, 400);
		}
	},
	
	
	
	serviceprovider: {
		spWriteReview:function(spId,reviewID){
			//alert(reviewID);	
			//reviewID - zero means new reviews else edit review
			var ajaxCall = 'jax.call("community" , "serviceprovider,ajaxSpWriteReview" ,"' + spId + '","' + reviewID + '", location.href);';
			cCommunityWindowShow( ajaxCall , '' , 420 , 420 );
		},//By Manish,31,Aug,2009
		spProviderProfile:function(spId){
			var ajaxCall = jax.call("community" , "serviceprovider,ajaxSPProviderProfile" ,spId);
			//cCommunityWindowShow( ajaxCall , '' , 800 , 630 );
			cCommunityWindowShow( ajaxCall , '' , 850 , 500 ); //550
		},
		showConfirmDeleteServiceProviderPhotos:function(photoid){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,showConfirmDeleteServiceProviderPhotos" , "' + photoid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 450 , 150 );
		},
		sp_multiplelocation:function(){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,showspmultiplelocation" , "", location.href );';
			cCommunityWindowShow( ajaxCall , 'Multiple Locations' , 450 , 150 );
		},
		showConfirmDeleteServiceProviderVideos:function(videoid){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,showConfirmDeleteServiceProviderVideos" , "' + videoid + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 450 , 150 );
		},
		addToMyServiceProvider: function( serviceprovider_id,divid){	
			jax.call("community" , "serviceprovider,ajaxaddToMyServiceProvider" ,serviceprovider_id,divid);
			
		},
		addToMyServiceProviderList:function(sp_id){			
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxaddToMyServiceProviderList" , "' + sp_id + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 450 , 150);
		},
		ContactServiceProvider:function(sp_id){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxContactServiceProvider" , "' + sp_id + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 600 , 560);
		},
		saveSpDetail: function(sp_id){

			jax.call("community" , "serviceprovider,ajaxsaveSpDetail",sp_id);
			//var ajaxCall	= 'jax.call("community" , "homes,ajaxmakeCommunityGroupMmeber","' + userid + '", "' + homeid + '");';			
			//cCommunityWindowShow( ajaxCall , 'Group Member' , 415 , 505 );
		},
		joinHometrax:function(){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 280 );
		},
		businessClaim:function(){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,businessClaim" , "", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 170 );
		},
		IsSpBusiness:function(sp_id){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxIsSpBusiness" , "' + sp_id + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Is This Your Business Profile?' , 450 , 400);
		},		
		EditAccessForSp:function(sp_id){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxEditAccessForSp" , "' + sp_id + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Edit Access' , 560 , 500);
		},
		EditAccessFinalForSp:function(sp_id){
			
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxEditAccessFinalForSp" , "' + sp_id + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Edit Access' , 560 , 500 );
		},
		SendInvitationForSpEditAccess:function (emailaddress,sp_id,owner){
			var ajaxCall = 'jax.call("community" , "serviceprovider,ajaxSendInvitationForSpEditAccess","' + emailaddress + '","' + sp_id + '","' + owner + '","' + location.href + '");';
			cCommunityWindowShow( ajaxCall , 'Send Invitation' , 406 , 400 );	
		},
		SendMailForSpEditAccess:function (to,message,sp_id){
		
			var ajaxCall = 'jax.call("community" , "serviceprovider,ajaxSendmmailForSpEditAccess","' + to + '","' + message + '","' + sp_id + '","' + location.href + '");';
			cCommunityWindowShow( ajaxCall , '' , 406 , 400 );	
		},
		addServiceProvider: function (){
			var ajaxCall = jax.call("community" , "serviceprovider,ajaxAddServiceProvider","' + location.href + '");
			cCommunityWindowShow( ajaxCall , '' , 425 , 400 );	
		},
		
		msgAddServiceProvider: function (){
			var ajaxCall = jax.call("community" , "serviceprovider,msgAddServiceProvider","' + location.href + '");
			cCommunityWindowShow( ajaxCall , '' , 406 , 190 );	
		},

		addToMyServiceProviderMarketingTools: function( serviceprovider_id,marketing_id,marketing_desc){	
			jax.call("community" , "serviceprovider,ajaxaddToMyServiceProviderMarketingTools" ,serviceprovider_id,marketing_id,marketing_desc);
		},
		removeCartItem: function( serviceprovider_id,marketing_id){	
			jax.call("community" , "serviceprovider,ajaxremoveCartItem" ,serviceprovider_id,marketing_id);
			
		},
		
		cancelToMyServiceProviderMarketingTools: function( serviceprovider_id,marketing_id,marketing_desc){	
			jax.call("community" , "serviceprovider,ajaxcancelToMyServiceProviderMarketingTools" ,serviceprovider_id,marketing_id,marketing_desc);
			
		},
		
		sendOrderportCancelTool: function(serviceprovider_id,marketing_id,marketing_desc) {
			jax.call("community" , "serviceprovider,ajaxSendOrderportCancelTool",serviceprovider_id,marketing_id,marketing_desc);
		},
		
		mapSpAddress:function( spid ,address,address_dis) {
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxMapServiceProviderAddress" , "' + spid + '", "' + address + '","' + address_dis + '", location.href );';
			
			
			cCommunityWindowShow( ajaxCall , '' , 700 , 400 );
		},
		openCategorySelection: function(selectedIDs){	
			
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxopenCategorySelection" , "' + selectedIDs + '", location.href );';
			cCommunityWindowShow( ajaxCall , 'Category Selection :' , 720 , 500 );					
			
		}//By Amit,2nd Sep 09.
		,
		returnCategorySelection:function(returnIDs){
				returnSelection(returnIDs);
		}//By Amit,2nd Sep 09.
		,		
		connectionPreview: function (sp_id){
			var ajaxCall = 'jax.call("community" , "serviceprovider,connectionPreview","' + sp_id + '");';
			cCommunityWindowShow( ajaxCall , '' , 406 , 190 );	
		}
		,
		offerPreview: function (offer_id){
			var ajaxCall = 'jax.call("community" , "serviceprovider,offerPreview","' + offer_id + '");';
			cCommunityWindowShow( ajaxCall , '' , 415 , 205 );	
		}
		,
		deleteOffer: function (offer_id, sp_id){
			var ajaxCall = 'jax.call("community" , "serviceprovider,deleteOffer","' + offer_id + '","' + sp_id + '");';
			cCommunityWindowShow( ajaxCall , '' , 406 , 110 );
		},
		featuredPropertyPreview: function (featured_property_id){
			var ajaxCall = 'jax.call("community" , "serviceprovider,featuredPropertyPreview","' + featured_property_id + '");';
			cCommunityWindowShow( ajaxCall , '' , 415 , 205 );	
		}
		,
		deleteFeaturedProperty: function (featured_property_id, sp_id){
			var ajaxCall = 'jax.call("community" , "serviceprovider,deleteFeaturedProperty","' + featured_property_id + '","' + sp_id + '");';
			cCommunityWindowShow( ajaxCall , '' , 406 , 110 );
		},
		sendInvitation: function (){
			var ajaxCall = jax.call("community" , "serviceprovider,ajaxSendInvitation","' + location.href + '");
			cCommunityWindowShow( ajaxCall , '' , 539 , 500 );	
		}, //By Amit,2nd Sep 09.
		popularityDesc:function() {
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxpopularityDesc" );';
			cCommunityWindowShow( ajaxCall , 'WHAT&quot;S THIS?' , 406 , 120 );
		},
		
		reportAbuse:function(spid) {
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxreportAbuse","' + spid + '" );';
			cCommunityWindowShow( ajaxCall , 'REPORT ABUSE' , 406 , 250 ); // 250 => 300
		}
		,		
		ajaxGetServiceProviderPhoto:function(spid) {
			// Added by amit,to get sp photo on edit sp page.22nd sep 09.
			jax.call("community" , "serviceprovider,ajaxGetServiceProviderPhoto", spid);
		},
		suggestSpToConnection:function(sp_id){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxSuggestSpToConnection" , "' + sp_id + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 600 , 560);
		},
		messageForSuggestSPtoConnectioon:function(emailID,spID){
			jax.call("community" , "serviceprovider,ajaxMessageForSPSuggestion", emailID,spID);
			//var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxSuggestSpToConnection" , "' + email + '" , "' + sp_d + '", location.href );';
			//cCommunityWindowShow( ajaxCall , '' , 600 , 560);*/
		},
		lookforspecialoffers:function(){
			var message = "Enter a zip code and search for a service, from accounting to restaurants. When results are displayed, use the sort tool to find who has a Special Offer.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Special Offers' , 450 , 200 , '');
		},
		learnmoresearch:function(){
			var message = "Enter a zip code then choose from our categories or enter a keyword to find rated Services close to you. Businesses, Developers or Realtors find your business, claim it and complete the Profile. Create an interactive banner, invite contacts to connect with you and display Special Offers. If you do not find your business click on Create Business Profile to start one.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmoremarketingtools:function(){
			var message = 'Use our tools to enhance your visibility in Hometrax. Do not miss the FREE Client Connection tool. Activate then click manage. Create an interactive banner that will take the top right placement on the pages of everyone who accepts your invitation to Hometrax. The invitation also connects you to users so that they will see your messages, Updates and Special Offers. You will be suggested to your clients Connections through our social network.';
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmorecreateserviceprovider:function(){
			var message = "Complete this form to create your Business Profile.  Upload a photo or your logo.  Choose up to 5 service categories.  This will make you easier to find in user searches.  Brands you use, if appropriate, will become part of our Product Showrooms.  Submit the Profile, your connections will see an update, then manage the Business Profile by starting a FREE Client Connection program and choosing from our Marketing Tools.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmore:function(){
			var message = "Pending.....";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		comingsoon:function(cat_id){
			var message = "This feature will be coming soon.....";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , '' , 450 , 200 , '');
		},
		learnmoresearchresult:function(){
			var message = "Sort by Special Offers or by rating. You can check Forum posts to see what others say about these Businesses. Add a Business to your list and connect with them if so desired. Add them to your Home Profile in My Businesses to suggest them to your Connections and find them easily.  Suggested Businesses are those whom your connections have used.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmore_mysplist:function(){
			var message = "Add Businesss to a master list. Drag and drop them to a Home Profile to make them suggested and easy to find. If you are a Business who manages or sells homes don&prime;t forget to add yourself to the Home Profile. This will be seen in your Connection&prime;s updates and you will become a suggested provider.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmore_myhomelist:function(){
			var message = "If you haven&prime;t created a to your clients as well as a new buyer Home Profile click the link to begin. From the Home Profile click Manage Businesses to return here and attach them to the home. If you manage or sell property this will be useful.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmore_activateSpOffer:function(){
			var message = "Activate and create a banner that will be viewed by all your Connections and by anyone who searches for services and Special Offers. Your Special Offer will be displayed in Updates, too. This offer can be an announcement of a discount, a featured property or anything you want to present.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmore_activateEasyLink:function(){
			var message = "Easylink is a web address that you can attach to any other media; print or web, that will send a viewer to your profile in Hometrax. You can use it as part of your email signature, too.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmore_sponhomeprofile:function(){
			var message = "If you have access to edit this Profile add Businesses that worked with you on this home. If you are a homeowner, add Businesses here to create a directory. If you are managing this home for someone be sure to add yourself to make connecting with this homeowner easy. If this is a new home add Businesses who did the construction and add value to the listing.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		categoriessugggestion: function (sp_id){
			var ajaxCall = 'jax.call("community" , "serviceprovider,categoriessugggestion");';
			cCommunityWindowShow( ajaxCall , '' , 406 , 250 );	
		},
		confirmdeleteSpPopup: function (sp_id){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxConfirmDeleteSpPopup" , "' + sp_id + '", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 80 );
		},
		ajaxDeleteSp: function (sp_id){
			jax.call("community" , "serviceprovider,ajaxDeleteSp" , sp_id, location.href );
		},
		spcheckeasylinkname: function(name){	
			jax.call("community" , "serviceprovider,Ajaxcheckeasylink" ,name);
			
		},
		editEasyLink:function(){	
			jax.call("community" , "serviceprovider,ajaxShowEditEasylink");
		},
		showvedio:function(){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxShowVedio");';
			cCommunityWindowShow( ajaxCall , '' , 950 , 725 );
		},
		deleteMySp: function(sp_id){	
			jax.call("community" , "serviceprovider,ajaxDeleteMySp" ,sp_id);
		},
		deleteMySpAssignToHome: function(sp_id,home_id){	
			jax.call("community" , "serviceprovider,ajaxDeleteMySpAssignToHome" ,sp_id,home_id);
		},
		assignSpToHome:function(SpID,homeID){
			jax.call("community" , "serviceprovider,ajaxAssignSpToHome" , SpID, homeID);
		},
		RefreshSpOffer:function(zipcode,groupid){
			jax.callRefreshDiv("community" , "serviceprovider,ajaxRefreshSpOffer" , zipcode,groupid );
		},
		RefreshSpCCP:function(zipcode){
			jax.call("community" , "serviceprovider,ajaxRefreshSpCCP" , zipcode );
		},
		RefreshSpFeatureProperty:function(zipcode){
			jax.callRefreshDiv("community" , "serviceprovider,ajaxRefreshSpFeatureProperty" , zipcode );
		},
		spReviewReply:function(sp_id,review_id){
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxspReviewReply" ,"'+ sp_id +'", "'+ review_id + '");';
			cCommunityWindowShow( ajaxCall , '' , 420 , 420 );
		},
		moresp:function(flag,userid){
			jax.call("community" , "serviceprovider,ajaxMoreServiceProvider",flag,userid);
		},
		confirmCreateSP:function(){
			//alert(location.href);
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxConfirmCreateSP" );';
			cCommunityWindowShow( ajaxCall , '' , 420 , 145 );
		},
		newclientbainCommunity:function(){
			var message ;
			
			
			message = '	<div>enter your zip code and key words "real estate" to find your agent profile.</div>';			
			message += '	<div style="float:right;margin-top:20px">';
			message += '	<div id="left_orange_button"></div>';			
			message += '		<a class="middle_orange_button" href="'+juribase+'/service-providers.html">Yes</a>';
			message += '	<div id="right_orange_button"></div>';
			message += '	<div id="left_orange_button" class="margin_left_5"></div>';
			message += '		<button name="cancel" type="button" class="middle_orange_button" onclick="javascript:cWindowHide();return false;">No</button>';
			message += '	<div id="right_orange_button" class="right_margin_5"></div>';
			message += '	</div>';

			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , '' , 420 , 145 , '');
		},
		noSPContactInfo:function(name){
			var message = 'Sorry !! '+ name +' business has not provided any contact information.';
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'no nontact information' , 450 , 100 , '');
		}
	},
	
	resourcecenter: {
		showSubCategory:function(cat_id){
			var ajaxCall = 'jax.call("community" , "resourcecenter,showsubcategory" ,"' + cat_id + '", location.href);';
			cCommunityWindowShow( ajaxCall , '' , 406 , 300 );
		},
		comingsoon:function(cat_id){
			var message = "This feature will be coming soon.....";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Resource Center' , 450 , 200 , '');
		},
		showTemplate:function(news_id,msg_id){
			var ajaxCall = 'jax.call("community" , "resourcecenter,showTemplate" ,"' + news_id + '","' + msg_id + '", location.href);';
			cCommunityWindowShow( ajaxCall , '' , 700 , 600 );
		},
		newsletterlearnmore:function(){
			var message = "Monthly newsletters cover topics of interest for living and working in your community.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'newsletter' , 450 , 200 , '');
		},
		repairslearnmore:function(){
			var message = "Get helpful monthly tips on home repairs and improvement projects.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'repairs &amp; improvements' , 450 , 200 , '');
		},
		productshowroomslearnmore:function(){
			var message = "Find manufacturers of home related products in our fun and easy to use showrooms.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'product &amp; showrooms' , 450 , 200 , '');
		},
		blogslearnmore:function(){
			var message = "Check out blogs from Hometrax members or start your own.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'blogs' , 450 , 200 , '');
		}
	},
	frontpage: {
		showInfo1:function(){
			var message = "";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn to use Hometrax' , 450 , 200 , '');
		},
		showInfo2:function(){
			var message = "Spread your service message throughout your community and tie into our FREE Client Connection network. Your messages, Updates and Special Offers will be displayed on all your clients Community pages. Go to Businesses to create your free profile.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Business' , 450 , 200 , '');
		},
		showInfo3:function(){
			var message = "";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Realtor' , 450 , 200 , '');
		},
		showInfo4:function(){
			var message = "";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Developer' , 450 , 200 , '');
		},
		learnmorehomes:function(){
			var message = "This section displays and links you to the homes you own and manage as well as their Community. Click create Home Profile and begin to manage your Homes, Insurance Inventory, Repairs and Improvements, Upload Documents or list your home for sale or rent. Join Communities and see Events, Forums and Groups here too.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		FooterjoinHometrax1:function(){
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			x = obj.offsetLeft;
			y = obj.offsetTop;
			//alert(x);
			//alert(y);
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, x+85 , y-330 );
			/*var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			var aryPosition = ObjectPosition(obj);
			//element reference
			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			//return false;
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, position.x + 85 , position.y - 330);*/
		},
		FooterjoinHometrax2:function(){
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			x = obj.offsetLeft;
			y = obj.offsetTop;
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, x + 195 , y - 330);
			/*var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			
			var aryPosition = ObjectPosition(obj);
			//element reference
			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			//return false;
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, position.x + 195 , position.y - 330);*/
		},
		FooterjoinHometrax3:function(){
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			x = obj.offsetLeft;
			y = obj.offsetTop;
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, x + 265 , y - 330);
			/*var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			var aryPosition = ObjectPosition(obj);
			//element reference
			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			//return false;
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, position.x + 265 , position.y - 330);*/
		},
		FooterjoinHometrax4:function(){
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			x = obj.offsetLeft;
			y = obj.offsetTop;
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, x + 345 , y - 330);
			/*var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			var aryPosition = ObjectPosition(obj);
			//element reference
			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			//return false;
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, position.x + 345 , position.y - 330);*/
		},
		FooterjoinHometrax5:function(){
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			x = obj.offsetLeft;
			y = obj.offsetTop;
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, x + 405 , y - 330);
			/*var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			var aryPosition = ObjectPosition(obj);
			//element reference
			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			//return false;
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, position.x + 405 , position.y - 330);*/
		},
		FooterjoinHometrax6:function(){
			var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			x = obj.offsetLeft;
			y = obj.offsetTop;
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, x + 505 , y - 330);
			/*var obj;
			//obj = document.getElementById('icons_container');
			obj = document.getElementById('footer');
			var aryPosition = ObjectPosition(obj);
			//element reference
			//get the position
			var position = {
				'x' : getRealPosition(obj,'x'),
				'y' : getRealPosition(obj,'y')
				};
			//return false;
			var ajaxCall	= 'jax.call("community" , "serviceprovider,ajaxjoinHometrax" , "", location.href );';
			var width = 408;
			cFooterWindowShow( ajaxCall , '' , width, 280, position.x + 505 , position.y - 330);*/
		},
		learnmorehomeowner:function(){
			var message ;
			message = '<div id="default_width">';
			message += '	<div id="pop_green_line"></div>';
			message += '		<div id="default_width">';
			message += '			<div id="home_icon_pop1"><img src="'+juribase+'/images/newtemplate/home_icon_pop_lightbox.jpg" width="70" height="71" /></div>';
			message += '			<div id="default_width_80" class="top_margin_10px pop_header_text"><span>Hometrax</span> for Homeowners<br>and Renters</div>';
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_55" class="top_margin_10 popbody_text"><span>Need a plumber? Can not remember your kitchen paint color?  Use Hometrax to locate recommended businesses and efficiently track home repairs and improvements, FREE!  With Hometrax you can easily create a private, secure home profile that includes detailed construction information along with descriptions of rooms and spaces and their contents.  Use Hometrax to:<div style="margin-left: 20px;"><ul><li>develop a thorough record of repairs and improvements </li><li>itemize a secure insurance inventory to share with your agent or family</li><li>compile a directory of favorite business who maintain your home</li></ul></div></span></div>';
			message += '			<div id="default_width_40">';
			message += '				<div id="pop_imag_home"></div>';
			message += '			</div>';	
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_95" class="top_margin_10 popbody_text"><p>You get added value with Hometrax when you are ready to sell or rent your home by linking your home profile to real estate listings - post the profile on Hometrax community pages too.  Revealing your homes special history both strengthens your listing and arms the buyer with robust information that suits their needs and wants.</p><p>Hometrax also features search and social networking tools that connect you with business and other community members.  With the business directory you can:</p><div style="margin-left: 20px;"><ul><li>find businesses, review their profiles and contact them for service</li><li>add reviews and ratings to a business profile</li><li>locate and discuss businesses suggested by your community</li><li>view special offers from local businesses</li></ul></div>';
			message += '		<a href="'+ juribase +'/index.php?option=com_content&view=article&id=210042"  style="border:0; color:#ff7f00;" >Join now for your FREE Hometrax account to take advantage of these powerful tools > </a></div>';
			message += '		</div>';
			message += '	</div>';
			
			cFrontPageWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 650 , 475 , '');
		},		
		learnmoreserviceprovider:function(){
			var message ;
			message = '<div id="default_width">';
			message += '	<div id="pop_green_line"></div>';
			message += '		<div id="default_width">';
			message += '			<div id="home_icon_pop1"><img src="'+juribase+'/images/newtemplate/service_pro_pop_lightbox.jpg" width="70" height="71" /></div>';
			message += '			<div id="default_width_80" class="top_margin_10px pop_header_text"><span>Hometrax for<br></span>  Business</div>';
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_55" class="top_margin_10 popbody_text"><span>Hometrax puts you in contact with new clients and reconnects you with existing ones.  Spread your service message throughout your community and tie into to a FREE, unique referral system.  Use Hometrax to:<div style="margin-left: 20px;"><ul><li>ensure you are found and recommended by Hometrax members</li><li>advertise special offers that are prominently displayed throughout the community</li><li>stay in touch with current customers and reach new prospects</li><li>join a community of people who are networking about your services</li><li>spread your message in an online community that grows through networking</li><li>become prominent on homeowners pages who accept your invitation to join Hometrax</li><li>increase awareness for your services through community networking</li><li>expand your client base and improve customer service at no cost</li></ul></div></span></div>';
			message += '			<div id="default_width_40">';
			message += '				<div id="pop_imag_serviceprovider"></div>';
			message += '			</div>';	
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_95" class="top_margin_10 popbody_text"><a href="'+ juribase +'/index.php?option=com_content&view=article&id=210042"  style="border:0; color:#ff7f00;" >Join now for a FREE Hometrax account to take advantage of these powerful tools > </a></div>';
			message += '		</div>';
			message += '	</div>';
			
			cFrontPageWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 650 , 475 , '');
		},
		learnmoredevelopers:function(){
		var message ;
			message = '<div id="default_width">';
			message += '	<div id="pop_green_line"></div>';
			message += '		<div id="default_width">';
			message += '			<div id="home_icon_pop1"><img src="'+juribase+'/images/newtemplate/developers_pop_lightbox.jpg" width="70" height="71" /></div>';
			message += '			<div id="default_width_80" class="top_margin_10px pop_header_text"><span>Hometrax for</span><br>Developers and Builders</div>';
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_55" class="top_margin_10 popbody_text"><span>Hometrax promotes your projects in a new way, across our FREE networked on-line community.  Hometrax helps organize your associations and facilitate the ongoing marketing of your developments.  The home profile lets you create a detailed home description that better identifies and positions your project by linking it to real estate listings.  When the home sells, you simply transfer the profile to the buyer.  Use Hometrax to:<div style="margin-left: 20px;"><ul><li>post your offerings for sale or rent at no cost on our community pages</li><li>build a valuable record of a homes construction, its special features and businesses utilized</li><li>win a prominent place on the pages of realtors, businesses and homeowners you invite to the network</li><li>win a prominent place on the pages of realtors, businesses and homeowners you invite to the network</li><li>display your products more completely and augment your listings</li><li>advertise special offers that will be displayed throughout our site</li><li>showcase upgrades and details offered in your project</li><li>create HOA associations and other community networks in our groups tool</li><li>connect your businesses to buyers for ongoing warranty and other work</li><li>generate community buzz about your project through networking</li></ul></div></span></div>';
			message += '			<div id="default_width_40">';
			message += '				<div id="pop_imag_developers"></div>';
			message += '			</div>';	
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_95" class="top_margin_10 popbody_text"><a href="'+ juribase +'/index.php?option=com_content&view=article&id=210042"  style="border:0; color:#ff7f00;" >Join now for a FREE Hometrax account to take advantage of these powerful tools > </a></div>';
			message += '		</div>';
			message += '	</div>';
			
			cFrontPageWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 650 , 550 , '');
		},
		learnmoreorganisations:function(){
			var message ;
			message = '<div id="default_width">';
			message += '	<div id="pop_green_line"></div>';
			message += '		<div id="default_width">';
			message += '			<div id="home_icon_pop1"><img src="'+juribase+'/images/newtemplate/organization_pop_lightbox.jpg" width="70" height="71" /></div>';
			message += '			<div id="default_width_80" class="top_margin_10px pop_header_text"><span>Hometrax for</span><br>Organizations and Groups</div>';
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_55" class="top_margin_10 popbody_text"><span>Hometrax is a FREE online service that promotes your message throughout our connected community.  At your request, your group can be suggested through our social network, permitting the community to view your group profile and your unique events.  Whether your group is public or private, Hometrax offers you a secure, convenient format to manage your activities, members and message.   Use Hometrax to:<div style="margin-left: 20px;"><ul><li>stay connected, reach new members, interact with other groups and share news</li><li>produce and display your event calendar and notify our communities</li><li>view other groups events and to avoid double booking</li><li>build communities around common interests</li><li>quickly distribute information and send messages to your members</li><li>generate online forums within your group</li></ul></div></span></div>';
			message += '			<div id="default_width_40">';
			message += '				<div id="pop_imag_organisations"></div>';
			message += '			</div>';	
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_95" class="top_margin_10 popbody_text"><a href="'+ juribase +'/index.php?option=com_content&view=article&id=210042"  style="border:0; color:#ff7f00;" >Join now for a FREE Hometrax account to take advantage of these powerful tools > </a></div>';
			message += '		</div>';
			message += '	</div>';
			
			cFrontPageWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 650 , 435 , '');
		},
		learnmorerelators:function(){
			var message ;
			message = '<div id="default_width">';
			message += '	<div id="pop_green_line"></div>';
			message += '		<div id="default_width">';
			message += 			'<div id="home_icon_pop1"><img src="'+juribase+'/images/newtemplate/realtors_pop_lightbox.png" width="70" height="71" /></div>';
			message += '			<div id="default_width_80" class="top_margin_10px pop_header_text"><span>Hometrax for</span><br>Realtors</div>';
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_55" class="top_margin_10 popbody_text"><span><p>You are always looking for ways to offer more value to your clients and create long term relationships.  Hometrax is a FREE service that allows you to offer current and new clients an innovative way to showcase their homes.</p><p>We believe every home has a special story sellers want to tell and buyers want to hear; the Hometrax home profile tells that story.  Invite your clients to join our useful, FREE online community and portray yourself in a highly visible and helpful way.  Use Hometrax to:</p><div style="margin-left: 20px;"><ul><li>create a profile to draw attention to your services</li><li>post homes for sale or rent and market open houses</li><li>highlight featured properties and advertise special offers</li><li>connect with other social media you already utilize</li><li>offer value added services to stay in touch with clients between transactions</li><li>strengthen listings with home stories, images and repair/improvement records</li><li>provide a record of businesses who have worked on the home</li><li>broaden your sphere of influence through our purposeful social network</li><li>invite clients to a useful, FREE service that helps them find and network with groups and businesses in their community</li></ul></div></span></div>';
			message += '			<div id="default_width_40">';
			message += '				<div id="pop_imag_relators"></div>';
			message += '			</div>';	
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_95" class="top_margin_10 popbody_text"><a href="'+ juribase +'/index.php?option=com_content&view=article&id=210042"  style="border:0; color:#ff7f00;" >Join now for a FREE Hometrax account to take advantage of these powerful tools > </a></div>';
			message += '		</div>';
			message += '	</div>';
			
			cFrontPageWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 650 , 550 , '');
		},
		learnmoreinsurance:function(){
			var message ;
			message = '<div id="default_width">';
			message += '	<div id="pop_green_line"></div>';
			message += '		<div id="default_width">';
			message += '			<div id="home_icon_pop1"><img src="'+juribase+'/images/newtemplate/insurance_agents_pop_lightbox.jpg" width="70" height="71" /></div>';
			message += '			<div id="default_width_80" class="top_margin_10px pop_header_text"><span>Hometrax for</span> Insurance Agents</div>';
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_55" class="top_margin_10 popbody_text"><span>Hometrax offers insurance companies a FREE service that connects with clients in a novel way.  Homeowners are able to create a home profile that lets them record a detailed list of household and personal items, greatly protecting their homes value.  Records are private and secure and may be conveniently updated and shared online with their agents.  Use Hometrax to:<div style="margin-left: 20px;"><ul><li>invite clients to Hometrax and be prominently displayed on their accounts</li><li>offer clients a helpful tool for finding services and events in their community</li><li>quickly spread your service message across the Hometrax social network</li><li>help homeowners create secure and accurate downloadable insurable item lists in their home profile</li><li>build long-term relationships with your clients through our client connection program</li><li>be suggested to new clients through our social network</li></ul></div></span></div>';
			message += '			<div id="default_width_40">';
			message += '				<div id="pop_imag_insurance"></div>';
			message += '			</div>';	
			message += '		</div>';
			message += '		<div id="default_width">';
			message += '			<div id="default_width_95" class="top_margin_10 popbody_text"><a href="'+ juribase +'/index.php?option=com_content&view=article&id=210042"  style="border:0; color:#ff7f00;" >Join now for a FREE Hometrax account to take advantage of these powerful tools > </a></div>';
			message += '		</div>';
			message += '	</div>';
			
			cFrontPageWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 650 , 430 , '');
		},
		learnmoregroups:function(){
			var message = "Groups that you join or start are summarized here. You are automatically a member of a Community Group where you have entered a home or the one chosen when you registered. You can view and join other Communities from Search Communities on the Quick Connect tool bar and view all the groups in a Community on the Community Details page. You will find Events and Forums and you can start your own Group.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmoreserviceproviders:function(){
			var message = "This is a summary of your Businesses. They are sorted by your Homes and Communities. Suggested Businesses are those your Connections have chosen. Check for Special Offers in various Communities. If you are a Business, a summary of your business and the status of your Client Connection Program and Special Offers programs display here.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmoreconnections:function(){
			var message = "This is the summary of your personal Connections in Hometrax. Go to Connections on the tool bar to manage your personal presence, your inbox, invite people and change privacy settings.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmoreforums:function(){
			var message = "This is the summary of posts from Group and Community Forums. Click on the the thread or reply. Check \"more\" and do not miss anything. Search for and join any Community and Group in which you have interest. Create a discussion to ask your community for an idea, reference, opinion or suggestion. Find responses to questions you have asked here or on your Connections page.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		learnmoreupdates:function(){
			var message = "These are actions taken by your Connections, Businesses and Groups. Updates keep you abreast of new Events, Special Offers, Business and Group activities. Click on these links to connect with what is new in your network.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Learn More' , 450 , 200 , '');
		},
		termsandconditions:function(){
			/*var message = "Enter terms and condition text here";*/
			var message = '<div id="default_width_content" class="top_margin_25"><div id="lipsum" style="margin-left: 0.3in; font-size: 9px"><!--StartFragment--><p style="font-size: 11pt"><font face="arial, helvetica, sans-serif" style="font-size: 12px" class="Apple-style-span">The Hometrax Terms of Use (&quot;Terms&quot;) govern our relationship with users of the Hometrax Web site and associated Hometrax services. The Terms derive from Hometrax s principles of respectful online community and productive services. Your use of the Hometrax site and services constitutes your acceptance of the Terms, which are stated below. The Terms may be modified periodically by posting a revised version of these terms on the Hometrax Web site. The Terms were last updated on 11/20/09.</font></p><p style="font-size: 11pt"><font face="arial, helvetica, sans-serif" style="font-size: 12px" class="Apple-style-span"><span style="font-family: Helvetica,Arial,sans-serif; color: #135cae; font-size: 13px; font-weight: bold" class="Apple-style-span"><a name="_Toc246529017" title="_Toc246529017"></a><span style="font-family: Arial; color: windowtext"><span>    1.<span style="font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">     </span></span></span><span style="font-family: Arial; color: windowtext">Privacy</span></span></font></p><p style="font-size: 11pt">&nbsp;</p><font face="Arial, Arial, sans-serif" size="3" class="Apple-style-span" color="#000000"><strong style="font-size: 12px; font-weight: normal"><p style="margin-left: 0.5in"><span style="font-family: Arial; font-size: 11pt"><span style="font-size: 12px; font-weight: normal" class="Apple-style-span">Your privacy is important to Hometrax. Please read and use the Privacy policy when making decisions about how to use Hometrax.</span></span></p><p style="margin-left: 0.5in"><font size="3" class="Apple-style-span"><span style="line-height: 6px; font-size: 13px" class="Apple-style-span"><strong><br /></strong></span></font></p><!--StartFragment--><p style="margin-left: 0.5in; font-size: 12px; font-weight: bold">2.  Using Hometrax </p><p style="margin-left: 0.5in"><font size="4" class="Apple-style-span"><span style="font-size: 12px" class="Apple-style-span">When you register with Hometrax, you must choose your own user name and password.</span></font></p><!--StartFragment--><p style="margin-left: 0.5in"><span style="line-height: 17px; font-size: 12px" class="Apple-style-span">You agree that you will refrain from using the site for purposes other than the site&acute;s stated use, which is to create community and services for homeowners that relate to home buying and selling, maintenance, insurance, building services, and the creation and strengthening of community through events listings, groups, business tools, etc. When you use Hometrax to review a business, you will abide by the stated guidelines, including respectful and factually accurate commentary and ratings. When you participate in groups through bulletin boards and other posting vehicles, or events, you agree that you will not use profanity, you will be respectful of other members in your language and behavior, and you will not divulge personal or confidential information about any other person or business. Failure to comply with these guidelines may result in</span> <span style="line-height: 17px; font-size: 12px" class="Apple-style-span">action by Hometrax, including but not limited to being banned from site use.</span></p><p style="margin-left: 0.5in; font-size: 12px"><font size="4" class="Apple-style-span"><span style="line-height: 17px; font-size: 12px" class="Apple-style-span">In using Hometrax site, you verify that you are at least 18 years old.</span></font></p><p style="margin-left: 0.5in; font-size: 12px">&nbsp;</p><!--StartFragment--><!--EndFragment--><!--EndFragment--><p>            <span style="font-family: Helvetica,Arial,sans-serif; color: #135cae; font-size: 13px; font-weight: bold" class="Apple-style-span"><a name="_Toc246529019" title="_Toc246529019"></a><span style="font-family: Arial; color: windowtext"><span>3.<span style="font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">     </span></span></span><span style="font-family: Arial; color: windowtext">Hometrax Services and Businesses</span></span></p><p style="margin-left: 0.5in; font-size: 12px">Hometrax is committed to making your Hometrax experience a positive one. Businesses who are listed on Hometrax are not prescreened, vetted or periodically reviewed by Hometrax. <span style="line-height: 17px; font-size: 12px" class="Apple-style-span">Hometrax does not check Business information to ensure that it is accurate when entered or at any time thereafter, nor does Hometrax check Business licenses to make sure they are legitimate or current. Hometrax does not verify that Businesses are registered businesses. Hometrax does not check Businesses for sex offender status, identity (social security, reverse phone look-up) verification, or legal judgements. Hometrax does not guarantee that service professionals meeting your specific needs will be available through Hometrax. Hometrax makes no guarantees or representations about the credentials, skills or quality of the job a service professional may provide if you choose to hire them. Hometrax does not endorse or recommend any particular business. Hometrax is not responsible for any service requested by you from a business. Any agreement you enter into with a business is explicitly and solely between you and the business; it is up to you to determine whether stated credentials and skills are valid. Hometrax recommends that you verify a business&acute license, credentials and reputation before engaging them for a project. Specifically, Hometrax recommends that you ask a business for a copy of its license. The businesses are not Hometrax employees or agents; Hometrax is not an employee or agent of the business. There is no contractual or implied relationship between Hometrax and any given business relating to the performance of work for customers. Hometrax does not guarantee that businesses are insured or bonded. Your rights in your business relationship are governed by the terms of your business contract and applicable laws. If you have a dispute with a business that is in any way connected with Hometrax you hereby release Hometrax from all damages and claims of every kind. Hometrax does not guarantee work done by a Business listed on Hometrax.</span></p><p style="font-size: 11pt"><!--StartFragment--><span style="line-height: 115%; font-family: Arial; font-size: 11pt">         <span style="line-height: 15px; font-family: Helvetica,Arial,sans-serif; color: #135cae; font-size: 13px; font-weight: bold" class="Apple-style-span"><a name="_Toc246529020" title="_Toc246529020"></a><span style="font-family: Arial; color: windowtext"><span>4.<span style="font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">     </span></span></span><span style="font-family: Arial; color: windowtext">Business Profiles and Reviews</span></span></span></p><p style="font-size: 11pt">&nbsp;</p><!--StartFragment--><p style="margin-left: 0.5in; font-size: 11pt"><font size="3" class="Apple-style-span"><span style="line-height: 17px; font-size: 12px" class="Apple-style-span"><span style="font-size: 12px" class="Apple-style-span">Businesses are invited by Hometrax to place a description of themselves and information about their services (as well as contact information) on Hometrax. This information is self-reported. Hometrax does not verify or review this information. You are invited to provide a review of work done for you by a Business, and to read reviews provided by others about Business. Hometrax reserves the right to edit or revise these reviews in any way, and to remove any reviews from the Hometrax site that do not comply with stated guidelines or common sense. The Hometrax guidelines for reviews are as follows:</span></span></font></p><span style="font-size: 15px" class="Apple-style-span"> <span style="white-space: pre" class="Apple-tab-span"> </span></span><br /><ul style="margin-left: 0.5in"><li style="font-size: 12px">Courteous relay of information specifically related to the work done by a Business.</li><li style="font-size: 12px">Factual and not editorial comments.</li><li style="font-size: 12px">No profanity.</li><li style="font-size: 12px">No more than 150 words.</li><li style="font-size: 12px">Businesses may respond to</li></ul><p>&nbsp;</p><p style="margin-left: 0.5in; font-size: 11pt"><font size="3" class="Apple-style-span"><span style="font-size: 12px" class="Apple-style-span">At its sole discretion, Hometrax may, but is not required to, remove reviews that contain any of the following as determined by Hometrax:</span></font></p><p style="margin-left: 0.5in; font-size: 11pt">&nbsp;</p><ul style="margin-left: 0.5in"><li style="font-size: 12px"><span style="font-size: 12px" class="Apple-style-span"><!--StartFragment--><span style="font-family: Arial; font-size: 12px">Profanity, obscenity, vulgarity, sexually explicit material, hate speech, harassment, offensive language, harmful or abusive language, political references or rhetoric, illegal activity or references to illegal activity, references that are not related to Business work or references that disparage Hometrax, Hometrax members, or Hometrax Businesses.</span></span></li></ul><span style="font-family: Arial; font-size: 12px"><!--StartFragment--><p style="margin-left: 0.5in">&nbsp;</p><p style="margin-left: 0.5in"><span style="font-family: Arial">Hometrax may hold, delay or otherwise designate a pending status for any review for any reason, including when a review reflects a dispute between a Business and Hometrax member, until the dispute is resolved.</span></p><p style="margin-left: 0.5in" class="MsoNormal"><span style="font-family: Arial">All reviews provided by Hometrax members reflect the opinion of the Hometrax member only and not of Hometrax, its owners or managers, shareholders, investors or employees, or of other Business or members.</span></p></span></strong></font></div><!--StartFragment--><h3 style="text-indent: -0.25in; margin-left: 0.75in"><a name="_Toc246529021" title="_Toc246529021"></a><span style="font-family: Arial; color: windowtext"><span>5.<span style="font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">     </span></span></span><span style="font-family: Arial; color: windowtext">Your Content and Information</span></h3><p style="margin-left: 0.8in"><span style="font-family: Arial">You will be asked to provide personal information on the Hometrax site. If you choose to provide information, you take responsibility for the information&acute;s accuracy and legality. You agree that you will maintain and update the accuracy of the information in a timely way and will respond in a timely way to any inquiries from Hometrax about the accuracy of your information.</span></p><p style="margin-left: 0.8in"><span style="font-family: Arial">You may also be invited by Hometrax to provide content and information when participating in specific services. By doing so, you represent that the content is your original work and / or you own the necessary rights to distribute, post, use, or otherwise make the content available on Hometrax. You guarantee that you are not violating any rights by providing the content or information on Hometrax and you take sole responsibility for any issues that arise from the content or information you have posted on Hometrax; you agree to indemnify, hold harmless and protect Hometrax from any and all claims, liabilities or costs relating to rights violations for content and information you provide.</span></p><p style="margin-left: 0.8in"><span style="font-family: Arial">Hometrax will not sell your personal information. Hometrax will, however, share your information with partners who offer services on Hometrax so that they may better target their communications. By providing your information you are expressly providing permission to Hometrax to share this information with businesses and other partners.</span></p><!--StartFragment--><h3 style="text-indent: -0.25in; margin-left: 0.75in"><a name="_Toc246529022" title="_Toc246529022"></a><span style="font-family: Arial; color: windowtext"><span>6.<span style="font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">     </span></span></span><span style="font-family: Arial; color: windowtext">Restrictions on Use of Content</span></h3><p style="margin-left: 0.8in"><span style="font-family: Arial">This site contains a variety of kinds of content, including but not limited to text, images, trademarks, data and other. This content is available for your use on the site and for related Hometrax activities. By using this site you agree that you will not sell or otherwise commercialize this content. While every effort is made to ensure that the content on the site is safe for use, you assume all risk for engaging in the site and content, and you agree that you are responsible for how you use of the content and for complying with all laws governing the content. </span></p><!--EndFragment--><p style="margin-left: 0.5in"> <strong>7</strong><span style="font-family: Helvetica,Arial,sans-serif; color: #135cae; font-size: 13px; font-weight: bold" class="Apple-style-span"><a name="_Toc246529023" title="_Toc246529023"></a><span style="font-family: Arial; color: windowtext"><span>.<span style="font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">     </span></span></span><span style="font-family: Arial; color: windowtext">Infringement of Rights</span></span></p><p style="margin-left: 0.8in"><span style="font-family: Arial"> The Hometrax site, including all content, is protected by intellectual property laws. You agree to abide by these laws. Hometrax has the right to terminate you on the site for any infringement of these laws.</span></p><p style="margin-left: 0.8in"><span style="line-height: normal; font-family: Arial; font-size: 12px">Any effort to misuse the Hometrax site, including hacking, phishing, copyright infringement, or posting of illegal or inappropriate material (as defined by Hometrax) will result in immediate action including but not limited to termination form the site.</span></p><!--StartFragment--><h3 style="text-indent: -0.25in; margin-left: 0.75in"><a name="_Toc246529024" title="_Toc246529024"></a><span style="font-family: Arial; color: windowtext"><span>8.<span style="font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">     </span></span></span><span style="font-family: Arial; color: windowtext">Links to Third Party Sites</span></h3><p style="margin-left: 0.8in"><span style="font-family: Arial">Hometrax is not responsible for content, function, safety, privacy or any other aspect of links to third party Web sites that take you off the Hometrax site. These links are provided as a customer service and are not endorsed by, managed by or updated by Hometrax.</span></p><h3 style="text-indent: -0.25in; margin-left: 0.75in"><a name="_Toc246529025" title="_Toc246529025"></a><span style="font-family: Arial; color: windowtext"><span>9.<span style="font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">     </span></span></span><span style="font-family: Arial; color: windowtext">General</span></h3><p style="margin-left: 0.8in"><span style="font-family: Arial">You agree to hold Hometrax harmless from any and all claims relating to use of, employment resulting from, work done in response to or other actions arising from use of the Hometrax site. </span></p><p style="margin-left: 0.8in"><span style="font-family: Arial">You acknowledge and agree that Hometrax services are provided to you on an &quot;as is&quot; basis. You may discontinue your use of Hometrax at any time; Hometrax may terminate its relationship with you at any time for any reason, including terminating your use of the Hometrax site. </span></p><p style="margin-left: 0.8in"><span style="font-family: Arial">Hometrax does not imply or guarantee any specific outcome resulting from use of the Hometrax site.</span></p><p style="margin-left: 0.8in"><span style="font-family: Arial">These terms are governed by the laws of the state of Washington.<span>  </span>Any<span>  </span>issues that arise will be mediated in accordance with those laws.</span></p><p><a name="screen" title="screen"></a><a name="corpAccount" title="corpAccount"></a><span style="font-family: Arial; font-size: 12px">&copy; 2009 Hometrax, Inc. All rights reserved.</span></p><!--EndFragment--><p style="margin-left: 0.5in">&nbsp;</p><!--EndFragment--><!--EndFragment--><div id="lipsum" style="font-size: 9px"><font face="Arial, Arial, sans-serif" size="3" class="Apple-style-span" color="#000000"><strong style="font-size: 12px; font-weight: normal"><br /><p>&nbsp;</p><p style="margin-left: 0.5in; font-size: 11pt">&nbsp;</p><p>&nbsp;</p></strong></font><!--EndFragment--></div></div>';
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Terms of Use' , 800 , 435 , '');
		},
		searchHomefromZip:function(){
			//var ajaxCall	= 'jax.call("community" , "frontpage,ajaxsearchHomefromZip" , "", location.href );';
			jax.call("community" , "frontpage,ajaxsearchHomefromZip" , "", location.href );
			//cFrontPageWindowShow( ajaxCall , '' , 430 , 400 );
			//jQuery('#cWindow').css("margin-top","100px");
			//jQuery('#cWindow').css("left","400px");
			
		},
		moregroup:function(flag){
			//var ajaxCall	= 'jax.call("community" , "frontpage,ajaxMoregroup");';
			//cFrontPageWindowShow( ajaxCall , '' , 430 , 400 );			
			// Flag 1 menas more and 0 means less
			jax.call("community" , "frontpage,ajaxMoregroup",flag);
		},
		morecommunitygroup:function(flag){
			jax.call("community" , "frontpage,ajaxMoreCommunitygroup",flag);
		},
		joinHometrax:function(){			
			var ajaxCall	= 'jax.call("community" , "frontpage,ajaxjoinHometrax" , "", location.href );';
			cCommunityWindowShow( ajaxCall , '' , 406 , 280 );
		}
	},
	events: {
		displayMyGroupsPopup:function(){
			var ajaxCall = 'jax.call("community" , "groups,ajaxDisplayMyGroupsPopup");';
			cCommunityWindowShow( ajaxCall , 'Choose Group(s) to Post Event' , 700 , 500 );
		},
		removevenue:function(eventID){ 
			var ajaxCall = 'jax.call("community" , "groups,removeEventVenue" , "' + eventID + '" );';
			cCommunityWindowShow( ajaxCall , 'Remove venue from an event' , 410 , 145 );
		}
	}
/** 
 * BEGIN CORE MOD
 */
	 ,
	 homepage: {
	 	learnMore_Main:function(){
			var message ;
			message = '<div id="default_width">';
			message += '		<div id="default_width">';
			message += '			<div id="default_width" class="top_margin_10 popbody_text"><span>Hometrax is an online community of homeowners, businesses and community groups connected by social networking.  Hometrax combines the tools for members to:<div style="margin-left: 20px;"><ul><li> create home profiles and record repairs and improvements; </li><li>create detailed household and personal insurance lists; </li><li>search for businesses;</li><li>create home specific business lists;</li><li>create business profiles;</li><li>create organization and group profiles; </li><li> network with their community about home related topics;</li><li>share their business experiences through ratings, reviews and networking and;</li><li>contribute to community event calendars and forums.</li></ul></div></span></div>';
			message += '		</div>';
			message += '	</div>';
					
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'About Hometrax' , 480 , 300 , '');
		},
		learnMore_HomeownersAndRenters:function(){
			var message = "Pending content.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Hometrax for Homwowners & Renters' , 450 , 200 , '');
		},
		learnMore_ServiceProviders:function(){
			var message = "Pending content.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Hometrax for Businesses' , 450 , 200 , '');
		},
		learnMore_DevelopersAndBuilders:function(){
			var message = "Pending content.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Hometrax for Developers & Builders' , 450 , 200 , '');
		},
		learnMore_OrganizationsAndGroups:function(){
			var message = "Pending content.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Hometrax for Organizations & Groups' , 450 , 200 , '');
		},
		learnMore_Realtors:function(){
			var message = "Pending content.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Hometrax for Realtors' , 450 , 200 , '');
		},
		learnMore_InsuranceAgents:function(){
			var message = "Pending content.";
			cCommunityWindowShow('jQuery(\'#cWindowContent\').html(\''+message+'\')' , 'Hometrax for Insurance Agents' , 450 , 200 , '');
		}
	 }
	 
/** 
 * END CORE MOD
 */
	
}

// close layer when click-out
jQuery(document).click( function() {
    joms.toolbar.close();
});

/* 
 * Auto Expanding Text Area (1.2.2)
 * by Chrys Bader (www.chrysbader.com)
 * chrysb@gmail.com
 *
 * Special thanks to:
 * Jake Chapa - jake@hybridstudio.com
 * John Resig - jeresig@gmail.com
 *
 * Copyright (c) 2008 Chrys Bader (www.chrysbader.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 *
 * NOTE: This script requires jQuery to work.  Download jQuery at www.jquery.com
 *
 */
 
(function(jQuery) {
		  
	var self = null;
 
	jQuery.fn.autogrow = function(o)
	{	
		return this.each(function() {
			new jQuery.autogrow(this, o);
		});
	};
	

    /**
     * The autogrow object.
     *
     * @constructor
     * @name jQuery.autogrow
     * @param Object e The textarea to create the autogrow for.
     * @param Hash o A set of key/value pairs to set as configuration properties.
     * @cat Plugins/autogrow
     */
	
	jQuery.autogrow = function (e, o)
	{
		this.options		  	= o || {};
		this.dummy			  	= null;
		this.interval	 	  	= null;
		this.line_height	  	= this.options.lineHeight || parseInt(jQuery(e).css('line-height'));
		this.min_height		  	= this.options.minHeight || parseInt(jQuery(e).css('min-height'));
		this.max_height		  	= this.options.maxHeight || parseInt(jQuery(e).css('max-height'));;
		this.textarea		  	= jQuery(e);
		
		if(this.line_height == NaN)
		  this.line_height = 0;
		
		// Only one textarea activated at a time, the one being used
		this.init();
	};
	
	jQuery.autogrow.fn = jQuery.autogrow.prototype = {
    autogrow: '1.2.2'
  };
	
 	jQuery.autogrow.fn.extend = jQuery.autogrow.extend = jQuery.extend;
	
	jQuery.autogrow.fn.extend({
						 
		init: function() {			
			var self = this;			
			this.textarea.css({overflow: 'hidden', display: 'block'});
			this.textarea.unbind('focus').unbind('blur');
			this.textarea.bind('focus', function() { self.startExpand() } ).bind('blur', function() { self.stopExpand() });
			this.checkExpand();	
		},
						 
		startExpand: function() {				
		  var self = this;
			this.interval = window.setInterval(function() {self.checkExpand()}, 400);
		},
		
		stopExpand: function() {
			clearInterval(this.interval);	
		},
		
		checkExpand: function() {
			
			if (this.dummy == null)
			{
				this.dummy = jQuery('<div></div>');
				this.dummy.css({
								'font-size'  : this.textarea.css('font-size'),
								'font-family': this.textarea.css('font-family'),
								'width'      : this.textarea.css('width'),
								'padding'    : this.textarea.css('padding'),
								'line-height': this.line_height + 'px',
								'overflow-x' : 'hidden',
								'position'   : 'absolute',
								'top'        : 0,
								'left'		 : -9999
								}).appendTo('body');
			}
			
			// Strip HTML tags
			var html = this.textarea.val().replace(/(<|>)/g, '');
			
			// IE is different, as per usual
			if (jQuery.browser.msie)
			{
				html = html.replace(/\n/g, '<BR>new');
			}
			else
			{
				html = html.replace(/\n/g, '<br>new');
			}
			
			if (this.dummy.html() != html)
			{
				this.dummy.html(html);	
				
				if (this.max_height > 0 && (this.dummy.height() + this.line_height > this.max_height))
				{
					this.textarea.css('overflow-y', 'auto');	
				}
				else
				{
					this.textarea.css('overflow-y', 'hidden');
					if (this.textarea.height() < this.dummy.height() + this.line_height || (this.dummy.height() < this.textarea.height()))
					{	
						this.textarea.animate({height: (this.dummy.height() + this.line_height) + 'px'}, 60);	
					}
				}
			}
		}
						 
	 });
})(jQuery);

function url()
{
	cWindowHide();
	window.location.href=juribase+'/index.php?option=com_community&view=friends&task=invite';	
}
