$(document).ready(function(){if(document.getElementById('showUser')){if(document.getElementById('entityid')){if(document.getElementById('entityid').type=="select-one"){if(document.getElementById('countuser').value>0){document.getElementById('showUser').innerHTML=document.getElementById('entityid').options[document.getElementById('entityid').selectedIndex].text;}
else{document.getElementById('showUser').innerHTML="No user found.";}
if(document.getElementById('geoid')){dogeovalue(document.getElementById('geoid'));}}}}
checkreload();});function trim(str)
{return str.replace(/^\s+|\s+$/g,'');}
function IsNumeric(strString)
{var strValidChars="0123456789.";var strChar;var blnResult=true;if(strString.length==0)return false;for(i=0;i<strString.length&&blnResult==true;i++)
{strChar=strString.charAt(i);if(strValidChars.indexOf(strChar)==-1)
{blnResult=false;}}
return blnResult;}
function dochk(){if(trim(document.getElementById('reftxt').value)==''&&trim(document.getElementById('reftxt').value)==0){alert("Enter Refresh Value First");document.getElementById('refchk').checked=false;document.getElementById('reftxt').focus();return false;}
else if(trim(document.getElementById('reftxt').value)!=''){if(IsNumeric(trim(document.getElementById('reftxt').value))==false)
{alert("Enter Numeric Value");document.getElementById('refchk').checked=false;document.getElementById('reftxt').focus();return false;}}
var eid=0;var gid=0;var bread=0;if(document.getElementById('entityid'))
{if(document.getElementById('entityid').type=="select-one")
{eid=document.getElementById('entityid').options[document.getElementById('entityid').selectedIndex].value;}}
if(document.getElementById('groupid'))
{if(document.getElementById('groupid').type=="select-one")
{gid=document.getElementById('groupid').options[document.getElementById('groupid').selectedIndex].value;}}
if(document.getElementById('breadcrumb'))
{if(document.getElementById('breadcrumb').checked==true)
{bread=1;}}
if(document.getElementById('refchk').checked==false){var base_url=location.href.substring(0,location.href.lastIndexOf('?'));var t=trim(document.getElementById('reftxt').value);if(t==''){t=300;}
else if(t<60)
{t=60;}
document.getElementById('reftxt').disabled=true;hu=window.location.search.substring(1);gy=hu.split("&");var sustr='index.php?';var flag=0;var flag1=0;for(i=0;i<gy.length;i++){ft=gy[i].split("=");if(ft[0]=="refchk"){flag=1;}
else if(ft[0]=="reftxt"){flag=1;}
else if(ft[0]=="groupid"){flag=1;}
else if(ft[0]=="entityid"){flag=1;}
else if(ft[0]=="breadcrumb"){flag=1;}
else
{sustr+=ft[0]+"="+ft[1]+"&";}}
if(eid>0){if(bread>0){sustr+="entityid="+eid+"&breadcrumb=1";}
else{sustr+="entityid="+eid;}}
else if(gid>0)
{if(bread>0){sustr+="groupid="+eid+"&breadcrumb=1";}
else{sustr+="groupid="+eid;}}
else{if(bread>0){sustr+="&breadcrumb=1";}}
var new_url=sustr;window.location.href=new_url;}
else if(document.getElementById('refchk').checked==true){var base_url=location.href.substring(0,location.href.lastIndexOf('?'));var t=trim(document.getElementById('reftxt').value);if(t==''){t=300;}
else if(t<60)
{t=60;}
document.getElementById('reftxt').disabled=false;hu=window.location.search.substring(1);gy=hu.split("&");var sustr='index.php?';var flag=0;var flag1=0;for(i=0;i<gy.length;i++){ft=gy[i].split("=");if(ft[0]=="refchk"){flag=1;}
else if(ft[0]=="reftxt"){flag=1;}
else if(ft[0]=="groupid"){flag=1;}
else if(ft[0]=="entityid"){flag=1;}
else if(ft[0]=="breadcrumb"){flag=1;}
else
{sustr+=ft[0]+"="+ft[1]+"&";}}
if(eid>0){if(bread>0){sustr+="entityid="+eid+"&breadcrumb=1";}
else{sustr+="entityid="+eid;}
sustr+="&refchk=1&reftxt="+t;}
else if(gid>0)
{if(bread>0){sustr+="groupid="+eid+"&breadcrumb=1";}
else{sustr+="groupid="+eid;}
sustr+="&refchk=1&reftxt="+t;}
else{if(bread>0){sustr+="refchk=1&reftxt="+t+"&breadcrumb=1";}
else{sustr+="refchk=1&reftxt="+t;}}
var new_url=sustr;window.location.href=new_url;}}
function checkreload()
{var eid=0;var gid=0;var bread=0;if(document.getElementById('entityid'))
{if(document.getElementById('entityid').type=="select-one")
{eid=document.getElementById('entityid').options[document.getElementById('entityid').selectedIndex].value;}}
if(document.getElementById('groupid'))
{if(document.getElementById('groupid').type=="select-one")
{gid=document.getElementById('groupid').options[document.getElementById('groupid').selectedIndex].value;}}
if(document.getElementById('breadcrumb'))
{if(document.getElementById('breadcrumb').checked==true)
{bread=1;}}
if(document.getElementById('refchk')){if(document.getElementById('refchk').checked==true){var base_url=location.href.substring(0,location.href.lastIndexOf('?'));var t=trim(document.getElementById('reftxt').value);if(t==''){t=300;}
else if(t<60)
{t=60;}
document.getElementById('reftxt').disabled=true;hu=window.location.search.substring(1);gy=hu.split("&");var sustr='index.php?';var flag=0;var flag1=0;for(i=0;i<gy.length;i++){ft=gy[i].split("=");if(ft[0]=="refchk"){flag=1;}
else if(ft[0]=="reftxt"){flag=1;}
else if(ft[0]=="groupid"){flag=1;}
else if(ft[0]=="entityid"){flag=1;}
else if(ft[0]=="breadcrumb"){flag=1;}
else
{sustr+=ft[0]+"="+ft[1]+"&";}}
if(eid>0){if(bread>0){sustr+="entityid="+eid+"&breadcrumb=1";}
else{sustr+="entityid="+eid;}
sustr+="&refchk=1&reftxt="+t;}
else if(gid>0)
{if(bread>0){sustr+="groupid="+eid+"&breadcrumb=1";}
else{sustr+="groupid="+eid;}
sustr+="&refchk=1&reftxt="+t;}
else{if(bread>0){sustr+="refchk=1&reftxt="+t+"&breadcrumb=1";}
else{sustr+="refchk=1&reftxt="+t;}}
var new_url=sustr;setTimeout(function(){window.location.href=new_url;},t*1000);}else{setTimeout(reload1,300000);}}}
function reload1()
{var eid=0;var gid=0;var bread=0;if(document.getElementById('entityid'))
{if(document.getElementById('entityid').type=="select-one")
{eid=document.getElementById('entityid').options[document.getElementById('entityid').selectedIndex].value;}}
if(document.getElementById('groupid'))
{if(document.getElementById('groupid').type=="select-one")
{gid=document.getElementById('groupid').options[document.getElementById('groupid').selectedIndex].value;}}
if(document.getElementById('breadcrumb'))
{if(document.getElementById('breadcrumb').checked==true)
{bread=1;}}
var base_url=location.href.substring(0,location.href.lastIndexOf('?'));var t=trim(document.getElementById('reftxt').value);if(t==''){t=300;}
else if(t<60)
{t=60;}
document.getElementById('reftxt').disabled=true;hu=window.location.search.substring(1);gy=hu.split("&");var sustr='index.php?';var flag=0;var flag1=0;for(i=0;i<gy.length;i++){ft=gy[i].split("=");if(ft[0]=="groupid"){flag=1;}
else if(ft[0]=="entityid"){flag=1;}
else if(ft[0]=="breadcrumb"){flag=1;}
else
{sustr+=ft[0]+"="+ft[1]+"&";}}
if(eid>0){if(bread>0){sustr+="entityid="+eid+"&breadcrumb=1";}
else{sustr+="entityid="+eid;}}
if(gid>0)
{if(bread>0){sustr+="groupid="+eid+"&breadcrumb=1";}
else{sustr+="groupid="+eid;}}
if(bread>0){sustr+="breadcrumb=1";}
var new_url=sustr;window.location.href=new_url;}
function change(id)
{setTimeout(function(){identity=document.getElementById(id);if(identity.style.display=='block')
{identity.style.display="none";document.getElementById('togglleImage').src="templates/trackn/img/img-close-open.gif";}
else
{identity.style.display="block";document.getElementById('togglleImage').src="templates/trackn/img/img-open-close.gif";}},200);}
var JSON=JSON||{};(function(){function f(n){return n<10?'0'+n:n;}
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
v=partial.length===0?'[]':gap?'[\n'+gap+
partial.join(',\n'+gap)+'\n'+
mind+']':'['+partial.join(',')+']';gap=mind;return v;}
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+
mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
return str('',{'':value});};}
if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}
cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
throw new SyntaxError('JSON.parse');};}}());(function($){$.fn.easySlider=function(options){var defaults={prevId:'prevBtn',prevText:'Previous',nextId:'nextBtn',nextText:'Next',controlsShow:true,controlsBefore:'',controlsAfter:'',controlsFade:true,firstId:'firstBtn',firstText:'First',firstShow:false,lastId:'lastBtn',lastText:'Last',lastShow:false,vertical:false,speed:230,auto:false,pause:8500,continuous:false};var options=$.extend(defaults,options);this.each(function(){var obj=$(this);var s=$("li",obj).length;var w=$("li",obj).width();var h=$("li",obj).height();obj.height(h);obj.css("overflow","hidden");var ts=s-4;var t=0;$("ul",obj).css('width',s*w);if(!options.vertical)
{$("li",obj).css('float','left');}
if(options.controlsShow){var html=options.controlsBefore;if(options.firstShow)html+='';html+=' ';html+=' ';if(options.lastShow)html+=' ';html+=options.controlsAfter;$(obj).after(html);};$("a","."+options.nextId).click(function(){animate("next",true);});$("a","."+options.prevId).click(function(){animate("prev",true);});$("a","."+options.firstId).click(function(){animate("first",true);});$("a","."+options.lastId).click(function(){animate("last",true);});function animate(dir,clicked){var ot=t;switch(dir){case"next":t=(ot>=ts)?(options.continuous?0:ts):t+1;break;case"prev":t=(t<=0)?(options.continuous?ts:0):t-1;break;case"first":t=0;break;case"last":t=ts;break;default:break;};var diff=Math.abs(ot-t);var speed=diff*options.speed;if(!options.vertical){p=(t*w*-1);$("ul",obj).animate({marginLeft:p},speed);}else{p=(t*h*-1);$("ul",obj).animate({marginTop:p},speed);};if(!options.continuous&&options.controlsFade){$(".motionBlur").css("display","block");$("a","."+options.nextId).show();$("a","."+options.lastId).show();$("a","."+options.prevId).show();$("a","."+options.firstId).hide();if(t==ts){$(".motionBlur").css("display","none");$("a","."+options.nextId).hide();$("a","."+options.lastId).hide();}
else if(t==0){$(".motionBlur").css("display","none");$("a","."+options.prevId).hide();$("a","."+options.firstId).hide();}};if(clicked){clearTimeout(timeout);}
if(clicked)
{setTimeout(function(){$(".motionBlur").css("display","none");},280);}
if(options.auto&&dir=="next"&&!clicked){;timeout=setTimeout(function(){animate("next",false);},diff*options.speed+options.pause);};};var timeout;if(options.auto){;timeout=setTimeout(function(){animate("next",false);},options.pause);};if(!options.continuous&&options.controlsFade){$("a","."+options.prevId).show();$("a","."+options.firstId).show();};});};})(jQuery);

