
$(document).ready(function(){if($("#txtprofilecoreid").val()!=''){loadInnerContent();}
$.history.init(pageload,"");});function pageload(hash){if(hash=='trail'||hash=='mybar'||hash=='followers'||hash=='following'||hash=='fans'||hash=='brands'||hash=='quiz'||hash=='createquiz'||hash=='winnings'||hash=='contributionsquiz'||hash=='contributionsdrinks'||hash=='gallery'){if(hash){if($.browser.msie){hash=encodeURIComponent(hash);}
loadInnerContent();}else{loadInnerContent();}}}
function loadInnerContent(){var loggedInId=$("#txtgloballoggedinid").val();var profileCoreType='';profileCoreType=$("#txtprofilecoretype").val();var profileCoreId='';profileCoreId=$("#txtprofilecoreid").val();var profileCoreName='';profileCoreName=$("#txtprofilecorename").val();$("#txtglobaltrailrefreshcontext").val("");if(profileCoreType!=''){var hashUrl=window.location.hash;var firstChar=hashUrl.substring(0,1);if(firstChar!='#'){}
var restOfUrl=hashUrl.substring(1);var urlInParts=restOfUrl.split("/");var totalLength=urlInParts.length;var appendUrl='';var tabName='';var inReplyToId='';var inReplyToName='';var focusSection='';if(totalLength==0){window.location.href=$("#txtglobalbaseurl").val();}
else{tabName=urlInParts[0];for(var u=1;u<totalLength;u++){appendUrl+='/'+urlInParts[u];if(urlInParts[u]=='irtid'){inReplyToId=urlInParts[(u*1)+1];}
if(urlInParts[u]=='irtname'){inReplyToName=urlInParts[(u*1)+1];}}}
if(tabName==''){tabName='trail';}
var completeUrl=window.location.href;if(completeUrl.indexOf("/focus/")!=-1){var lastslash=completeUrl.lastIndexOf("/");var focusSection=completeUrl.substr(lastslash+1);}
switch(profileCoreType){case"user":var loadAjaxUrlForUser='';loadAjaxUrlForUser+=$("#txtglobalbaseurl").val();loadAjaxUrlForUser+='/userprofile';var targetLi='';$("#navigate_tab_user_trails").removeClass();$("#navigate_tab_user_bar").removeClass();$("#navigate_tab_user_people").removeClass();$("#navigate_tab_user_winnings").removeClass();$("#navigate_tab_user_contributions").removeClass();switch(tabName){case"trail":$("#txtglobaltrailrefreshcontext").val("set");loadAjaxUrlForUser+='/userprofiletrailcontent/userid/'+profileCoreId+'/username/'+profileCoreName;$("#navigate_tab_user_trails").addClass('on');targetLi='navigate_tab_user_trails';if(inReplyToId==''||inReplyToName==''){}
else{if(loggedInId!=''){$("#txtInReplyToId").val(inReplyToId);$("#txtInReplyToName").val(inReplyToName);$("#txtActualShoutBox").val("@"+inReplyToName+" ");onFocusChange();}}
document.title=$("#trailtitle").html();break;case"mybar":loadAjaxUrlForUser+='/userprofilebarcontent/userid/'+profileCoreId+'/username/'+profileCoreName+"/focus/"+focusSection;$("#navigate_tab_user_bar").addClass('on');targetLi='navigate_tab_user_bar';document.title=$("#mybartitle").html();break;case"followers":loadAjaxUrlForUser+='/userprofilefollowerscontent/userid/'+profileCoreId+'/username/'+profileCoreName;$("#navigate_tab_user_people").addClass('on');targetLi='navigate_tab_user_people';document.title=$("#followerstitle").html();break;case"following":loadAjaxUrlForUser+='/userprofilefollowingcontent/userid/'+profileCoreId+'/username/'+profileCoreName;$("#navigate_tab_user_people").addClass('on');targetLi='navigate_tab_user_people';document.title=$("#followingtitle").html();break;case"winnings":loadAjaxUrlForUser+='/userprofilewinningscontent/userid/'+profileCoreId+'/username/'+profileCoreName;$("#navigate_tab_user_winnings").addClass('on');targetLi='navigate_tab_user_winnings';document.title=$("#followingtitle").html();break;case"contributionsquiz":loadAjaxUrlForUser+='/userprofilequizcontributionscontent/userid/'+profileCoreId+'/username/'+profileCoreName;$("#navigate_tab_user_contributions").addClass('on');targetLi='navigate_tab_user_contributions';document.title=$("#quizcontrititle").html();break;case"contributionsdrinks":loadAjaxUrlForUser+='/userprofiledrinkscontributionscontent/userid/'+profileCoreId+'/username/'+profileCoreName;$("#navigate_tab_user_contributions").addClass('on');targetLi='navigate_tab_user_contributions';document.title=$("#drinkscontrititle").html();break;case"contributionsimages":loadAjaxUrlForUser+='/userprofileimagescontributionscontent/userid/'+profileCoreId+'/username/'+profileCoreName;$("#navigate_tab_user_contributions").addClass('on');targetLi='navigate_tab_user_contributions';document.title=$("#drinkscontrititle").html();break;default:$("#txtglobaltrailrefreshcontext").val("set");loadAjaxUrlForUser+='/userprofiletrailcontent/userid/'+profileCoreId+'/username/'+profileCoreName;$("#navigate_tab_user_trails").addClass('on');targetLi='navigate_tab_user_trails';document.title=$("#trailtitle").html();break;}
loadAjaxUrlForUser+=appendUrl;refreshTabContent(targetLi,loadAjaxUrlForUser,'');break;case"category":var loadAjaxUrlForCategory='';loadAjaxUrlForCategory+=$("#txtglobalbaseurl").val();loadAjaxUrlForCategory+='/categoryprofile';var targetLiCat='';$("#navigate_tab_category_trails").removeClass();$("#navigate_tab_category_fans").removeClass();$("#navigate_tab_category_brands").removeClass();$("#navigate_tab_category_quiz").removeClass();$("#navigate_tab_category_gallery").removeClass();if(focusSection!=''&&(focusSection=='catTag'||focusSection=='addDrinkWidget')){var $target=$("#"+focusSection);var targetOffset=$target.offset().top;if($.browser.opera){$('html').animate({scrollTop:targetOffset},1200);}
else{$('html,body').animate({scrollTop:targetOffset},1200);}}
switch(tabName){case"trail":$("#txtglobaltrailrefreshcontext").val("set");loadAjaxUrlForCategory+='/categoryprofiletrailcontent/catid/'+profileCoreId+'/catshortname/'+profileCoreName;$("#navigate_tab_category_trails").addClass('on');targetLiCat='navigate_tab_category_trails';document.title=$("#cattrailtitle").html();break;case"fans":loadAjaxUrlForCategory+='/categoryprofilefanscontent/catid/'+profileCoreId;$("#navigate_tab_category_fans").addClass('on');targetLiCat='navigate_tab_category_fans';document.title=$("#catfanstitle").html();break;case"brands":loadAjaxUrlForCategory+='/categoryprofilebrandscontent/catid/'+profileCoreId;$("#navigate_tab_category_brands").addClass('on');targetLiCat='navigate_tab_category_brands';document.title=$("#catbrandstitle").html();break;case"quiz":loadAjaxUrlForCategory=$("#txtglobalbaseurl").val()+'/quiz/playquiz/drinkid/'+profileCoreId;$("#navigate_tab_category_quiz").addClass('on');targetLiCat='navigate_tab_category_quiz';document.title=$("#catbrandstitle").html();break;case"createquiz":loadAjaxUrlForCategory=$("#txtglobalbaseurl").val()+'/quiz/createquiz/drinkid/'+profileCoreId;$("#navigate_tab_category_quiz").addClass('on');targetLiCat='navigate_tab_category_quiz';document.title=$("#catbrandstitle").html();break;case"gallery":loadAjaxUrlForCategory=$("#txtglobalbaseurl").val()+'/gallery/gallerycore/drinkId/'+profileCoreId;$("#navigate_tab_category_gallery").addClass('on');targetLiCat='navigate_tab_category_gallery';document.title=$("#catbrandstitle").html();break;default:$("#txtglobaltrailrefreshcontext").val("set");loadAjaxUrlForCategory+='/categoryprofiletrailcontent/catid/'+profileCoreId+'/catshortname/'+profileCoreName;$("#navigate_tab_category_trails").addClass('on');targetLiCat='navigate_tab_category_trails';document.title=$("#cattrailtitle").html();break;}
loadAjaxUrlForCategory+=appendUrl;refreshTabContent(targetLiCat,loadAjaxUrlForCategory,'');break;case"brand":var loadAjaxUrlForBrand='';loadAjaxUrlForBrand+=$("#txtglobalbaseurl").val();loadAjaxUrlForBrand+='/brandprofile';var targetLiBrand='';$("#navigate_tab_brand_trails").removeClass();$("#navigate_tab_brand_fans").removeClass();$("#navigate_tab_brand_quiz").removeClass();$("#navigate_tab_brand_gallery").removeClass();if(focusSection!=''&&(focusSection=='brandTag'||focusSection=='addDrinkWidget')){var $target=$("#"+focusSection);var targetOffset=$target.offset().top;if($.browser.opera){$('html').animate({scrollTop:targetOffset},1200);}
else{$('html,body').animate({scrollTop:targetOffset},1200);}}
switch(tabName){case"trail":$("#txtglobaltrailrefreshcontext").val("set");loadAjaxUrlForBrand+='/brandprofiletrailcontent/brandid/'+profileCoreId+'/brandshortname/'+profileCoreName;$("#navigate_tab_brand_trails").addClass('on');targetLiBrand='navigate_tab_brand_trails';document.title=$("#brandtrailtitle").html();break;case"fans":loadAjaxUrlForBrand+='/brandprofilefanscontent/brandid/'+profileCoreId;$("#navigate_tab_brand_fans").addClass('on');targetLiBrand='navigate_tab_brand_fans';document.title=$("#brandfanstitle").html();break;case"quiz":loadAjaxUrlForBrand=$("#txtglobalbaseurl").val()+'/quiz/playquiz/drinkid/'+profileCoreId;$("#navigate_tab_brand_quiz").addClass('on');targetLiBrand='navigate_tab_brand_quiz';document.title=$("#brandfanstitle").html();break;case"createquiz":loadAjaxUrlForBrand=$("#txtglobalbaseurl").val()+'/quiz/createquiz/drinkid/'+profileCoreId;$("#navigate_tab_brand_quiz").addClass('on');targetLiBrand='navigate_tab_brand_quiz';document.title=$("#brandfanstitle").html();break;case"gallery":loadAjaxUrlForBrand=$("#txtglobalbaseurl").val()+'/gallery/gallerycore/drinkId/'+profileCoreId;$("#navigate_tab_brand_gallery").addClass('on');targetLiBrand='navigate_tab_brand_gallery';document.title=$("#brandfanstitle").html();break;default:$("#txtglobaltrailrefreshcontext").val("set");loadAjaxUrlForBrand+='/brandprofiletrailcontent/brandid/'+profileCoreId+'/brandshortname/'+profileCoreName;$("#navigate_tab_brand_trails").addClass('on');targetLiBrand='navigate_tab_brand_trails';document.title=$("#brandtrailtitle").html();break;}
loadAjaxUrlForBrand+=appendUrl;refreshTabContent(targetLiBrand,loadAjaxUrlForBrand,'');break;case"company":var loadAjaxUrlForCompany='';loadAjaxUrlForCompany+=$("#txtglobalbaseurl").val();loadAjaxUrlForCompany+='/companyprofile';var targetLiCompany='';if(focusSection!=''&&(focusSection=='cmpTag'||focusSection=='addCompanyWidget')){var $target=$("#"+focusSection);var targetOffset=$target.offset().top;if($.browser.opera){$('html').animate({scrollTop:targetOffset},1200);}
else{$('html,body').animate({scrollTop:targetOffset},1200);}}
switch(tabName){case"brands":loadAjaxUrlForCompany+='/companyprofilebrandscontent/companyid/'+profileCoreId;$("#navigate_tab_company_brands").addClass('on');targetLiCompany='navigate_tab_company_brands';document.title=$("#companybrandstitle").html();break;default:loadAjaxUrlForCompany+='/companyprofilebrandscontent/companyid/'+profileCoreId;$("#navigate_tab_company_brands").addClass('on');targetLiCompany='navigate_tab_company_brands';document.title=$("#companybrandstitle").html();break;}
loadAjaxUrlForCompany+=appendUrl;refreshTabContent(targetLiCompany,loadAjaxUrlForCompany,'');break;default:window.location.href=$("#txtglobalbaseurl").val();break;}}}
var tabsJsonObject={"user":[{"tab":"trails"},{"tab":"bar"},{"tab":"people"},{"tab":"winnings"},{"tab":"contributions"}],"userprivate":[{"tab":"inbox"},{"tab":"outbox"}],"category":[{"tab":"trails"},{"tab":"fans"},{"tab":"brands"},{"tab":"quiz"},{"tab":"gallery"}],"brand":[{"tab":"trails"},{"tab":"fans"},{"tab":"quiz"},{"tab":"gallery"}],"company":[{"tab":"brands"}],"landing":[{"tab":"whatsbuzzing"},{"tab":"finddrinks"},{"tab":"quiz"},{"tab":"gallerylanding"}],"invite":[{"tab":"invitecontacts"},{"tab":"inviteemails"}]};function tabSwitch(currentMainContext,targetMainContext,targetSubContext,ajaxify,extraParams)
{$("#div_datacontent").removeClass('stItemBoxQuiz');var targetSelectedLi="navigate_tab_"+targetMainContext+"_"+targetSubContext;var jsonObject='';var appendParams='';var ajaxRequestUrl='';var v='';var t='';$("#txtglobaltrailrefreshcontext").val("");if(ajaxify)
{switch(targetMainContext)
{case"user":for(t=0;t<tabsJsonObject.user.length;t++){$("#navigate_tab_"+currentMainContext+"_"+tabsJsonObject.user[t].tab).removeClass();}
$("#"+targetSelectedLi).addClass('on');jsonObject=eval('('+extraParams+')');for(v=0;v<jsonObject.params.length;v++)
{appendParams+="/"+jsonObject.params[v].name+"/"+jsonObject.params[v].value;}
ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofiletrailcontent"+appendParams;switch(targetSubContext)
{case"trails":$("#txtglobaltrailrefreshcontext").val("set");ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofiletrailcontent"+appendParams;location.hash='#trail';$.history.load('trail');document.title=$("#trailtitle").html();break;case"bar":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofilebarcontent"+appendParams;location.hash='#mybar';$.history.load('mybar');document.title=$("#mybartitle").html();break;case"people":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofilefollowerscontent"+appendParams;location.hash='#followers';$.history.load('followers');document.title=$("#followerstitle").html();break;case"followers":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofilefollowerscontent"+appendParams;location.hash='#followers';$.history.load('followers');document.title=$("#followerstitle").html();break;case"following":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofilefollowingcontent"+appendParams;location.hash='#following';$.history.load('following');document.title=$("#followingtitle").html();break;case"winnings":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofilewinningscontent"+appendParams;location.hash='#winnings';$.history.load('winnings');document.title=$("#followingtitle").html();break;case"contributions":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofilequizcontributionscontent"+appendParams;location.hash='#contributionsquiz';$.history.load('contributionsquiz');document.title=$("#quizcontrititle").html();break;case"contributionsquiz":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofilequizcontributionscontent"+appendParams;location.hash='#contributionsquiz';$.history.load('contributionsquiz');document.title=$("#quizcontrititle").html();break;case"contributionsdrinks":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofiledrinkscontributionscontent"+appendParams;location.hash='#contributionsdrinks';$.history.load('contributionsdrinks');document.title=$("#drinkscontrititle").html();break;case"contributionsimages":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofileimagescontributionscontent"+appendParams;location.hash='#contributionsimages';$.history.load('contributionsimages');document.title=$("#drinkscontrititle").html();break;}
refreshTabContent(targetSelectedLi,ajaxRequestUrl,currentMainContext);break;case"userprivate":for(t=0;t<tabsJsonObject.userprivate.length;t++){$("#navigate_tab_"+currentMainContext+"_"+tabsJsonObject.userprivate[t].tab).removeClass();}
$("#"+targetSelectedLi).addClass('on');jsonObject=eval('('+extraParams+')');for(v=0;v<jsonObject.params.length;v++)
{appendParams+="/"+jsonObject.params[v].name+"/"+jsonObject.params[v].value;}
ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofileinboxcontent"+appendParams;switch(targetSubContext)
{case"inbox":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofileinboxcontent"+appendParams;document.title="stirthemix.com | Received Messages";break;case"outbox":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/userprofile/userprofileoutboxcontent"+appendParams;document.title="stirthemix.com | Sent Messages";break;}
refreshTabContent(targetSelectedLi,ajaxRequestUrl,currentMainContext);break;case"category":for(t=0;t<tabsJsonObject.category.length;t++){$("#navigate_tab_"+currentMainContext+"_"+tabsJsonObject.category[t].tab).removeClass();}
$("#"+targetSelectedLi).addClass('on');jsonObject=eval('('+extraParams+')');for(v=0;v<jsonObject.params.length;v++)
{appendParams+="/"+jsonObject.params[v].name+"/"+jsonObject.params[v].value;}
ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/categoryprofile/categoryprofiletrailcontent"+appendParams;switch(targetSubContext)
{case"trails":$("#txtglobaltrailrefreshcontext").val("set");ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/categoryprofile/categoryprofiletrailcontent"+appendParams;location.hash='#trail';$.history.load('trail');document.title=$("#cattrailtitle").html();break;case"fans":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/categoryprofile/categoryprofilefanscontent"+appendParams;location.hash='#fans';$.history.load('fans');document.title=$("#catfanstitle").html();break;case"brands":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/categoryprofile/categoryprofilebrandscontent"+appendParams;location.hash='#brands';$.history.load('brands');document.title=$("#catbrandstitle").html();break;case"quiz":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/quiz/playquiz"+appendParams;location.hash='#quiz';$.history.load('quiz');document.title=$("#catbrandstitle").html();break;case"gallery":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/gallery/gallerycore"+appendParams;location.hash='#gallery';$.history.load('gallery');document.title=$("#catbrandstitle").html();break;}
refreshTabContent(targetSelectedLi,ajaxRequestUrl,currentMainContext);break;case"brand":for(t=0;t<tabsJsonObject.brand.length;t++){$("#navigate_tab_"+currentMainContext+"_"+tabsJsonObject.brand[t].tab).removeClass();}
$("#"+targetSelectedLi).addClass('on');jsonObject=eval('('+extraParams+')');for(v=0;v<jsonObject.params.length;v++)
{appendParams+="/"+jsonObject.params[v].name+"/"+jsonObject.params[v].value;}
ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/brandprofile/brandprofiletrailcontent"+appendParams;switch(targetSubContext)
{case"trails":$("#txtglobaltrailrefreshcontext").val("set");ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/brandprofile/brandprofiletrailcontent"+appendParams;location.hash='#trail';$.history.load('trail');document.title=$("#brandtrailtitle").html();break;case"fans":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/brandprofile/brandprofilefanscontent"+appendParams;location.hash='#fans';$.history.load('fans');document.title=$("#brandfanstitle").html();break;case"quiz":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/quiz/playquiz"+appendParams;location.hash='#quiz';$.history.load('quiz');document.title=$("#brandfanstitle").html();break;case"gallery":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/gallery/gallerycore"+appendParams;location.hash='#gallery';$.history.load('gallery');document.title=$("#brandfanstitle").html();break;}
refreshTabContent(targetSelectedLi,ajaxRequestUrl,currentMainContext);break;case"company":for(t=0;t<tabsJsonObject.company.length;t++){$("#navigate_tab_"+currentMainContext+"_"+tabsJsonObject.company[t].tab).removeClass();}
$("#"+targetSelectedLi).addClass('on');jsonObject=eval('('+extraParams+')');for(v=0;v<jsonObject.params.length;v++)
{appendParams+="/"+jsonObject.params[v].name+"/"+jsonObject.params[v].value;}
ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/companyprofile/companyprofilebrandscontent"+appendParams;switch(targetSubContext)
{case"brands":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/companyprofile/companyprofilebrandscontent"+appendParams;location.hash='#brands';document.title=$("#companybrandstitle").html();break;}
refreshTabContent(targetSelectedLi,ajaxRequestUrl,currentMainContext);break;case"landing":for(t=0;t<tabsJsonObject.landing.length;t++){$("#navigate_tab_"+currentMainContext+"_"+tabsJsonObject.landing[t].tab).removeClass();}
$("#"+targetSelectedLi).addClass('on');jsonObject=eval('('+extraParams+')');for(v=0;v<jsonObject.params.length;v++)
{appendParams+="/"+jsonObject.params[v].name+"/"+jsonObject.params[v].value;}
ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/index/buzzeventcontent"+appendParams;switch(targetSubContext)
{case"whatsbuzzing":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/index/buzzeventcontent"+appendParams;document.title="stirthemix.com | What's Buzzing";break;case"finddrinks":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/drinks/finddrinks"+appendParams;document.title="stirthemix.com | Find Drinks";break;case"quiz":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/quiz/sitequiz"+appendParams;document.title="stirthemix.com | Quiz";$("#div_datacontent").addClass('stItemBoxQuiz');break;case"gallerylanding":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/gallery/gallerylanding"+appendParams;document.title="stirthemix.com | Gallery";break}
refreshTabContent(targetSelectedLi,ajaxRequestUrl,currentMainContext);break;case"invite":for(t=0;t<tabsJsonObject.landing.length;t++){$("#navigate_tab_"+currentMainContext+"_"+tabsJsonObject.invite[t].tab).removeClass();}
$("#"+targetSelectedLi).addClass('on');jsonObject=eval('('+extraParams+')');for(v=0;v<jsonObject.params.length;v++)
{appendParams+="/"+jsonObject.params[v].name+"/"+jsonObject.params[v].value;}
ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/invite/invitecontacts"+appendParams;switch(targetSubContext)
{case"invitecontacts":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/invite/invitecontacts"+appendParams;break;case"inviteemails":ajaxRequestUrl=$("#txtglobalbaseurl").val()+"/invite/inviteemails"+appendParams;break;}
refreshTabContent(targetSelectedLi,ajaxRequestUrl,currentMainContext);break;default:break;}}
return false;}
function refreshTabContent(targetSelectedLiId,ajaxRequestUrl,currentMainContext)
{var currentDivid="div_datacontent";$("#"+currentDivid).html('<img src="'+$("#txtglobalbaseurl").val()+'/images/loading-img1.gif" border="0" class="loading" />');$.ajax
({type:'GET',url:ajaxRequestUrl,complete:function(XMLHttpRequest,textStatus){if(XMLHttpRequest.status==302){window.location.href=$("#txtglobalbaseurl").val()+"/user/signin";}},success:function(response)
{$("#"+currentDivid).html(response);if(currentMainContext=='landing'){}},failure:function(response)
{$("#"+currentDivid).html("There was a error please try again");}});}