function showhide(layer_ref, doShow) {
	var state = '';
	if (doShow == '0')
		state = 'none';
	else
		state = 'block';
  
	//Hack to prevent zeroes in list regarding to bug in IE9, See http://choosedaily.com/2481/ie9-bug-ordered-list-zeroes-ajax-request/
	var ieTimeout;
	var selectorWrapperSet = $('#'+layer_ref);
	selectorWrapperSet.css('display','none');
	ieTimeout = setTimeout(function() {
	selectorWrapperSet.css('display',state);
	clearTimeout(ieTimeout);
	}, 1);
}
function checkOs() {
	var agent = navigator.userAgent;
	agent = agent.toLowerCase();
	if (agent.indexOf("windows nt 6.") >= 0)
		showVistaStuff();
	else if (agent.indexOf("windows nt 5.") >= 0)
		showXpStuff();
	else {
		showhide('showAllLink', 0);
		showhide('LinkShowAllTroubleShooting', 0);
	}
}
function showXpStuff() {
	showhide('XpTroubleShooting', 1);
	showhide('VistaTroubleShooting', 0);
}
function showVistaStuff() {
	showhide('XpTroubleShooting', 0);
	showhide('VistaTroubleShooting', 1);
}
function showAll() {
	showhide('showAllLink', 0);
}
function showAllTroubleShooting() {
	showhide('XpTroubleShooting', 1);
	showhide('VistaTroubleShooting', 1);
	showhide('LinkShowAllTroubleShooting', 0);
}
