// JavaScript Document

function changeImage(image, prod) {
	document.getElementById('center_image').src = 'uploads/images/'+image;
	
	$("#product_text").empty();
	
  	$.ajax({
  	url: "get_prod.php",
  	data: "prod=" + prod,
	cache: false,
  	success: function(html){
	
	
	$("#product_text").html(html);
	
	var cssObj = {
        'text-align' : 'left'
    }

	
	$("#product_text").css(cssObj);
	
  	}
	});

}

function replaceImage(location) {
	document.getElementById('center_image').src='uploads/images/Final-Website-Diagram_v8-HOME_ALL-520px_v2.jpg';
	var cssObj = {
        'text-align' : 'center'
    }
	$("#product_text").css(cssObj);
	$("#product_text").empty();
	$("#product_text").html('<strong>Technology only delivers value to the<br />business when it is applied intelligently.</strong>');
	//setTimeout("document.getElementById('center_image').src='uploads/images/Final-Website-Diagram_v8-HOME_ALL-520px_v2.jpg';", 500);
}

function changeImageNew(image, prod) {
	document.getElementById('center_image').src = 'uploads/images/'+image;
	
	$("#new_top_text").empty();
	
  	$.ajax({
  	url: "get_prod.php",
  	data: "prod=" + prod,
	cache: false,
  	success: function(html){
	
  	html = html.replace('<hr />', '');	

	$("#new_top_text").html(html);

	var cssObj = {
        'text-align' : 'left',
        'font-size' : '12px',
        'line-height' : '1.2'
    }

	
	$("#new_top_text").css(cssObj);
	
  	}
	});

}

function changeImageTop(image, prod) {
	document.getElementById('center_image').src = 'uploads/images/'+image;
	
	$("#new_top_text").empty();
	
  	$.ajax({
  	url: "get_prod.php",
  	data: "prod=" + prod,
	cache: false,
  	success: function(html){
	
  	html = html.replace('<hr />', '');	

	$("#new_top_text").html(html);

	var cssObj = {
        'text-align' : 'left',
        'font-size' : '12px',
        'line-height' : '1.2'
    }

	
	$("#new_top_text").css(cssObj);
	
  	}
	});

}

function replaceImageNew(location) {
	document.getElementById('center_image').src='uploads/images/Final-Website-Diagram_v8-HOME_ALL-520px_v2.jpg';
	var cssObj = {
        'font-size' : '12px',
        'color' : '#000',
        'line-height' : '1.2'
    }
	$("#new_top_text").css(cssObj);
	$("#new_top_text").empty();
	$("#new_top_text").html("Founded in 1974 and listed on the LSE (MCGN) from 1983 Microgen is headquartered in Fleet with offices worldwide. The Group has two operating businesses Microgen Aptitude Solutions and Microgen Financial Systems. The Group is focused on the delivery of enterprise class solutions and products that address today's business needs rapidly and effectively.");
	//setTimeout("document.getElementById('center_image').src='uploads/images/Final Website Diagram_v4 HOME-ALL .gif';", 500);
}