function swapInfo(comp){
	if(comp == "bluetooth"){
		writeH('oText', '<span class="headInline">Hands-Free Bluetooth -moduli</span><br />Ajoneuvoon integroitu moduli hy&ouml;dynt&auml;&auml; Bluetooth-teknologiaa luodakseen langattoman yhteyden matkapuhelimeesi.');
	}
	else if(comp == "mic"){
		writeH('oText', '<span class="headInline">UConnect -mikrofoni</span><br />Mikrofoni on suunniteltu erist&auml;m&auml;&auml;n ylim&auml;&auml;r&auml;isi&auml; &auml;&auml;ni&auml; ja kaikua, jotta &auml;&auml;nesi kuuluisi selke&auml;n&auml; my&ouml;s linjan toiseen p&auml;&auml;h&auml;n.');
	}
	else if(comp == "sound"){
		writeH('oText', '<span class="headInline">UConnect hy&ouml;dynt&auml;&auml; ajoneuvosi &auml;&auml;nentoistoj&auml;rjestelm&auml;&auml;</span><br />UConnect-j&auml;rjestelm&auml; on paitsi t&auml;ysin integroitu ajoneuvosi &auml;&auml;nentoistoj&auml;rjestelm&auml;&auml;n, my&ouml;s hienos&auml;&auml;detty kunkin mallin ominaisuuksien mukaisesti.');
	}
	else if(comp == "controlPad"){
		writeH('oText', '<span class="headInline">UConnect</span><br />Voit s&auml;&auml;t&auml;&auml; matkustamon &auml;&auml;nen voimakkuutta tai siirt&auml;&auml; puhelun ajoneuvon j&auml;rjestelm&auml;st&auml; matkapuhelimeesi k&auml;tev&auml;sti. Mikrofonin ja kaiuttimet voi tarvittaessa mykist&auml;&auml; yksityislaatuisia puheluja ajatellen.');
	}
	swapFeatureImg(comp);
}

function swapFeatureImg(compImg){
	if(compImg == "bluetooth"){
		writeH('oTopImg', '<img src="img/01bluetooth.jpg" alt="" title=""/>');
	}
	else if(compImg == "mic"){
		writeH('oTopImg', '<img src="img/02microphone.jpg" alt="" title=""/>');
	}
	else if(compImg == "sound"){
		writeH('oTopImg', '<img src="img/03sound.jpg" alt="" title=""/>');
	}
	else if(compImg == "controlPad"){
		writeH('oTopImg', '<img src="img/04controlpad.jpg" alt="" title=""/>');
	}
	how_link(compImg);
}

function how_link(atState){
	var component = new Array();
		component[0] = 'bluetooth';
		component[1] = 'mic'
		component[2] = 'sound';
		component[3] = 'controlPad';

	var atStateFontColor = '#fff';
	var noStateFontColor = '#000';

	if(atState != "bluetooth"){
		document.getElementById(component[0] + "_link").style.color = noStateFontColor;
		document.getElementById(component[0] + "_link").style.background = '#fff';

		document.getElementById(component[0] + "_link").onmouseover = function(){
	  		document.getElementById(component[0] + "_link").style.color = atStateFontColor;
			document.getElementById(component[0] + "_link").style.background = '#69A281';
		}
		document.getElementById(component[0] + "_link").onmouseout = function(){
	 		document.getElementById(component[0] + "_link").style.color = noStateFontColor;
			document.getElementById(component[0] + "_link").style.background = '#fff';
		}
	}

	if(atState != "mic"){
		document.getElementById(component[1] + "_link").style.color = noStateFontColor;
		document.getElementById(component[1] + "_link").style.background = '#fff';

		document.getElementById(component[1] + "_link").onmouseover = function(){
		  	document.getElementById(component[1] + "_link").style.color = atStateFontColor;
			document.getElementById(component[1] + "_link").style.background = '#69A281';
		}
		document.getElementById(component[1] + "_link").onmouseout = function(){
	 		document.getElementById(component[1] + "_link").style.color = noStateFontColor;
			document.getElementById(component[1] + "_link").style.background = '#fff';
		}
	}

	if(atState != "sound"){
		document.getElementById(component[2] + "_link").style.color = noStateFontColor;
		document.getElementById(component[2] + "_link").style.background = '#fff';

		document.getElementById(component[2] + "_link").onmouseover = function(){
		  	document.getElementById(component[2] + "_link").style.color = atStateFontColor;
			document.getElementById(component[2] + "_link").style.background = '#69A281';
		}
		document.getElementById(component[2] + "_link").onmouseout = function(){
	 		document.getElementById(component[2] + "_link").style.color = noStateFontColor;
			document.getElementById(component[2] + "_link").style.background = '#fff';
		}
	}

	if(atState != "controlPad"){
		document.getElementById(component[3] + "_link").style.color = noStateFontColor;
		document.getElementById(component[3] + "_link").style.background = '#fff';

		document.getElementById(component[3] + "_link").onmouseover = function(){
		  	document.getElementById(component[3] + "_link").style.color = atStateFontColor;
			document.getElementById(component[3] + "_link").style.background = '#69A281';
		}
		document.getElementById(component[3] + "_link").onmouseout = function(){
	 		document.getElementById(component[3] + "_link").style.color = noStateFontColor;
			document.getElementById(component[3] + "_link").style.background = '#fff';
		}
	}
	hiliteLink(atState);
}

function hiliteLink(atState){
 	var atStateFontColor = '#fff';
	var noStateFontColor = '#000';
	toggle_at_link = document.getElementById(atState + "_link");
	toggle_at_link.style.color = atStateFontColor;
	toggle_at_link.style.background = '#69A281';

	toggle_at_link.onmouseover = function(){
		toggle_at_link.style.color = atStateFontColor;
		toggle_at_link.style.background = '#69A281';
	}

	toggle_at_link.onmouseout = function(){
		toggle_at_link.style.color = atStateFontColor;
		toggle_at_link.style.background = '#69A281';
	}
}
