	Element.setBackgroundPosition = function(element, position) {
		element = $(element);
		element.style['backgroundPosition'] = position;
		return element;
	};
	
	function tab1_open () {
		// show selected tab & show selected content
		if(document.getElementById('btn_tab1')) {
			Element.setBackgroundPosition('btn_tab1', '0 0');
			Element.setBackgroundPosition('btn_tab1_a', 'right 0');
			Element.show('long_content1');
			$('btn_tab1').style.color = "#fff";
		}
		if(document.getElementById('btn_tab2')) {
			Element.setBackgroundPosition('btn_tab2', '0 -24px');
			Element.setBackgroundPosition('btn_tab2_a', 'right -24px');
			Element.hide('long_content2');
		}
		if(document.getElementById('btn_tab3')) {
			Element.setBackgroundPosition('btn_tab3', '0 -24px');
			Element.setBackgroundPosition('btn_tab3_a', 'right -24px');
			Element.hide('long_content3');
		}
		if(document.getElementById('btn_tab4')) {
			Element.setBackgroundPosition('btn_tab4', '0 -24px');
			Element.setBackgroundPosition('btn_tab4_a', 'right -24px');
			Element.hide('long_content4');
		}
		if(document.getElementById('btn_tab5')) {
			Element.setBackgroundPosition('btn_tab5', '0 -24px');
			Element.setBackgroundPosition('btn_tab5_a', 'right -24px');
			Element.hide('long_content5');
		}
		if(document.getElementById('btn_tab6')) {
			Element.setBackgroundPosition('btn_tab6', '0 -24px');
			Element.setBackgroundPosition('btn_tab6_a', 'right -24px');
			Element.hide('long_content6');
		}
		if ($('btn_tab1_a')) { $('btn_tab1_a').style.color = "#fff"; }
		if ($('btn_tab2_a')) { $('btn_tab2_a').style.color = "#000"; }
		if ($('btn_tab3_a')) { $('btn_tab3_a').style.color = "#000"; }
		if ($('btn_tab4_a')) { $('btn_tab4_a').style.color = "#000"; }
		if ($('btn_tab5_a')) { $('btn_tab5_a').style.color = "#000"; }
		if ($('btn_tab6_a')) { $('btn_tab6_a').style.color = "#000"; }
	}
		
	function tab2_open () {
		// show selected tab & show selected content
		if(document.getElementById('btn_tab1')) {
			Element.setBackgroundPosition('btn_tab1', '0 -24px');
			Element.setBackgroundPosition('btn_tab1_a', 'right -24px');
			Element.hide('long_content1');
		}
		if(document.getElementById('btn_tab2')) {
			Element.setBackgroundPosition('btn_tab2', '0 0');
			Element.setBackgroundPosition('btn_tab2_a', 'right 0');
			Element.show('long_content2');
		}
		if(document.getElementById('btn_tab3')) {
			Element.setBackgroundPosition('btn_tab3', '0 -24px');
			Element.setBackgroundPosition('btn_tab3_a', 'right -24px');
			Element.hide('long_content3');
		}
		if(document.getElementById('btn_tab4')) {
			Element.setBackgroundPosition('btn_tab4', '0 -24px');
			Element.setBackgroundPosition('btn_tab4_a', 'right -24px');
			Element.hide('long_content4');
		}
		if(document.getElementById('btn_tab5')) {
			Element.setBackgroundPosition('btn_tab5', '0 -24px');
			Element.setBackgroundPosition('btn_tab5_a', 'right -24px');
			Element.hide('long_content5');
		}
		if(document.getElementById('btn_tab6')) {
			Element.setBackgroundPosition('btn_tab6', '0 -24px');
			Element.setBackgroundPosition('btn_tab6_a', 'right -24px');
			Element.hide('long_content6');
		}
		if ($('btn_tab1_a')) { $('btn_tab1_a').style.color = "#000"; }
		if ($('btn_tab2_a')) { $('btn_tab2_a').style.color = "#fff"; }
		if ($('btn_tab3_a')) { $('btn_tab3_a').style.color = "#000"; }
		if ($('btn_tab4_a')) { $('btn_tab4_a').style.color = "#000"; }
		if ($('btn_tab5_a')) { $('btn_tab5_a').style.color = "#000"; }
		if ($('btn_tab6_a')) { $('btn_tab6_a').style.color = "#000"; }
	}
	
	function tab3_open () {
		// show selected tab & show selected content
		if(document.getElementById('btn_tab1')) {
			Element.setBackgroundPosition('btn_tab1', '0 -24px');
			Element.setBackgroundPosition('btn_tab1_a', 'right -24px');
			Element.hide('long_content1');
		}
		if(document.getElementById('btn_tab2')) {
			Element.setBackgroundPosition('btn_tab2', '0 -24px');
			Element.setBackgroundPosition('btn_tab2_a', 'right -24px');
			Element.hide('long_content2');
		}
		if(document.getElementById('btn_tab3')) {
			Element.setBackgroundPosition('btn_tab3', '0 0');
			Element.setBackgroundPosition('btn_tab3_a', 'right 0');
			Element.show('long_content3');
		}
		if(document.getElementById('btn_tab4')) {
			Element.setBackgroundPosition('btn_tab4', '0 -24px');
			Element.setBackgroundPosition('btn_tab4_a', 'right -24px');
			Element.hide('long_content4');
		}
		if(document.getElementById('btn_tab5')) {
			Element.setBackgroundPosition('btn_tab5', '0 -24px');
			Element.setBackgroundPosition('btn_tab5_a', 'right -24px');
			Element.hide('long_content5');
		}
		if(document.getElementById('btn_tab6')) {
			Element.setBackgroundPosition('btn_tab6', '0 -24px');
			Element.setBackgroundPosition('btn_tab6_a', 'right -24px');
			Element.hide('long_content6');
		}
		if ($('btn_tab1_a')) { $('btn_tab1_a').style.color = "#000"; }
		if ($('btn_tab2_a')) { $('btn_tab2_a').style.color = "#000"; }
		if ($('btn_tab3_a')) { $('btn_tab3_a').style.color = "#fff"; }
		if ($('btn_tab4_a')) { $('btn_tab4_a').style.color = "#000"; }
		if ($('btn_tab5_a')) { $('btn_tab5_a').style.color = "#000"; }
		if ($('btn_tab6_a')) { $('btn_tab6_a').style.color = "#000"; }
	}
	
	function tab4_open () {
		// show selected tab & show selected content
		if(document.getElementById('btn_tab1')) {
			Element.setBackgroundPosition('btn_tab1', '0 -24px');
			Element.setBackgroundPosition('btn_tab1_a', 'right -24px');
			Element.hide('long_content1');
		}
		if(document.getElementById('btn_tab2')) {
			Element.setBackgroundPosition('btn_tab2', '0 -24px');
			Element.setBackgroundPosition('btn_tab2_a', 'right -24px');
			Element.hide('long_content2');
		}
		if(document.getElementById('btn_tab3')) {
			Element.setBackgroundPosition('btn_tab3', '0 -24px');
			Element.setBackgroundPosition('btn_tab3_a', 'right -24px');
			Element.hide('long_content3');
		}
		if(document.getElementById('btn_tab4')) {
			Element.setBackgroundPosition('btn_tab4', '0 0');
			Element.setBackgroundPosition('btn_tab4_a', 'right 0');
			Element.show('long_content4');
		}
		if(document.getElementById('btn_tab5')) {
			Element.setBackgroundPosition('btn_tab5', '0 -24px');
			Element.setBackgroundPosition('btn_tab5_a', 'right -24px');
			Element.hide('long_content5');
		}
		if(document.getElementById('btn_tab6')) {
			Element.setBackgroundPosition('btn_tab6', '0 -24px');
			Element.setBackgroundPosition('btn_tab6_a', 'right -24px');
			Element.hide('long_content6');
		}
		if ($('btn_tab1_a')) { $('btn_tab1_a').style.color = "#000"; }
		if ($('btn_tab2_a')) { $('btn_tab2_a').style.color = "#000"; }
		if ($('btn_tab3_a')) { $('btn_tab3_a').style.color = "#000"; }
		if ($('btn_tab4_a')) { $('btn_tab4_a').style.color = "#fff"; }
		if ($('btn_tab5_a')) { $('btn_tab5_a').style.color = "#000"; }
		if ($('btn_tab6_a')) { $('btn_tab6_a').style.color = "#000"; }
	}
		
	function tab5_open () {
		// show selected tab & show selected content
		if(document.getElementById('btn_tab1')) {
			Element.setBackgroundPosition('btn_tab1', '0 -24px');
			Element.setBackgroundPosition('btn_tab1_a', 'right -24px');
			Element.hide('long_content1');
		}
		if(document.getElementById('btn_tab2')) {
			Element.setBackgroundPosition('btn_tab2', '0 -24px');
			Element.setBackgroundPosition('btn_tab2_a', 'right -24px');
			Element.hide('long_content2');
		}
		if(document.getElementById('btn_tab3')) {
			Element.setBackgroundPosition('btn_tab3', '0 -24px');
			Element.setBackgroundPosition('btn_tab3_a', 'right -24px');
			Element.hide('long_content3');
		}
		if(document.getElementById('btn_tab4')) {
			Element.setBackgroundPosition('btn_tab4', '0 -24px');
			Element.setBackgroundPosition('btn_tab4_a', 'right -24px');
			Element.hide('long_content4');
		}
		if(document.getElementById('btn_tab5')) {
			Element.setBackgroundPosition('btn_tab5', '0 0');
			Element.setBackgroundPosition('btn_tab5_a', 'right 0');
			Element.show('long_content5');
		}
		if(document.getElementById('btn_tab6')) {
			Element.setBackgroundPosition('btn_tab6', '0 -24px');
			Element.setBackgroundPosition('btn_tab6_a', 'right -24px');
			Element.hide('long_content6');
		}
		if ($('btn_tab1_a')) { $('btn_tab1_a').style.color = "#000"; }
		if ($('btn_tab2_a')) { $('btn_tab2_a').style.color = "#000"; }
		if ($('btn_tab3_a')) { $('btn_tab3_a').style.color = "#000"; }
		if ($('btn_tab4_a')) { $('btn_tab4_a').style.color = "#000"; }
		if ($('btn_tab5_a')) { $('btn_tab5_a').style.color = "#fff"; }
		if ($('btn_tab6_a')) { $('btn_tab6_a').style.color = "#000"; }
	}
	
	function tab6_open () {
		// show selected tab & show selected content
		if(document.getElementById('btn_tab1')) {
			Element.setBackgroundPosition('btn_tab1', '0 -24px');
			Element.setBackgroundPosition('btn_tab1_a', 'right -24px');
			Element.hide('long_content1');
		}
		if(document.getElementById('btn_tab2')) {
			Element.setBackgroundPosition('btn_tab2', '0 -24px');
			Element.setBackgroundPosition('btn_tab2_a', 'right -24px');
			Element.hide('long_content2');
		}
		if(document.getElementById('btn_tab3')) {
			Element.setBackgroundPosition('btn_tab3', '0 -24px');
			Element.setBackgroundPosition('btn_tab3_a', 'right -24px');
			Element.hide('long_content3');
		}
		if(document.getElementById('btn_tab4')) {
			Element.setBackgroundPosition('btn_tab4', '0 -24px');
			Element.setBackgroundPosition('btn_tab4_a', 'right -24px');
			Element.hide('long_content4');
		}
		if(document.getElementById('btn_tab5')) {
			Element.setBackgroundPosition('btn_tab5', '0 -24px');
			Element.setBackgroundPosition('btn_tab5_a', 'right -24px');
			Element.hide('long_content5');
		}
		if(document.getElementById('btn_tab6')) {
			Element.setBackgroundPosition('btn_tab6', '0 0');
			Element.setBackgroundPosition('btn_tab6_a', 'right 0');
			Element.show('long_content6');
		}
		if ($('btn_tab1_a')) { $('btn_tab1_a').style.color = "#000"; }
		if ($('btn_tab2_a')) { $('btn_tab2_a').style.color = "#000"; }
		if ($('btn_tab3_a')) { $('btn_tab3_a').style.color = "#000"; }
		if ($('btn_tab4_a')) { $('btn_tab4_a').style.color = "#000"; }
		if ($('btn_tab5_a')) { $('btn_tab5_a').style.color = "#000"; }
		if ($('btn_tab6_a')) { $('btn_tab6_a').style.color = "#fff"; }
	}