function setVisibility(_item) {
	document.getElementById('sendMessage').style.display = 'none';
	document.getElementById('postComment').style.display = 'none';
	document.getElementById('sendSms').style.display = 'none';
	_status = document.getElementById(_item).style.display;
	if (_status == 'none')
	document.getElementById(_item).style.display = 'block';
	else document.getElementById(_item).style.display = 'none';
}
function setHighlight(_item) {
	document.getElementById('sSMS').src='http://www1.garantiarkadas.com/images/i/send_sms.gif';
	document.getElementById('sMSG').src='http://www1.garantiarkadas.com/images/i/send_mesaj.gif';
	document.getElementById('sCMT').src='http://www1.garantiarkadas.com/images/i/send_yorum.gif';
	if (_item == 'sSMS')
	document.getElementById(_item).src = 'http://www1.garantiarkadas.com/images/i/send_sms_highlight.png';
	else if (_item == 'sCMT')
	document.getElementById(_item).src = 'http://www1.garantiarkadas.com/images/i/send_yorum_highlight.png';
	else if (_item == 'sMSG')
	document.getElementById(_item).src = 'http://www1.garantiarkadas.com/images/i/send_mesaj_highlight.png';
}
function setBlockVisibility(_item) {
	var _current;
	_current = document.getElementById(_item).style.display;
	if (_current == 'none') {
		document.getElementById(_item).style.display = 'block';
		setImage('boxId', 'http://www1.garantiarkadas.com/images/top.gif');
	} else {
		document.getElementById(_item).style.display = 'none';
		setImage('boxId', 'http://www1.garantiarkadas.com/images/down.gif');
	}
}
function setImage(_item, _image) {
	document.getElementById(_item).src = _image;
}
function menuCizgisi(hucre) {
	document.getElementById('itemAra').style.backgroundColor = '';
	document.getElementById('itemGiris').style.backgroundColor = '';
	document.getElementById('itemOyla').style.backgroundColor = '';
	document.getElementById('itemPaylas').style.backgroundColor = '';
	document.getElementById('itemKatil').style.backgroundColor = '';
	document.getElementById('itemYardim').style.backgroundColor = '';
	if (hucre == 'itemAra')
	document.getElementById(hucre).style.backgroundColor = '#d6e427';
	else if (hucre == 'itemOyla')
	document.getElementById(hucre).style.backgroundColor = '#d6e427';
	else if (hucre == 'itemGiris')
	document.getElementById(hucre).style.backgroundColor = '#ff0000';
	else if (hucre == 'itemPaylas')
	document.getElementById(hucre).style.backgroundColor = '#d6e427';
	else if (hucre == 'itemKatil')
	document.getElementById(hucre).style.backgroundColor = '#d6e427';
	else if (hucre == 'itemYardim')
	document.getElementById(hucre).style.backgroundColor = '#d6e427';
}
function ajaxRatingLoad( _prefix_ , _top_ , _current_ ) {
	for (i = 1 ; i <= _top_ ; i++) {
		if (i <= _current_)
		document.getElementById(_prefix_ + '_' + i).src = 'http://www1.garantiarkadas.com/images/ajax/star_2.gif';
		else document.getElementById(_prefix_ + '_' + i).src = 'http://www1.garantiarkadas.com/images/ajax/star_0.gif';
	}
}
function ajaxRatingAction( _prefix_ , _top_ , _current_ ) {
	for (i = 1 ; i <= _top_ ; i++) {
		if (i <= _current_)
		document.getElementById(_prefix_ + '_' + i).src = 'http://www1.garantiarkadas.com/images/ajax/star_1.gif';
		else document.getElementById(_prefix_ + '_' + i).src = 'http://www1.garantiarkadas.com/images/ajax/star_0.gif';
	}
}

function hideTribe() {
	if (document.getElementById('hiddenTribe').checked) {
		document.getElementById('confirmJoin').checked=false;
		document.getElementById('confirmJoin').disabled=true;
	} else {
		document.getElementById('confirmJoin').disabled=false;
	}
}