$(function(){
	/* set cookie for navigation */
	$('#top_privateit,#top_privatebeginners').bind('click', function(){	
		
		$('#top_menu a').each(function(){
			if ($('b', this).html() != null){
				$(this).html($('b', this).html());
			}
		});
		$('#top_menu a').removeClass('current');
		
		$(this).html('<b>' + $(this).html() + '</b>');
		
		$(this).addClass('current');
		
		id = $(this).attr('id');
		
		obj = $('#atab_'+id.split('_')[1]);
		if (obj.length == 1) selecttab(obj);
		
		
		 
		createCookie('starthesh', id.split('_')[1] , 30);
 
		return true;
	});
	
		
});


function hl(id){
	 
	if (document.getElementById('top_' + id)) {
		document.getElementById('top_' + id).innerHTML = '<b>' + document.getElementById('top_' + id).innerHTML + '</b>';
		document.getElementById('top_' + id).className += ' current ';
	}
}

/*
	Cookie set wraper 
*/

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}
