function changeTab(tabBox,tab,totalTabs) {
	for (var i=1; i<=totalTabs; i++) {
		if ($('tab_'+tabBox+'_'+i).hasClassName('selected') && i !== tab) {
			$('tab_'+tabBox+'_'+i).removeClassName('selected');
		} else if (i == tab) {
			$('tab_'+tabBox+'_'+i).addClassName('selected');
		}
		if ($('tab_content_'+tabBox+'_'+tab).visible && i !== tab) {
			Element.hide('tab_content_'+tabBox+'_'+i);
		} else if (i == tab) {
			Element.show('tab_content_'+tabBox+'_'+i);
		}
	}
	//$('focus').focus();
	return false;
}
// JavaScript Document
startListNav = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
				this.className+=" over";
  			}
		node.onmouseout=function() {
			this.className=this.className.replace(" over", "");
		}
   	}
  }
 }
}
window.onload=startListNav;


startListFeatured = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("icerik_nesneleri");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
				this.className+=" over";
  			}
		node.onmouseout=function() {
			this.className=this.className.replace(" over", "");
		}
   	}
  }
 }
}
window.onload=startListFeatured;

startListFooterItems = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("icerik_nesneleri");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
				this.className+=" over";
  			}
		node.onmouseout=function() {
			this.className=this.className.replace(" over", "");
		}
   	}
  }
 }
}
window.onload=startListFooterItems;

featuredContentInit = function() {
	var max_visible = 3;
	var items_root_name = 'icerik_nesnesi_';
	var items_total_count = 6;
	for (var i=1;i<=items_total_count; i++) {
		if (i <= max_visible) {
			Element.show(items_root_name+i);
		} else {
			Element.hide(items_root_name+i);
		}
	}
	Element.show('icerik_nesneleri');
	$("gecerli_icerik_nesnesi").value = 3;
	return false;
}
window.onload=featuredContentInit;
function ozellikliIceriBari(dir) {
	var current_max = parseFloat($("gecerli_icerik_nesnesi").value);
	if (dir == 'next') {
		if ($('icerik_nesnesi_'+eval(current_max+1))) { // There's another item in the list
			Element.hide('icerik_nesnesi_'+eval(current_max-2));
			Element.show('icerik_nesnesi_'+eval(current_max+1));
			current_max++;
		}
	} else {
		if ($('icerik_nesnesi_'+eval(current_max-3))) { // There's another item in the list
			Element.hide('icerik_nesnesi_'+current_max);
			Element.show('icerik_nesnesi_'+eval(current_max-3));
			current_max--;
		}
	}
	$("gecerli_icerik_nesnesi").value = current_max;
	return false;
}
