var z8_image = new Array;
var z8_thumb = new Array;
var z8_text = new Array;
z8_image[0] = "../galleryL/hy_01.jpg";
z8_thumb[0] = "../galleryL/thumb/hy_01.jpg";
z8_text[0] = "";
z8_image[1] = "../galleryL/hy_02.jpg";
z8_thumb[1] = "../galleryL/thumb/hy_02.jpg";
z8_text[1] = "";
z8_image[2] = "../galleryL/hy_03.jpg";
z8_thumb[2] = "../galleryL/thumb/hy_03.jpg";
z8_text[2] = "";
z8_image[3] = "../galleryL/hy_04.jpg";
z8_thumb[3] = "../galleryL/thumb/hy_04.jpg";
z8_text[3] = "";
z8_image[4] = "../galleryL/hy_05.jpg ";
z8_thumb[4] = "../galleryL/thumb/hy_05.jpg ";
z8_text[4] = "";
z8_image[5] = "../galleryL/hy_06.jpg";
z8_thumb[5] = "../galleryL/thumb/hy_06.jpg";
z8_text[5] = " ";      


/*FUNCTION TO RETURN ARGUMENTS PASSED BY URL*/
function getArgs() {
    var args = new Object();
    var query = location.search.substring(1);  // Get query string.
    var pairs = query.split(",");              // Break at comma.
    for(var i = 0; i < pairs.length; i++) {
	var pos = pairs[i].indexOf('=');       // Look for "name=value".
	if (pos == -1) continue;               // If not found, skip.
	var argname = pairs[i].substring(0,pos);  // Extract the name.
	var value = pairs[i].substring(pos+1); // Extract the value.
	args[argname] = unescape(value);          // Store as a property.
    }
    if (value){
        return value;
    }
    else{
        return 0;
    }                               // Return the object.
}

/*GET ITEM PASSED BY URL i.e "..?item=1" or 0*/
var current_image = getArgs();
