﻿MM_preloadImages('http://m.betcity.tw/tierimages/leftbar_button_download_01B.gif','http://m.betcity.tw/tierimages/leftbar_button_download_02B.gif');
var queryString = window.top.location.search.substring(1);
function getParameter ( queryString, parameterName ) {
// Add "=" to the parameter name (i.e. parameterName=value)
var parameterName = parameterName + "=";

    if ( queryString.length > 0 ) {
        // Find the beginning of the string
        begin = queryString.indexOf ( parameterName );
        // If the parameter name is not found, skip it, otherwise return the value
        if ( begin != -1 ) {
        // Add the length (integer) to the beginning
            begin += parameterName.length;
            // Multiple parameters are separated by the "&" sign
            end = queryString.indexOf ( "&" , begin );
            if ( end == -1 ) {
                end = queryString.length
            }
            // Return the string
            var ret = unescape ( queryString.substring ( begin, end ) );
			return ret;
        }
        // Return "null" if no parameter has been found
        return "null";
    }
} 

var menu = "";
var para = getParameter(queryString, 'module');
//var para2 = getParameter(queryString, 'action');
if(para=='requirement'){
	document.Imagelb2.src="http://m.betcity.tw/tierimages/leftbar_button_download_02B.gif";
}
if(para=='download'){
	document.Imagelb1.src="http://m.betcity.tw/tierimages/leftbar_button_download_01B.gif";
}
