/** * @(#) $RCSfile$ $Revision$ $Date$ * * Copyright 2003 Orgdot AS. All Rights Reserved. * http://dev.swfit.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. *//** * Get any query string configuration of the flash movie. * * @author      Olaf Havnes * @version     $Revision$ $Date$ * @since       SWFIT2.0 */function getSearchVars (){    arr = new Array ();    arr [0] = new Array ();    arr [1] = new Array ();    str = document.location.search;    if (str.indexOf ('?') == 0)    {        str = str.substring (1);            len = 0;        str_ = str;        where = -1;        while ( (where = str_.indexOf ("=")) > -1)         {            str_ = str_.substring (where + 1);            len ++;        }        for (i = 0; i < len; i++)        {            where = str.indexOf ('=');            arr [0][i] = str.substring (0, where);            str = str.substring (where + 1);            if ( ( where = str.indexOf ('&') ) < 0 ) where = str.length;            arr [1][i] = unescape ( str.substring (0, where) );            if (i < len - 1) str = str.substring (where + 1);        }    }    return arr;}function findSearchVar (arr, url_var) {    for (i = 0; i < arr[0].length; i++)    if (arr[0][i] == url_var) return arr[1][i];    return "";}