From: "Saved by Windows Internet Explorer 8" Subject: Future of rural financial counselling guaranteed Date: Wed, 4 May 2011 08:18:40 +1000 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----=_NextPart_000_0000_01CC0A33.DFCF33D0" X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18417 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01CC0A33.DFCF33D0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Location: http://www.abc.net.au/rural/news/content/201105/s3207007.htm Future= of rural financial counselling guaranteed

ABC Rural

Future of rural financial counselling guaranteed

Wednesday, 04/05/2011

The Federal Government has confirmed that funding = for the=20 Rural Financial Counselling Service will be continued.

Funding for the service is due to run out in = July, and=20 counsellors have lobbied in Canberra for its renewal.

Agriculture Minister Joe Ludwig says next week's = Budget=20 will include funding for the service for a further four years.

The government will provide $54.9 million over = that time in=20 grants to the 14 state and regional organisations that currently deliver = the=20 RFCS services.

This includes $13.3 million in funding next year = and a=20 further $41.6 million from 2012-13 to 2014-15.

"Rural financial counsellors provide a wide range = of=20 information to help farmers in rural and regional Australia identify = financial=20 and business options and negotiate with their lenders," Senator Ludwig = said.

=20

The Federal Government = drought bus=20 visiting Bicheno in northern Tasmania in June, 2010. Rural counsellers = have been=20 kept busy advising farmers after drought, floods and cyclones. = (Rose Grant)

Audio

The Federal Government says funding for the Rural = Financial=20 Counselling Service will be continued

Funding for the service is due to run out in July, = and=20 counsellors have lobbied for its renewal in Canberra. Federal = Agriculture=20 minister Joe Ludwig told reporter Mary Goode that next week's Budget = will extend=20 the program for another four years

"); document.write(""); ///constructor to create a new SiteLifeProxy function SiteLifeProxy(url) { // User Configurable Properties - these can be set at any time // your apiKey, this value must be set! this.apiKey =3D null; =20 this.siteLifeDomainOverride =3D null; this.siteLifeServerBaseOverride =3D null; this.customerCSSOverride =3D null; this.customerForumPagePathOverride =3D '/ugc/community/forums.html'; this.gcid =3D "Widgets1.0"; // sniff the browser for custom behaviors this.__isExplorer =3D = navigator.userAgent.toLowerCase().indexOf('msie') !=3D -1; this.__isSafari =3D = navigator.userAgent.toLowerCase().indexOf('safari') !=3D -1; this.__isMac =3D navigator.platform.toLowerCase().indexOf('mac') = !=3D -1; this.__isMacIE =3D this.__isMac && this.__isExplorer; =20 // if enabled, spit out debug information through alert() this.debug =3D false; =20 // used to track the id of the handler expecting the results from = the immediately preceeding method invocation // this is used only for testing purposes this.lastHandlerId =3D ""; =20 // Methods You can Overide // // OnSuccess(returnValue) - is passed the return value at the end of = a successful call, default does nothing // OnError(msg) - is passed an error message if a problem occurs // OnDebug(msg) - is called when debugging is enabled =20 this.__baseUrl =3D url; this.__sendInvokeCount =3D 0; =20 this.__eventHandlers =3D new Object(); }; SiteLifeProxy.prototype.AddEventHandler =3D function (event_name, = callback) { var eventList =3D this.__eventHandlers[event_name]; if (!eventList){ eventList =3D new Array(); this.__eventHandlers[event_name] =3D eventList; } eventList.push(callback); }; SiteLifeProxy.prototype.FireEvent =3D function (event_name) { var func; var handlers; if(handlers =3D this.__eventHandlers[event_name]) { var A =3D new Array(); for (var i =3D 1; i < = this.FireEvent.arguments.length; i++){ A[i - 1] =3D = this.FireEvent.arguments[i];} for(var x=3D0;x 0) { name =3D c.substring(0, eqIndex); value =3D c.substring(eqIndex + 1); if (name.toLowerCase() =3D=3D 'hd') { value =3D unescape(value); value =3D value.split('|'); =09 return value[0]; } } } return null; } function createSrcUrl(baseUrl, url, userId, gcid, currentTime) { return srcUrl =3D baseUrl + "/Stats/Tracker.gif" + "?plckUrl=3D" + = encodeURIComponent(url) + "&plckUserId=3D" + userId + "&plckGcid=3D" + = gcid + "&plckCurrentTime=3D" + currentTime; } SiteLifeProxy.prototype.__InsertTrackerNode =3D function(baseUrl, = requestUrl, userIdTrckr, gcid, currentTime) { // add script node for tracker if (document.getElementById('slImgNodeTrckr') =3D=3D=3D null) { var trackImgNode =3D document.createElement('img'); trackImgNode.setAttribute('id', "slImgNodeTrckr"); trackImgNode.setAttribute('src', createSrcUrl(gSiteLife.__baseUrl, = requestUrl, userIdTrckr, gcid, currentTime)); if (trackImgNode.style.setAttribute) { trackImgNode.style.setAttribute('display', 'none'); } else { trackImgNode.setAttribute('style', 'display:none'); } document.getElementsByTagName('body')[0].appendChild = (trackImgNode); } } SiteLifeProxy.prototype.__Send =3D function(url, scriptToUse, = callbackName, args) { this.OnDebug("_Send " + url); // setup some items for tracker var requestUrl =3D location.href; var userIdTrckr =3D getCurrentUserFromCookie(); var me =3D this; =20 function gLoadScript(url, callbackName) { var script =3D document.createElement('script'); var baseUrl =3D gSiteLife.__baseUrl; script.setAttribute('type', 'text/javascript'); script.setAttribute('charset', 'utf-8'); script.setAttribute('src', url + (callbackName ? '&EVENT_ID=3D' + = callbackName : '')); document.getElementsByTagName('head')[0].appendChild (script); } =20 function initializeTracking() { var d =3D new Date(); =09 // We are using jQuery's object detection to determine if the browser = is ready for us // to insert our stat tracker node. // Mozilla, Opera and webkit nightlies currently support this event if (document.addEventListener) { // Use the handy event callback document.addEventListener( "DOMContentLoaded", function(){=0A= document.removeEventListener( "DOMContentLoaded", arguments.callee, = false );=0A= me.__InsertTrackerNode(gSiteLife.__baseUrl, requestUrl, userIdTrckr, = me.gcid, d.getTime());=0A= }, false ); =09 // If IE event model is used } else if (document.attachEvent) { // ensure firing before onload,=0A= // maybe late but safe also for iframes=0A= document.attachEvent("onreadystatechange", function(){=0A= if ( document.readyState =3D=3D=3D "complete" ) {=0A= document.detachEvent( "onreadystatechange", arguments.callee );=0A= me.__InsertTrackerNode(gSiteLife.__baseUrl, requestUrl, = userIdTrckr, me.gcid, d.getTime());=0A= }=0A= });=0A= =0A= // If IE and not an iframe=0A= // continually check to see if the document is ready=0A= if ( document.documentElement.doScroll && window =3D=3D window.top ) = (function(){=0A= =0A= try {=0A= // If IE is used, use the trick by Diego Perini=0A= // http://javascript.nwbox.com/IEContentLoaded/=0A= document.documentElement.doScroll("left");=0A= } catch( error ) {=0A= setTimeout( arguments.callee, 0 );=0A= return;=0A= }=0A= =0A= // and execute any waiting functions=0A= me.__InsertTrackerNode(gSiteLife.__baseUrl, requestUrl, userIdTrckr, = me.gcid, d.getTime());=0A= })(); }=09 } =20 function bind(_function, _this, _arguments) { var f =3D function() { _function.apply(_this, _arguments); }; f['__Bound'] =3D true; return f; }; var func; if ((typeof callbackName =3D=3D 'string') && (func =3D = this.__eventHandlers[callbackName]) && (typeof func =3D=3D 'function') = && !func['__Bound']) { this.__eventHandlers[callbackName] =3D bind(func, this, args); } =20 //append our various parameters as necessary url =3D this.__AppendUrlValues(url); this.OnDebug("_Send (updated) " + url); // add the script node to the document if (document.createElement && ! this.__isMacIE) { gLoadScript(url, callbackName); if (gSiteLife.ViewTrackingEnabled) { initializeTracking(); } return; } // could fall back to sync at this point, but will bust if the page = is already loaded this.OnError("No support for async in this browser"); } SiteLifeProxy.prototype.Logout =3D function(ScriptToUse, IsRestPage) { var plckRest =3D IsRestPage ? true : false; this.__Send(this.__baseUrl + '/Utility/Logout?plckRedirectUrl=3D' + = escape(window.location.href) + '&plckRest=3D' + plckRest, ScriptToUse); return false; } SiteLifeProxy.prototype.AddLoadEvent =3D function(func) { if(window.addEventListener){ window.addEventListener("load", func, false); }else{ if(window.attachEvent){ window.attachEvent("onload", func); }else{ if(document.getElementById){ var oldonload =3D window.onload; if (typeof window.onload !=3D 'function') { window.onload =3D func; } else { window.onload =3D function() { if (oldonload) { oldonload(); } func(); }}}}}} SiteLifeProxy.prototype.AdInsertHelper =3D function() { for(var src in gSiteLife.__adsToInsert) { if(src =3D=3D "extend") continue; var dest =3D gSiteLife.__adsToInsert[src]; var parent =3D document.getElementById(dest); var newChild =3D document.getElementById(src); if( ! parent || ! newChild ) {continue; } parent.replaceChild( newChild, document.getElementById(dest + = "Child")); newChild.style.display =3D "block"; parent.style.display =3D "block"; } } SiteLifeProxy.prototype.InsertAds =3D function(source, destination) { gSiteLife.__adsToInsert =3D new Object(); for(ii=3D0; ii< this.InsertAds.arguments.length; ii+=3D2) { = gSiteLife.__adsToInsert[this.InsertAds.arguments[ii]] =3D = this.InsertAds.arguments[ii+1];} this.AddLoadEvent(gSiteLife.AdInsertHelper); } SiteLifeProxy.prototype.TitleTag =3D function() { var titleTag =3D document.getElementById("plckTitleTag"); return titleTag ? titleTag.innerText || titleTag.textContent : null; } SiteLifeProxy.prototype.WriteDiv =3D function(id, divClass) { var cssClass =3D divClass ? divClass : ""; document.write('
'); = return id; } SiteLifeProxy.prototype.InnerHtmlWrite =3D function(elementId, = innerContents ) { var el =3D document.createElement("div"); try { if(document.location.href.indexOf("debug=3Dtrue") > -1) { el.innerHTML +=3D "
 ? 
" + = innerContents + "
"; } else { el.innerHTML +=3D innerContents; el.style.display =3D "inline"; } var destDiv =3D document.getElementById(elementId); while (destDiv.childNodes.length >=3D 1) { destDiv.removeChild(destDiv.childNodes[0]); } =20 destDiv.appendChild(el); } catch (error) { alert(elementId + " Error " + error.number + ": " + = error.description); } } SiteLifeProxy.prototype.SortTimeStampDescending =3D = "TimeStampDescending"; SiteLifeProxy.prototype.SortTimeStampAscending =3D "TimeStampAscending"; SiteLifeProxy.prototype.SortRecommendationsDescending =3D = "RecommendationsDescending"; SiteLifeProxy.prototype.SortRecommendationsAscending =3D = "RecommendationsAscending"; SiteLifeProxy.prototype.SortRatingDescending =3D "RatingDescending"; SiteLifeProxy.prototype.SortRatingAscending =3D "RatingAscending"; SiteLifeProxy.prototype.SortAlphabeticalAscending =3D = "AlphabeticalAscending"; SiteLifeProxy.prototype.SortAlphabeticalDescending =3D = "AlphabeticalDescending"; SiteLifeProxy.prototype.KeyTypeExternalResource =3D "ExternalResource"; =20 SiteLifeProxy.prototype.PersonaHeaderRequest =3D function(UserId) { var url =3D this.__baseUrl + = '/Persona/PersonaHeader?plckElementId=3DpersonaHDest&plckUserId=3D'+ = UserId; this.__Send(url, "personaHeaderScript", 'persona:header', = arguments); } SiteLifeProxy.prototype.PersonaHeader =3D function(UserId) { this.WriteDiv("personaHDest", "Persona_Main"); this.AddEventHandler('persona:header', function() { = gSiteLife.ShowBadges(); }); this.PersonaHeaderRequest(UserId); } SiteLifeProxy.prototype.PersonaHeaderInbox =3D function() { // if DAAPI proxy is not present, fail gracefully if (!document.getElementById('PrivateMessageInbox') || = !window.RequestBatch || !window.PrivateMessageFolderList) { var pmContainer =3D = document.getElementById('PersonaHeader_PrivateMessageContent'); if (pmContainer) { pmContainer.style.display =3D 'none'; } return; } var rb =3D new RequestBatch(); rb.AddToRequest(new PrivateMessageFolderList()); rb.BeginRequest(serverUrl, function(responseBatch) { var count =3D ''; try { if (responseBatch && responseBatch.Messages && = responseBatch.Messages.length && responseBatch.Messages[0].Message = =3D=3D 'ok') { var folders =3D = responseBatch.Responses[0].PrivateMessageFolderList.FolderList; for (var i =3D 0; i < folders.length; i++) { var f =3D folders[i]; if (f.FolderID =3D=3D 'Inbox') { count =3D f.UnreadMessageCount; = break; } } } } catch (e) {} var inboxStr =3D "Inbox ({0})"; var idx =3D inboxStr.indexOf("{0}"); if (inboxStr =3D=3D '' || idx >=3D -1) inboxStr =3D inboxStr.substring(0, idx) + count + = inboxStr.substring(idx+3); var inbox =3D document.getElementById('PrivateMessageInbox'); inbox.innerHTML =3D inboxStr; if (count > 0) inbox.style.fontWeight =3D 'bold'; }); } SiteLifeProxy.prototype.Persona =3D function(UserId) { this.WriteDiv("personaDest", "Persona_Main"); var action =3D this.GetParameter("plckPersonaPage"); if(action && (typeof this[action] =3D=3D 'function')) = this[action](UserId); else this.PersonaHome(UserId); } SiteLifeProxy.prototype.LoadPersonaPage =3D function(PageName, UserId) { var params =3D new Object(); params['plckPersonaPage'] =3D PageName; = params['plckUserId'] =3D UserId; params['UID'] =3D UserId; for(ii=3D2; ii< this.LoadPersonaPage.arguments.length; ii+=3D2) = { params[this.LoadPersonaPage.arguments[ii]] =3D = this.LoadPersonaPage.arguments[ii+1];} this.ReloadPage(params); return false; } SiteLifeProxy.prototype.PersonaHome =3D function(UserId) { var me =3D this; this.AddEventHandler('persona:home:complete', function() { me.PopulateGroupsDiv(UserId, 1); me.ShowLeaderboards(); }); return this.PersonaSend('PersonaHome', 'personaDest', = 'personaScript', UserId, null, 'persona:home:complete'); } SiteLifeProxy.htmlEncode =3D function(str){ // Fix HTML var ret =3D str; var div =3D document.createElement('div'); var text =3D document.createTextNode(str); div.appendChild(text); ret =3D new String(div.innerHTML); // The above doesn't take care of quotes. ret =3D ret.replace(/"/g, '"'); return ret; }; SiteLifeProxy.prototype.PopulateGroupsDiv =3D function(UserId, OnPage) { // check for DAAPI objects; if not there, fail gracefully if (window.RequestBatch && window.CommunityGroupMembershipPage && = window.UserKey) { var requestBatch =3D new RequestBatch(); requestBatch.AddToRequest(new CommunityGroupMembershipPage(new = UserKey(UserId+""), 8, OnPage, "TimeStampAscending", "Member")); = requestBatch.BeginRequest("http://pluck.abc.net.au/ver1.0/Direct/Process"= , function(responseBatch) { if (responseBatch.Responses.length > 0 && = responseBatch.Responses[0].CommunityGroupMembershipPage) { // create the div that will house all this info var groupsDiv =3D document.createElement('div'); groupsDiv.className =3D 'PersonaStyle_ItemContainer'; var groupsContainer =3D = document.getElementById('PersonaStyle_GroupsContainer'); // Check groupsContainer is null because = PersonaStyle_GroupContainer may be absent due to private persona files. if (groupsContainer !=3D null) { groupsContainer.appendChild(groupsDiv); var groupBaseUrl =3D = "http://www.abc.net.au/ugc/community/groups.htm"; var groupMembershipPage =3D = responseBatch.Responses[0].CommunityGroupMembershipPage; var groupsHtml =3D "
Groups
"; groupsHtml +=3D "
"; for (var index =3D 0; index < = groupMembershipPage.CommunityGroupMemberships.length; index++) { var currentGroup =3D = groupMembershipPage.CommunityGroupMemberships[index].CommunityGroup; // if current group is private and user is = non-member, don't display var display =3D true; if (currentGroup.CommunityGroupVisibility =3D=3D = 'Private') { display =3D = (currentGroup.RequestingUsersMembershipTier !=3D 'NonMember' && = currentGroup.RequestingUsersMembershipTier !=3D 'Banned'); } if (display) { // Look for any query parameters that are = already using ? var groupUrlResults =3D = groupBaseUrl.match(/\?/); if (groupUrlResults !=3D null) { var groupUrl =3D groupBaseUrl + = "&slGroupKey=3D" + currentGroup.CommunityGroupKey.Key; } else { var groupUrl =3D groupBaseUrl + = "?slGroupKey=3D" + currentGroup.CommunityGroupKey.Key; } groupsHtml = +=3D ""; } } //Pagination for Group List groupsHtml +=3D "

"; groupsHtml +=3D "
"; groupsDiv.innerHTML =3D groupsHtml; while(groupsContainer.hasChildNodes()) { = groupsContainer.removeChild(groupsContainer.childNodes[0]); } groupsContainer.appendChild(groupsDiv); } } }); } // fire any other events this.FireEvent('persona:home'); } SiteLifeProxy.prototype.WatchItem =3D = function(Controller,Method,WatchKey, targetDiv) { var url =3D this.__baseUrl + '/'+Controller+'/' + Method + '?' + = 'plckWatchKey=3D' + WatchKey + '&plckElementId=3D' + targetDiv + = '&plckWatchUrl=3D' + this.EscapeValue(window.location.href); this.__Send(url, "AddWatchScript"); return false; } SiteLifeProxy.prototype.PersonaRemoveWatchItem=3D function(UserId, = WatchKey, Div, View) { return this.PersonaSend('PersonaRemoveWatchItem', Div, = 'personaScript', UserId, 'plckWatchView=3D' + View + '&plckWatchKey=3D' = + WatchKey); } SiteLifeProxy.prototype.PersonaAddFriend=3D function(UserId) { return this.PersonaSend('PersonaAddFriend', 'personaHDest', = 'personaScript', UserId); } SiteLifeProxy.prototype.PersonaConnectionAddFriend =3D function(UserId) = { return this.PersonaSend('PersonaConnectionAddFriend', 'personaDest', = 'personaScript', UserId, null, 'persona:connections'); } SiteLifeProxy.prototype.PersonaRemoveFriend =3D function(UserId, Friend, = Div, View, Expanded, confirmMsg) { if(!Expanded) Expanded =3D "false"; if (confirm(confirmMsg) =3D=3D true) { return this.PersonaSend('PersonaRemoveFriend', Div, 'personaScript', = UserId, 'plckFriendView=3D' + View + '&plckFriend=3D' + Friend + = '&plckExpanded=3D' + Expanded); } return false; } SiteLifeProxy.prototype.PersonaRemovePendingFriend =3D function(UserId, = PendingFriend, Div, confirmMsg) { if (confirm(confirmMsg) =3D=3D true) { return this.PersonaSend('PersonaRemovePendingFriend', Div, = 'personaScript', UserId, 'plckPendingFriend=3D' + PendingFriend); } return false; } SiteLifeProxy.prototype.PersonaAddPendingFriend =3D function(UserId, = PendingFriend, Div) { return this.PersonaSend('PersonaAddPendingFriend', Div, = 'personaScript', UserId, 'plckPendingFriend=3D' + PendingFriend); } SiteLifeProxy.prototype.PersonaMessages =3D function(UserId) { var AdParams =3D this.GetParameter('plckCurrentPage') ? = 'plckCurrentPage=3D' + this.GetParameter('plckCurrentPage') : ""; var scrl =3D this.GetParameter('plckScrollToAnchor'); if(scrl){ = if(AdParams) {AdParams +=3D'&';} AdParams +=3D 'plckScrollToAnchor=3D' + = scrl;} if(this.GetParameter('plckMessageSubmitted')){if(AdParams) {AdParams = +=3D'&';} AdParams +=3D 'plckMessageSubmitted=3D' + = this.GetParameter('plckMessageSubmitted');} return this.PersonaSend('PersonaMessages', 'personaDest', = 'personaScript', UserId, AdParams, 'persona:messages'); } SiteLifeProxy.prototype.PersonaComments =3D function(UserId) { var AdParams =3D this.GetParameter('plckCurrentPage') ? = 'plckCurrentPage=3D' + this.GetParameter('plckCurrentPage') : ""; return this.PersonaSend('PersonaComments', 'personaDest', = 'personaScript', UserId, AdParams, 'persona:comments'); } SiteLifeProxy.prototype.PersonaBlog =3D function(UserId) { var AdParams =3D this.GetParameter('plckCurrentPage') ? = 'plckCurrentPage=3D' + this.GetParameter('plckCurrentPage') : ""; if(AdParams) {AdParams +=3D'&';} AdParams +=3D 'plckBlogId=3D' + = UserId; var url =3D this.__baseUrl + = '/PersonaBlog/PersonaBlog?plckElementId=3DpersonaDest&plckUserId=3D'+ = UserId + '&' + AdParams; this.__Send(url, 'personaScript', 'persona:blog', arguments); return false; } SiteLifeProxy.prototype.PersonaProfile =3D function(UserId) { return this.PersonaSend('PersonaProfile', 'personaDest', = 'personaScript', UserId, null, 'persona:profile'); } SiteLifeProxy.prototype.PersonaWatchListPaginate =3D function(UserId, = pageNum) { return this.PersonaPaginate('WatchList', pageNum, UserId); } SiteLifeProxy.prototype.PersonaFriendsPaginate =3D function(UserId, = pageNum) { var AdParam =3D "plckFullFriendsList=3Dtrue"; return this.PersonaPaginate('Friends', pageNum, UserId, AdParam); } SiteLifeProxy.prototype.PersonaFriendsExpand=3D function(UserId) { var url =3D this.__baseUrl + = '/Persona/PersonaFriends?plckFullFriendsList=3Dtrue&plckFriendsPageNum=3D= 0&plckElementId=3DPersonaFriendsDest&plckUserId=3D'+ UserId; this.__Send(url, 'PersonaFriendsScript'); return false; } SiteLifeProxy.prototype.PersonaFriendsCollapse=3D function(UserId, = pageNum) { var url =3D this.__baseUrl + = '/Persona/PersonaFriends?plckFullFriendsList=3Dfalse&plckFriendsPageNum=3D= 0&plckElementId=3DPersonaFriendsDest&plckUserId=3D'+ UserId; this.__Send(url, 'PersonaFriendsScript'); return false; } SiteLifeProxy.prototype.PersonaPendingFriendsPaginate =3D = function(UserId, pageNum) { var AdParam =3D "plckPendingFriendsPageNum=3D" + pageNum; return this.PersonaPaginate('Friends', 0, UserId,AdParam); } SiteLifeProxy.prototype.PersonaMessagesPreviewPaginate =3D = function(UserId, pageNum) { return this.PersonaPaginate('MessagesPreview', pageNum, UserId); } SiteLifeProxy.prototype.PersonaMessageRemove =3D function(UserId, = pageNum, MessageKey, confirmMsg) { if (confirm(confirmMsg) =3D=3D true) { return this.PersonaSend('PersonaRemoveMessage', 'personaDest', = 'PersonaMessagesPageScript', UserId, 'plckCurrentPage=3D'+ pageNum + = '&plckMessageKey=3D'+MessageKey); } return false; } SiteLifeProxy.prototype.PersonaSend =3D function(ApiName, DestDiv, = ScriptName, UserId, AddParams, eventId){ var url =3D this.__baseUrl + '/Persona/' + ApiName + = '?plckElementId=3D' + DestDiv + '&plckUserId=3D'+ UserId; if(AddParams) url +=3D '&' + AddParams; this.__Send(url, ScriptName, eventId, arguments); return false; } SiteLifeProxy.prototype.PersonaPaginate =3D function(ApiName, PageNum, = UserId, AddParams){ var url =3D this.__baseUrl + '/Persona/Persona' + ApiName + '?plck' = + ApiName + 'PageNum=3D' + PageNum + '&plckElementId=3DPersona' + = ApiName + 'Dest&plckUserId=3D'+ UserId; if(AddParams) url +=3D '&' + AddParams; this.__Send(url, 'Persona'+ ApiName + 'Script'); return false; } SiteLifeProxy.prototype.PersonaPhotoSend =3D function(ApiName, DestDiv, = ScriptName, UserId, AddParams, eventId){ var url =3D this.__baseUrl + '/PersonaPhoto/' + ApiName + = '?plckElementId=3D' + DestDiv + '&plckUserId=3D'+ UserId; if(AddParams) url +=3D '&' + AddParams; this.__Send(url, ScriptName, eventId, arguments); return false; } SiteLifeProxy.prototype.PersonaMostRecent =3D function(UserId, PhotoID, = DestDiv) { return this.PersonaPhotoSend('PersonaMostRecent', DestDiv, = 'personaScript', UserId,'plckPhotoID=3D' + PhotoID); } SiteLifeProxy.prototype.PersonaCommunityGroupsPaginate =3D = function(UserId, PageNum){ return this.PersonaPaginate('CommunityGroups', PageNum, UserId); } SiteLifeProxy.prototype.PersonaCreateGallery =3D function(UserId) { return this.PersonaPhotoSend('UserGalleryCreate', = 'personaDestPhoto', 'personaScript', UserId); } SiteLifeProxy.prototype.PersonaEditGallery =3D = function(UserId,GalleryID) { return this.PersonaPhotoSend('UserGalleryEdit', 'userGalleryDest', = 'personaScript', UserId,'plckGalleryID=3D' + GalleryID); } SiteLifeProxy.prototype.PersonaUploadToUserGallery =3D = function(GalleryId) { var url =3D this.__baseUrl + = '/Photo/PhotoUpload?plckElementId=3DuserGalleryDest&plckGalleryID=3D'+ = GalleryId; this.__Send(url); return false; } SiteLifeProxy.prototype.PersonaPhotos =3D function(UserId) { return this.PersonaPhotoSend('PersonaPhotos', 'personaDest', = 'personaScript', UserId, null, 'persona:photos'); } SiteLifeProxy.prototype.PersonaAllPhotos =3D function(UserId) { return this.PersonaPhotoSend('PersonaAllPhotos', 'personaDest', = 'personaScript', UserId); } SiteLifeProxy.prototype.PersonaGalleryPhoto =3D function(UserId, = plckFindCommentKey) { var findCommentKey =3D gSiteLife.ReadFindCommentKey(findCommentKey, = "widget:personaGalleryPhoto"); return this.PersonaPhotoSend('PersonaGalleryPhoto', 'personaDest', = 'personaScript', UserId, 'plckFindCommentKey=3D' + findCommentKey, = "widget:personaGalleryPhoto"); } SiteLifeProxy.prototype.PersonaMyRecentPhotos =3D = function(UserId,ElementId, PageNum) { return this.PersonaPhotoSend('PersonaMyRecentPhotos', ElementId, = 'personaScript', UserId,'plckPageNum=3D' + PageNum); } SiteLifeProxy.prototype.PersonaGallery =3D = function(UserId,GalleryId,PageNum) { if(!PageNum){ PageNum =3D gSiteLife.GetParameter("plckPageNum") ? = gSiteLife.GetParameter("plckPageNum") : 0; } if(!GalleryId) { GalleryId =3D gSiteLife.GetParameter("plckGalleryID"); } return this.PersonaPhotoSend('PersonaGallery', 'personaDest', = 'personaScript', UserId,'plckGalleryID=3D'+ GalleryId + = '&plckPageNum=3D' + PageNum); } SiteLifeProxy.prototype.UserGalleryList =3D function(UserId,ElementId, = PageNum) { return this.PersonaPhotoSend('UserGalleryList', ElementId, = 'personaScript', UserId,'plckPageNum=3D' + PageNum); } SiteLifeProxy.prototype.PersonaGallerySubmissions =3D = function(UserId,ElementId, PageNum){ return this.PersonaPhotoSend('PersonaGallerySubmissions', = ElementId, 'personaScript', UserId,'plckPageNum=3D' + PageNum); } SiteLifeProxy.prototype.PersonaGalleryPhoto =3D function(UserId, = plckFindCommentKey) { var findCommentKey =3D gSiteLife.ReadFindCommentKey(findCommentKey, = "widget:personaPhoto"); var photoid =3D gSiteLife.GetParameter('plckPhotoID'); return this.PersonaPhotoSend('PersonaGalleryPhoto', = 'personaDest','personaScript', UserId,'&plckPhotoID=3D' +photoid + = '&plckFindCommentKey=3D' +findCommentKey, "widget:personaPhoto"); } SiteLifeProxy.prototype.PersonaRecentGalleryPhoto =3D function(UserId) { var photoid =3D gSiteLife.GetParameter('plckPhotoID'); return this.PersonaPhotoSend('PersonaRecentGalleryPhoto', = 'personaDest','personaScript', UserId,'&plckPhotoID=3D' +photoid); } SiteLifeProxy.prototype.LoadPersonaGalleryPage =3D = function(UserId,GalleryID) { var params =3D new Object(); params['plckPersonaPage'] =3D = 'PersonaGallery'; params['plckUserId'] =3D UserId; params['UID'] =3D UserId; params['plckGalleryID'] =3D GalleryID; this.ReloadPage(params); return false; } SiteLifeProxy.prototype.LoadPersonaPhotoPage =3D = function(UserId,PhotoID) { var params =3D new Object(); params['plckPersonaPage'] =3D = 'PersonaGalleryPhoto'; params['plckUserId'] =3D UserId; params['UID'] =3D UserId; params['plckPhotoID'] =3D PhotoID; this.ReloadPage(params); return false; } SiteLifeProxy.prototype.LoadPersonaRecentPhotoPage =3D = function(UserId,PhotoID) { var params =3D new Object(); params['plckPersonaPage'] =3D = 'PersonaRecentGalleryPhoto'; params['plckUserId'] =3D UserId; params['UID'] =3D UserId; params['plckPhotoID'] =3D PhotoID; this.ReloadPage(params); return false; } var fbHelpDialogTimeout; SiteLifeProxy.prototype.ShowFacebookHelpDialog =3D function(icon){ var x =3D 0; var y =3D icon.clientHeight/2; do { x +=3D icon.offsetLeft; y +=3D icon.offsetTop; } while(icon =3D icon.offsetParent); var fb_div =3D document.getElementById("Persona_FacebookHelpDialog"); fb_div.style.position =3D "absolute"; fb_div.style.display =3D "block"; // position div to the left of icon. var newX =3D x - fb_div.clientWidth; var newY =3D y - Math.floor(fb_div.clientHeight/2); fb_div.style.left =3D newX + "px"; fb_div.style.top =3D newY + "px"; return false; } SiteLifeProxy.prototype.HideFacebookHelpDialog =3D function(){ var fb_div =3D document.getElementById("Persona_FacebookHelpDialog"); fb_div.style.display =3D "none"; } SiteLifeProxy.prototype.CopyRssUrlToClipboard =3D function(){ rssUrl =3D document.getElementById("rssUrl"); copy(rssUrl); return false; } /* note: doesn't work with flash 10 */ function copy(inElement) { if (inElement.createTextRange) { var range =3D inElement.createTextRange(); if (range) range.execCommand('Copy'); } else { var flashcopier =3D 'flashcopier'; if(!document.getElementById(flashcopier)) { var divholder =3D document.createElement('div'); divholder.id =3D flashcopier; document.body.appendChild(divholder); } document.getElementById(flashcopier).innerHTML =3D ''; var divinfo =3D ''; document.getElementById(flashcopier).innerHTML =3D divinfo; } } SiteLifeProxy.prototype.UpdateExternalUserId =3D = function(ExternalSiteName, ExternalSiteUserId) { var adParam =3D this.BaseAdParam(); adParam +=3D "&externalSiteName=3D" + ExternalSiteName; adParam +=3D "&externalSiteUserId=3D" + ExternalSiteUserId; return this.PersonaSend('UpdateExternalUserId', 'personaHDest', = 'personaScript', '', adParam); } SiteLifeProxy.prototype.ShowLeaderboards =3D function() { var me =3D this; var insertLeaderboards =3D function(retryCount) { if (retryCount > 10) { return; } if (typeof(retryCount) =3D=3D=3D 'undefined') { retryCount =3D 0; } var lbWidgetDiv =3D document.getElementById('PersonaLeaderboards'); if (lbWidgetDiv) { var userKey =3D = document.getElementById('PersonaLeaderboardsKeyContainer').value; slGetUserLeaderboardKey =3D function() { return userKey; } window.slLeaderboardsWidgetDiv =3D = document.getElementById('PersonaLeaderboards_Container'); var lbInsertionScript =3D document.createElement('script'); lbInsertionScript.type =3D 'text/javascript'; lbInsertionScript.src =3D = 'http://pluck.abc.net.au/ver1.0/Persona/LeaderboardParams?plckUserId=3D' = + userKey; = document.getElementsByTagName('head')[0].appendChild(lbInsertionScript); } else { setTimeout(function() { insertLeaderboards(retryCount + 1); }, 100); } } insertLeaderboards(); } SiteLifeProxy.prototype.ShowBadges =3D function() { var me =3D this; var insertBadges =3D function(retryCount) { try { if (retryCount > 10) { return; } if (typeof(retryCount) =3D=3D=3D 'undefined') { retryCount =3D 0; } var bdWidgetDiv =3D document.getElementById('PersonaBadges'); if (bdWidgetDiv) { var userKey =3D = document.getElementById('PersonaBadgesKeyContainer').value; slGetUserBadgesKey =3D function() { return userKey; } window.slBadgesWidgetDiv =3D = document.getElementById('PersonaBadges_Container'); var bdInsertionScript =3D document.createElement('script'); bdInsertionScript.type =3D 'text/javascript'; bdInsertionScript.src =3D = 'http://pluck.abc.net.au/ver1.0/Persona/BadgesParams?plckUserId=3D' + = userKey; = document.getElementsByTagName('head')[0].appendChild(bdInsertionScript); } else { setTimeout(function() { insertBadges(retryCount + 1); }, 100); } } catch (e) { alert(e.message); } } insertBadges(); } SiteLifeProxy.prototype.PersonaConnections =3D function(UserId){ var AdParams =3D ""; =20 return this.PersonaSend('PersonaConnections', 'personaDest', = 'personaScript', UserId, AdParams, 'persona:connections'); } SiteLifeProxy.prototype.UpdateTwitterPrefs =3D function(UserId, = tweetOnPersona, tweetComments) { return this.PersonaSend('UpdateTwitterPrefs', 'personaDest', = 'personaScript', UserId, '?tweetMyComments=3D' + tweetComments + = '&personaTwitterWidget=3D' + tweetOnPersona); } SiteLifeProxy.prototype.UpdateYahooPrefs =3D function(UserId, = yahooComments) { return this.PersonaSend('UpdateYahooPrefs', 'personaDest', = 'personaScript', UserId, '?yahooMyComments=3D' + yahooComments); } SiteLifeProxy.prototype.UpdateLinkedInPrefs =3D function(UserId, = linkedInComments) { return this.PersonaSend('UpdateLinkedInPrefs', 'personaDest', = 'personaScript', UserId, '?LinkedInMyComments=3D' + linkedInComments); } SiteLifeProxy.prototype.TextCounter =3D function(textarea, counterID, = maxLen, defaultMsg) { var cnt =3D document.getElementById(counterID); if (textarea.value.length > maxLen) { textarea.value =3D textarea.value.substring(0, maxLen); return false; } var currentCnt =3D maxLen - textarea.value.length; cnt.innerHTML =3D currentCnt + " characters remaining"; } =0A= SiteLifeProxy.prototype.SolicitPhoto =3D function(galleryID) { var elementId =3D 'plcksolicit' + galleryID; this.WriteDiv(elementId); var url =3D this.__baseUrl + '/Photo/SolicitPhoto?plckElementId=3D' = + elementId + '&plckGalleryID=3D' +galleryID; this.__Send(url); return false; } SiteLifeProxy.prototype.PhotoUpload =3D function() { var elementId =3D 'plcksubmit'; this.WriteDiv(elementId); var galleryID =3D gSiteLife.GetParameter('plckGalleryID'); var url =3D this.__baseUrl + '/Photo/PhotoUpload?plckElementId=3D' + = elementId + '&plckGalleryID=3D' +galleryID; this.__Send(url); return false; } SiteLifeProxy.prototype.PublicGallery =3D function() { var elementId =3D 'plckgallery'; this.WriteDiv(elementId); var galleryID =3D gSiteLife.GetParameter('plckGalleryID'); var pageNum =3D gSiteLife.GetParameter('plckPageNum'); =09 var url =3D this.__baseUrl + '/Photo/PublicGallery?plckElementId=3D' = + elementId + '&plckGalleryID=3D' +galleryID + '&plckPageNum=3D' = +pageNum; this.__Send(url); return false; } SiteLifeProxy.prototype.GalleryPhoto =3D function() { var elementId =3D 'plckphoto'; this.WriteDiv(elementId); var photoid =3D gSiteLife.GetParameter('plckPhotoID'); var findCommentKey =3D gSiteLife.ReadFindCommentKey(null, = "widget:galleryPhoto"); var url =3D this.__baseUrl + '/Photo/GalleryPhoto?plckElementId=3D' = + elementId + '&plckPhotoID=3D' +photoid + '&plckFindCommentKey=3D' + = findCommentKey; this.__Send(url, null, "widget:galleryPhoto"); return false; } SiteLifeProxy.prototype.PublicGalleries =3D function() { var elementId =3D 'plckgalleries'; this.WriteDiv(elementId); var pageNum =3D gSiteLife.GetParameter('plckPageNum') ? = gSiteLife.GetParameter('plckPageNum') : "0"; var url =3D this.__baseUrl + = '/Photo/PublicGalleries?plckElementId=3D' + elementId + = '&plckPageNum=3D' + pageNum; this.__Send(url); return false; } SiteLifeProxy.prototype.PhotoRecommend =3D = function(targetid,recommendDiv,isGallery) { var url =3D this.__baseUrl + '/Photo/Recommend?plckElementId=3D' + = recommendDiv + '&plckTargetid=3D' +targetid + '&plckIsGallery=3D' = +isGallery ; this.__Send(url); return false; } =0A= //