	
	function onOver(product_id){
		getProductData(product_id);
		return;
	}
	
	function onMove(){
		var div = document.getElementById('ajax_disp_div');
		var x,y;
		if (self.pageYOffset) // all except Explorer
		{
			x = self.pageXOffset;
			y = self.pageYOffset;
		}
		else if (document.documentElement && document.documentElement.scrollTop)
			// Explorer 6 Strict
		{
			x = document.documentElement.scrollLeft;
			y = document.documentElement.scrollTop;
		}
		else if (document.body) // all other Explorers
		{
			x = document.body.scrollLeft;
			y = document.body.scrollTop;
		}

		div.style.top = parseInt(m_y + y + 20, 10) + 'px';
		div.style.left = parseInt(m_x + x + 20, 10) + 'px';
		return;
	}
	
	function onOut(){
		document.getElementById('ajax_disp_div').style.display = 'none';
		document.getElementById('ajax_disp_div').innerHTML = '';
		return;
	}

	/* AJAX calls */

	function getProductData(product_id){
		/* CHECK if ajax info is enabled */
		if(ajax_pages["plugin_ajax_info_on"] == "Ne" || !ajax_pages["plugin_ajax_info_home"]){
			return;
		}
		/* SETTING up the url */
		var tmp_loc = "" + window.location;
		var tmp_loc2 = tmp_loc.split("/");
		var tmp_loc3 = "";
		var page_param = tmp_loc2[tmp_loc2.length - 1];
		/* PARSING page params */
		if((page_param == '' || page_param.indexOf("p=home") > -1) && ajax_pages["plugin_ajax_info_home"] == "Ne"){
			/* HOME page */
			return;
		}
		if((page_param.indexOf("p=catalog") > -1) && ajax_pages["plugin_ajax_info_catalog"] == "Ne"){
			/* CATALOG page */
			return;
		}
		if((page_param.indexOf("p=product") > -1) && ajax_pages["plugin_ajax_info_product"] == "Ne"){
			/* PRODUCT page */
			return;
		}
		
		for(i = 0; i < tmp_loc2.length - 1; i ++){
			tmp_loc3 += (tmp_loc2[i] + "/");
		}
		url = tmp_loc3 + plugins_dir + '/ajax_info/inc/requests.php?product_id=' + product_id + '&php_dir=' + php_dir + '&lang=' + current_lang;

		/* AJAX call */
		var req = setupAJAX();
		req.onreadystatechange = function(){
			/* only if req shows "loaded"*/
			if (req.readyState == 4) {
				/* only if "OK"*/
				if (req.status == 200) {
					var div = document.getElementById('ajax_disp_div');
					div.innerHTML = req.responseText;
					document.getElementById('ajax_disp_div').style.display = '';
				}
				else {
				}
			}   
		}
		
		req.open("GET", url, true);
		req.send(null);
		return;
	}

