public static function initJSVariables()
{
if (!$GLOBALS['browser']->isMobile()) {
$code['conf'] = array('BASE_URI' => (string) Horde::url('', true, array('app' => 'ansel', 'append_session' => -1)));
$code['conf']['maps'] = $GLOBALS['conf']['maps'];
$code['conf']['pixeluri'] = (string) $GLOBALS['registry']->getServiceLink('pixel', 'ansel');
$code['conf']['markeruri'] = (string) Horde_Themes::img('photomarker.png');
$code['conf']['shadowuri'] = (string) Horde_Themes::img('photomarker-shadow.png');
$code['conf']['havetwitter'] = !empty($GLOBALS['conf']['twitter']['enabled']);
$code['ajax'] = new stdClass();
$code['widgets'] = new stdClass();
$GLOBALS['page_output']->addInlineJsVars(array('var Ansel' => $code));
}
}