			$(document).ready(function(){
				$('#product').html("<p style='color:#666666;font-size:15px;margin:20px 0 0 0;text-align:center;'>Please input the panel specifications from the module manufacturer’s data.</p>");
				$('#region').focus();
				$('#region').parent().css('background-color', '#dddcdc');
				$('#reset').click(function(){
					$(':input','#form').not(':button, :submit, :reset, :hidden').val('');
					$('#region').val('Choose One');
					$('#connector').val('Choose One');
					$('#region').focus();
					$('#voc_error').html("&nbsp;");
					$('#voc_error').css("color", "#666");
					$('#voc_error').parent('span').css('background-color', '#ffffff');
					$('#isc_error').html("&nbsp;");
					$('#isc_error').css("color", "#666");
					$('#isc_error').parent('span').css('background-color', '#ffffff');
					$('#product').html("<p style='color:#666666;font-size:15px;margin:20px 0 0 0;text-align:center;'>Please input the panel specifications from the module manufacturer’s data.</p>");
				});
				$('#form *').focus(function(){
					$(this).parent('span').css('background-color', '#dddcdc');
				});
				$('#form *').blur(function(){
					$(this).parent('span').css('background-color', '#ffffff');
				});
				var productSpecs = {
					ES50: {vmp: {min: 16, max: 48},voc: 52,imp: 9.5,isc: 10,power: 300},
					ES75: {vmp: {min: 30, max: 65},voc: 75,imp: 6.5,isc: 7.5,power: 350},
					ES110: {vmp: {min: 30, max: 89},voc: 110,imp: 4.7,isc: 5,power: 300},
					ES170: {vmp: {min: 30, max: 140},voc: 170,imp: 2.6,isc: 3,power: 300},
					EP35: {vmp: {min: 28, max: 42},voc: 55,imp: 5.7,isc: 6.5,power: 200},
					EP45: {vmp: {min: 28, max: 52},voc: 64,imp: 4.4,isc: 5,power: 200},
					EP65: {vmp: {min: 55, max: 75},voc: 90,imp: 3.3,isc: 3.8,power: 200}
				};
				function checkEP() {
					var EP = [];
					if ($('#vmp').val() != "" && $('#vmp').val() >= productSpecs.EP35.vmp.min && $('#vmp').val() <= productSpecs.EP35.vmp.max){
						if($('#voc').val() != "" && $('#voc').val() <= productSpecs.EP35.voc){
							if($('#imp').val() != "" && $('#imp').val() <= productSpecs.EP35.imp){
								if($('#isc').val() != "" && $('#isc').val() <= productSpecs.EP35.isc){
									if($('#power').val() != "" && $('#power').val() <= productSpecs.EP35.power){
										EP = 1;
										return EP;
									}
								}
							}
						}
					}
					if ($('#vmp').val() != "" && $('#vmp').val() >= productSpecs.EP45.vmp.min && $('#vmp').val() <= productSpecs.EP45.vmp.max){
						if($('#voc').val() != "" && $('#voc').val() <= productSpecs.EP45.voc){
							if($('#imp').val() != "" && $('#imp').val() <= productSpecs.EP45.imp){
								if($('#isc').val() != "" && $('#isc').val() <= productSpecs.EP45.isc){
									if($('#power').val() != "" && $('#power').val() <= productSpecs.EP45.power){
										EP = 2;
										return EP;
									}
								}
							}
						}
					}
					if ($('#vmp').val() != "" && $('#vmp').val() >= productSpecs.EP65.vmp.min && $('#vmp').val() <= productSpecs.EP65.vmp.max){
						if($('#voc').val() != "" && $('#voc').val() <= productSpecs.EP65.voc){
							if($('#imp').val() != "" && $('#imp').val() <= productSpecs.EP65.imp){
								if($('#isc').val() != "" && $('#isc').val() <= productSpecs.EP65.isc){
									if($('#power').val() != "" && $('#power').val() <= productSpecs.EP65.power){
										EP = 3;
										return EP;
									}
								}
							}
						}
					}
					return false;
				}

				

				function checkUL() {
					var ES = [];
/*
					if ($('#vmp').val() != "" && $('#vmp').val() >= productSpecs.ES60.vmp.min && $('#vmp').val() <= productSpecs.ES60.vmp.max){
						if($('#voc').val() != "" && $('#voc').val() <= productSpecs.ES60.voc){
							if($('#imp').val() != "" && $('#imp').val() <= productSpecs.ES60.imp){
								if($('#isc').val() != "" && $('#isc').val() <= productSpecs.ES60.isc){
									if($('#power').val() != "" && $('#power').val() <= productSpecs.ES60.power){
										ES = 1;
										return ES;
									}
								}
							}
						}
					}
*/
					if ($('#vmp').val() != "" && $('#vmp').val() >= productSpecs.ES50.vmp.min && $('#vmp').val() <= productSpecs.ES50.vmp.max){
						if($('#voc').val() != "" && $('#voc').val() <= productSpecs.ES50.voc){
							if($('#imp').val() != "" && $('#imp').val() <= productSpecs.ES50.imp){
								if($('#isc').val() != "" && $('#isc').val() <= productSpecs.ES50.isc){
									if($('#power').val() != "" && $('#power').val() <= productSpecs.ES50.power){
										ES = 1;
										return ES;
									}
								}
							}
						}
					}
					if ($('#vmp').val() != "" && $('#vmp').val() >= productSpecs.ES75.vmp.min && $('#vmp').val() <= productSpecs.ES75.vmp.max){
						if($('#voc').val() != "" && $('#voc').val() <= productSpecs.ES75.voc){
							if($('#imp').val() != "" && $('#imp').val() <= productSpecs.ES75.imp){
								if($('#isc').val() != "" && $('#isc').val() <= productSpecs.ES75.isc){
									if($('#power').val() != "" && $('#power').val() <= productSpecs.ES75.power){
										ES = 2;
										return ES;
									}
								}
							}
						}
					}
					if ($('#vmp').val() != "" && $('#vmp').val() >= productSpecs.ES110.vmp.min && $('#vmp').val() <= productSpecs.ES110.vmp.max){
						if($('#voc').val() != "" && $('#voc').val() <= productSpecs.ES110.voc){
							if($('#imp').val() != "" && $('#imp').val() <= productSpecs.ES110.imp){
								if($('#isc').val() != "" && $('#isc').val() <= productSpecs.ES110.isc){
									if($('#power').val() != "" && $('#power').val() <= productSpecs.ES110.power){
										ES = 3;
										return ES;
									}
								}
							}
						}
					}
					if ($('#vmp').val() != "" && $('#vmp').val() >= productSpecs.ES170.vmp.min && $('#vmp').val() <= productSpecs.ES170.vmp.max){
						if($('#voc').val() != "" && $('#voc').val() <= productSpecs.ES170.voc){
							if($('#imp').val() != "" && $('#imp').val() <= productSpecs.ES170.imp){
								if($('#isc').val() != "" && $('#isc').val() <= productSpecs.ES170.isc){
									if($('#power').val() != "" && $('#power').val() <= productSpecs.ES170.power){
										ES = 4;
										return ES;
									}
								}
							}
						}
					}
					return false;
				};
				var productSpecsCE = {
					ES50: {vmp: {min: 16, max: 48},voc: 52,imp: 9.5,isc: 10,power: 300},
					ES110: {vmp: {min: 30, max: 89},voc: 110,imp: 4.7,isc: 5,power: 300},
					ES170: {vmp: {min: 30, max: 140},voc: 170,imp: 2.6,isc: 3,power: 300}
				};
				function checkCE() {
					var ES = [];
					if ($('#vmp').val() != "" && $('#vmp').val() >= productSpecsCE.ES50.vmp.min && $('#vmp').val() <= productSpecsCE.ES50.vmp.max){
						if($('#voc').val() != "" && $('#voc').val() <= productSpecsCE.ES50.voc){
							if($('#imp').val() != "" && $('#imp').val() <= productSpecsCE.ES50.imp){
								if($('#isc').val() != "" && $('#isc').val() <= productSpecsCE.ES50.isc){
									if($('#power').val() != "" && $('#power').val() <= productSpecsCE.ES50.power){
										ES = 1;
										return ES;
									}
								}
							}
						}
					}
					if ($('#vmp').val() != "" && $('#vmp').val() >= productSpecsCE.ES110.vmp.min && $('#vmp').val() <= productSpecsCE.ES110.vmp.max){
						if($('#voc').val() != "" && $('#voc').val() <= productSpecsCE.ES110.voc){
							if($('#imp').val() != "" && $('#imp').val() <= productSpecsCE.ES110.imp){
								if($('#isc').val() != "" && $('#isc').val() <= productSpecsCE.ES110.isc){
									if($('#power').val() != "" && $('#power').val() <= productSpecsCE.ES110.power){
										ES = 2;
										return ES;
									}
								}
							}
						}
					}
					if ($('#vmp').val() != "" && $('#vmp').val() >= productSpecsCE.ES170.vmp.min && $('#vmp').val() <= productSpecsCE.ES170.vmp.max){
						if($('#voc').val() != "" && $('#voc').val() <= productSpecsCE.ES170.voc){
							if($('#imp').val() != "" && $('#imp').val() <= productSpecsCE.ES170.imp){
								if($('#isc').val() != "" && $('#isc').val() <= productSpecsCE.ES170.isc){
									if($('#power').val() != "" && $('#power').val() <= productSpecsCE.ES170.power){
										ES = 3;
										return ES;
									}
								}
							}
						}
					}
					return false;
				};

				function replaceComma(obj) {					
					if (obj.val().indexOf(",") != -1) {
						obj.val(function(i, val) {
							return val.replace(',', '.');
						});
					}
				};

				$(':input').blur(function(){
					
					replaceComma($('#vmp'));
					replaceComma($('#voc'));
					replaceComma($('#imp'));
					replaceComma($('#isc'));
					
					var vmp = parseFloat( $('#vmp').val() );
					var voc = parseFloat( $('#voc').val() );
					var imp = parseFloat( $('#imp').val() );
					var isc = parseFloat( $('#isc').val() );
					//alert ("vmp" + vmp);

					if(vmp != "" && voc != ""){
						
						if(voc < vmp || voc > vmp*1.5){
							if(voc < vmp){
								$('#voc_error').html("Voc value cannot be lower than Vmp");
								$('#voc_error').css("color", "red");
							}
							if(voc > vmp*1.5){
								$('#voc_error').html("Voc value is too high for the Vmp");
								$('#voc_error').css("color", "red");
							}
						}else{
							$('#voc_error').html("&nbsp;");
							$('#voc_error').css("color", "#666");
						}
					}
					if(imp != "" && isc != ""){
						if (isc < imp || isc > imp * 1.5) {
							if(isc < imp){
								$('#isc_error').html("Isc value cannot be lower than Imp");
								$('#isc_error').css("color", "red");
							}
							if(isc > imp*1.5){
								$('#isc_error').html("Isc value is too high for the Imp");
								$('#isc_error').css("color", "red");
							}
						}else{
							$('#isc_error').html("&nbsp;");
							$('#isc_error').css("color", "#666");
						}
					}
				});
				$('#isc').blur(function(){
					if($('#vmp').val() != "" && $('#voc').val() != "" && $('#imp').val() != "" && $('#isc').val() != ""){
						$('#power').val(Math.round($('#vmp').val()*$('#imp').val()));
					}
				});
				$('#form').submit(function(){
	                if ($('#region').val() == 'Choose One' || $('#vmp').val() == "" || $('#voc').val() == "" || $('#imp').val() == "" || $('#isc').val() == "" || $('#power').val() == "" || $('#voc').val() < $('#vmp').val() || $('#voc').val() > $('#vmp').val()*1.5 || $('#isc').val() < $('#imp').val() || $('#isc').val() > $('#imp').val()*1.5 || $('#connector').val() == 'Choose One') {
	                	if($('#region').val() == 'Choose One'){
							$('#form *').prev('span.field').css('background-color', '#ffffff');
							$('#region').focus();
							return false;
						}
						if($('#vmp').val() == ''){
							$('#form *').prev('span.field').css('background-color', '#ffffff');
							$('#vmp').focus();
							return false;
						}
						if($('#voc').val() == ""){
							$('#form *').prev('span.field').css('background-color', '#ffffff');
							$('#voc').focus();
							return false;
						}
						if($('#imp').val() == ''){
							$('#form *').prev('span.field').css('background-color', '#ffffff');
							$('#imp').focus();
							return false;
						}
						if($('#isc').val() == ""){
							$('#form *').prev('span.field').css('background-color', '#ffffff');
							$('#isc').focus();
							return false;
						}
						if($('#power').val() == ""){
							$('#form *').prev('span.field').css('background-color', '#ffffff');
							$('#power').focus();
							return false;
						}
						if($('#connector').val() == "Choose One"){
							$('#form *').prev('span.field').css('background-color', '#ffffff');
							$('#connector').focus();
							return false;
						}
						//Check errors
						if($('#voc').val() < $('#vmp').val()){
							$('#form *').prev('span.field').css('background-color', '#ffffff');
							$('#voc').focus();
							return false;
						}
						if($('#voc').val() > $('#vmp').val()*1.5){
							$('#form *').prev('span.field').css('background-color', '#ffffff');
							$('#voc').focus();
							return false;
						}
						if($('#isc').val() < $('#imp').val()){
							$('#form *').prev('span.field').css('background-color', '#ffffff');
							$('#isc').focus();
							return false;
						}
						if($('#isc').val() > $('#imp').val()*1.5){
							$('#form *').prev('span.field').css('background-color', '#ffffff');
							$('#isc').focus();
							return false;
						}
	                }
					else{	//	decide between UL & CE
						if($('#region').val() == 'North America'){	//	'UL/thick'
							var image_src_ES = "/widget/img/es1.jpg";
							var ES = checkUL();
							var EP = checkEP();
							$('#product').html('<div id="es"></div><div id="ep"></div>');
							switch(ES){
								case 1: {
									$('#es').html('<img src="/widget/img/es2.jpg" class="product"><h5>MM-ES50</h5>\
										<p class="desc"><b>Part Number: MM-ES050V300W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										When deploying the Tigo Energy Maximizer Solution (series - MMES), panels are connected in series as in a normal array (1 Module Maximizer per module). The MM-ES solution provides an industry-leading 99.5% average conversion efficiency, the smallest electronics footprint of its kind, and a polycarbonate enclosure (which eliminates the need for extra grounding). This solution is the most commonly used of the Tigo Energy Maximizers. It will correct for mismatch between panels, orientation issues, shade, and other defects. It is not recommended in use with different length strings.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_ES_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								case 2: {
									$('#es').html('<img src="/widget/img/es2.jpg" class="product"><h5>MM-ES75</h5>\
										<p class="desc"><b>Part Number: MM-ES075V350W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										When deploying the Tigo Energy Maximizer Solution (series - MMES), panels are connected in series as in a normal array (1 Module Maximizer per module). The MM-ES solution provides an industry-leading 99.5% average conversion efficiency, the smallest electronics footprint of its kind, and a polycarbonate enclosure (which eliminates the need for extra grounding). This solution is the most commonly used of the Tigo Energy Maximizers. It will correct for mismatch between panels, orientation issues, shade, and other defects. It is not recommended in use with different length strings.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_ES_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								case 3: {
									$('#es').html('<img src="'+image_src_ES+'" class="product"><h5>MM-ES110</h5>\
										<p class="desc"><b>Part Number: MM-ES110V300W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										When deploying the Tigo Energy Maximizer Solution (series - MMES), panels are connected in series as in a normal array (1 Module Maximizer per module). The MM-ES solution provides an industry-leading 99.5% average conversion efficiency, the smallest electronics footprint of its kind, and a polycarbonate enclosure (which eliminates the need for extra grounding). This solution is the most commonly used of the Tigo Energy Maximizers. It will correct for mismatch between panels, orientation issues, shade, and other defects. It is not recommended in use with different length strings.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_ES_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								case 4: {
									$('#es').html('<img src="'+image_src_ES+'" class="product"><h5>MM-ES170</h5>\
										<p class="desc"><b>Part Number: MM-ES170V300W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										When deploying the Tigo Energy Maximizer Solution (series - MMES), panels are connected in series as in a normal array (1 Module Maximizer per module). The MM-ES solution provides an industry-leading 99.5% average conversion efficiency, the smallest electronics footprint of its kind, and a polycarbonate enclosure (which eliminates the need for extra grounding). This solution is the most commonly used of the Tigo Energy Maximizers. It will correct for mismatch between panels, orientation issues, shade, and other defects. It is not recommended in use with different length strings.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_ES_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								default: {
									$('#es').html('<img src="/widget/img/es2_no_match.jpg" class="product">\
										<p class="desc">\
										Tigo Energy MM-ES does not currently <br/>support this specification\
										</p>');
								}
							}
							switch(EP){
								case 1: {
									$('#ep').html('<img src="/widget/img/ep2.jpg" class="product"><h5>MM-EP35</h5>\
										<p class="desc"><b>Part Number: MM-EP035V200W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										In the Tigo Energy Maximizer Solution (parallel - MMEP), panels are connected in parallel through an integrated bus. This solution adds galvanic isolation, and a DC boost stage at the module; and outputs a fixed 75 Volt to a parallel bus. This technology enables longer branches (up to 30 amps), requiring much less combining for high voltage modules. The MM-EP is ideal for vertical-surface BIPV and branches with different types of panels. This solution also works well for systems requiring galvanic isolation at the module for enhanced arc protection.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_EP_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								case 2:{
									$('#ep').html('<img src="/widget/img/ep2.jpg" class="product"><h5>MM-EP45</h5>\
										<p class="desc"><b>Part Number: MM-EP045V200W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										In the Tigo Energy Maximizer Solution (parallel - MMEP), panels are connected in parallel through an integrated bus. This solution adds galvanic isolation, and a DC boost stage at the module; and outputs a fixed 75 Volt to a parallel bus. This technology enables longer branches (up to 30 amps), requiring much less combining for high voltage modules. The MM-EP is ideal for vertical-surface BIPV and branches with different types of panels. This solution also works well for systems requiring galvanic isolation at the module for enhanced arc protection.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_EP_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								case 3:{
									$('#ep').html('<img src="/widget/img/ep2.jpg" class="product"><h5>MM-EP65</h5>\
										<p class="desc"><b>Part Number: MM-EP065V200W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										In the Tigo Energy Maximizer Solution (parallel - MMEP), panels are connected in parallel through an integrated bus. This solution adds galvanic isolation, and a DC boost stage at the module; and outputs a fixed 75 Volt to a parallel bus. This technology enables longer branches (up to 30 amps), requiring much less combining for high voltage modules. The MM-EP is ideal for vertical-surface BIPV and branches with different types of panels. This solution also works well for systems requiring galvanic isolation at the module for enhanced arc protection.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_EP_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								default: {
									$('#ep').html('<img src="/widget/img/ep_no_match.jpg" class="product">\
										<p class="desc">\
										Tigo Energy MM-EP does not currently <br/>support this specification\
										</p>');
								}
							}
						}else{	//	'CE/thin'
							var image_src_ES2 = "/widget/img/es2.jpg";
							var ES2 = checkUL();
							var EP2 = checkEP();
							$('#product').html('<div id="es"></div><div id="ep"></div>');
							switch(ES2){
								case 1: {
									$('#es').html('<img src="'+image_src_ES2+'" class="product"><h5>MM-ES50</h5>\
										<p class="desc"><b>Part Number: MM-ES050V300W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										When deploying the Tigo Energy Maximizer Solution (series - MMES), panels are connected in series as in a normal array (1 Module Maximizer per module). The MM-ES solution provides an industry-leading 99.5% average conversion efficiency, the smallest electronics footprint of its kind, and a polycarbonate enclosure (which eliminates the need for extra grounding). This solution is the most commonly used of the Tigo Energy Maximizers. It will correct for mismatch between panels, orientation issues, shade, and other defects. It is not recommended in use with different length strings.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_ES_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								case 2: {
									$('#es').html('<img src="'+image_src_ES2+'" class="product"><h5>MM-ES75</h5>\
										<p class="desc"><b>Part Number: MM-ES075V350W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										When deploying the Tigo Energy Maximizer Solution (series - MMES), panels are connected in series as in a normal array (1 Module Maximizer per module). The MM-ES solution provides an industry-leading 99.5% average conversion efficiency, the smallest electronics footprint of its kind, and a polycarbonate enclosure (which eliminates the need for extra grounding). This solution is the most commonly used of the Tigo Energy Maximizers. It will correct for mismatch between panels, orientation issues, shade, and other defects. It is not recommended in use with different length strings.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_ES_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								case 3: {
									$('#es').html('<img src="'+image_src_ES2+'" class="product"><h5>MM-ES110</h5>\
										<p class="desc"><b>Part Number: MM-ES110V300W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										When deploying the Tigo Energy Maximizer Solution (series - MMES), panels are connected in series as in a normal array (1 Module Maximizer per module). The MM-ES solution provides an industry-leading 99.5% average conversion efficiency, the smallest electronics footprint of its kind, and a polycarbonate enclosure (which eliminates the need for extra grounding). This solution is the most commonly used of the Tigo Energy Maximizers. It will correct for mismatch between panels, orientation issues, shade, and other defects. It is not recommended in use with different length strings.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_ES_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								case 4: {
									$('#es').html('<img src="'+image_src_ES2+'" class="product"><h5>MM-ES170</h5>\
										<p class="desc"><b>Part Number: MM-ES170V300W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										When deploying the Tigo Energy Maximizer Solution (series - MMES), panels are connected in series as in a normal array (1 Module Maximizer per module). The MM-ES solution provides an industry-leading 99.5% average conversion efficiency, the smallest electronics footprint of its kind, and a polycarbonate enclosure (which eliminates the need for extra grounding). This solution is the most commonly used of the Tigo Energy Maximizers. It will correct for mismatch between panels, orientation issues, shade, and other defects. It is not recommended in use with different length strings.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_ES_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								default: {
									$('#es').html('<img src="/widget/img/es2_no_match.jpg" class="product">\
										<p class="desc">\
										Tigo Energy MM-ES does not currently <br/>support this specification\
										</p>');
								}
							}
							switch(EP2){
								case 1: {
									$('#ep').html('<img src="/widget/img/ep2.jpg" class="product"><h5>MM-EP35</h5>\
										<p class="desc"><b>Part Number: MM-EP035V200W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										In the Tigo Energy Maximizer Solution (parallel - MMEP), panels are connected in parallel through an integrated bus. This solution adds galvanic isolation, and a DC boost stage at the module; and outputs a fixed 75 Volt to a parallel bus. This technology enables longer branches (up to 30 amps), requiring much less combining for high voltage modules. The MM-EP is ideal for vertical-surface BIPV and branches with different types of panels. This solution also works well for systems requiring galvanic isolation at the module for enhanced arc protection.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_EP_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								case 2:{
									$('#ep').html('<img src="/widget/img/ep2.jpg" class="product"><h5>MM-EP45</h5>\
										<p class="desc"><b>Part Number: MM-EP045V200W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										In the Tigo Energy Maximizer Solution (parallel - MMEP), panels are connected in parallel through an integrated bus. This solution adds galvanic isolation, and a DC boost stage at the module; and outputs a fixed 75 Volt to a parallel bus. This technology enables longer branches (up to 30 amps), requiring much less combining for high voltage modules. The MM-EP is ideal for vertical-surface BIPV and branches with different types of panels. This solution also works well for systems requiring galvanic isolation at the module for enhanced arc protection.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_EP_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								case 3:{
									$('#ep').html('<img src="/widget/img/ep2.jpg" class="product"><h5>MM-EP65</h5>\
										<p class="desc"><b>Part Number: MM-EP065V200W-'+$('#connector').val()+'WL</b></p><p class="desc" style="margin:0 0 15px 0;">\
										In the Tigo Energy Maximizer Solution (parallel - MMEP), panels are connected in parallel through an integrated bus. This solution adds galvanic isolation, and a DC boost stage at the module; and outputs a fixed 75 Volt to a parallel bus. This technology enables longer branches (up to 30 amps), requiring much less combining for high voltage modules. The MM-EP is ideal for vertical-surface BIPV and branches with different types of panels. This solution also works well for systems requiring galvanic isolation at the module for enhanced arc protection.\
										</p>\
										<a href="http://tigoenergy.com/data_sheets/MM_EP_datasheet.pdf" class="datasheet">Download the Datasheet</a>');
									break;
								}
								default: {
									$('#ep').html('<img src="/widget/img/ep_no_match.jpg" class="product">\
										<p class="desc">\
										Tigo Energy MM-EP does not currently <br/>support this specification\
										</p>');
								}
							}
						}
					}
					return false;
				});
			});

