// JavaScript Document
function tab_content(tab,id,count)
{
		for(i=1;i<=count;i++){
		document.getElementById('tab_'+tab+'_'+i).className ="tab_off";			
		}
	    document.getElementById('tab_'+tab+'_'+id).className ="tab_on";
		
		for(i=1;i<=count;i++){
		document.getElementById('tab_'+tab+i).style.display='none';			
		}
		document.getElementById('tab_'+tab+id).style.display='block';			
}


//--------------------- Content Slider -----------------------------//

function switch_content(type,id,count)
{
		for(i=1;i<=count;i++){
		
		document.getElementById(type+'_'+i).style.background = '';			
		}
		document.getElementById(type+'_'+id).style.background = '';
		
		for(i=1;i<=count;i++){
		document.getElementById(type+i).style.display='none';			
		}
		document.getElementById(type+id).style.display='block';			
}

//--------------------------------------------------------------------//

function createTarget(t){
window.open("", t, "width=250,height=300");
return true;
}



//-------------------------- switch fadin function --------------------------

function switch_fad(type,id,count)
{

		for(i=1;i<=count;i++){
		$("#"+type+i).css("display","none");
			document.getElementById(type+'_'+i).className='';					
		}
		$("#"+type+id).fadeIn("0");
			document.getElementById(type+'_'+id).className='active';							

}



