dom=document.getElementById;

var myimages=new Array()
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++)
	{
 	 		myimages[i]=new Image()											
 			myimages[i].src=preloadimages.arguments[i]
	}
}

function activeaza(buton)
 {
   if (document.images)
    {
		 	but=(dom)?document.getElementById(buton):document.all.prezentare
			buton_on="images/"+buton+"_on.jpg"
			but.src=buton_on
     }
 }

function dezactiveaza(buton)
 {
   if (document.images)
    {
      but=(dom)?document.getElementById(buton):document.all.prezentare
			buton_off="images/"+buton+"_off.jpg"
			but.src=buton_off
    }
 }

function on_yin()
{
if (document.images)
    {
		 	but=(dom)?document.getElementById("yinyang"):document.all.yinyang
			textyin=(dom)?document.getElementById("text_yin"):document.all.text_yin
			textyang=(dom)?document.getElementById("text_yang"):document.all.text_yang
			text_prez=(dom)?document.getElementById("text_prezentare"):document.all.text_prezentare
			x=but.src.lastIndexOf("/")
			but.src=but.src.substring(0,x+1)+"yin_on.jpg"
			text_prez.style.visibility="hidden"
			text_yang.style.visibility="hidden"
 			textyin.style.visibility="visible"
     }
}

function on_yang()
{
if (document.images)
    {
		 	but=(dom)?document.getElementById("yinyang"):document.all.yinyang
			textyang=(dom)?document.getElementById("text_yang"):document.all.text_yang
			textyin=(dom)?document.getElementById("text_yin"):document.all.text_yin
			text_prez=(dom)?document.getElementById("text_prezentare"):document.all.text_prezentare
			x=but.src.lastIndexOf("/")
			but.src=but.src.substring(0,x+1)+"yang_on.jpg"
			text_prez.style.visibility="hidden"
			textyin.style.visibility="hidden"
 			textyang.style.visibility="visible"
		 }
}

function off_yinyang()
{
if (document.images)
    {
		 	but=(dom)?document.getElementById("yinyang"):document.all.yinyang
			x=but.src.lastIndexOf("/")
			but.src=but.src.substring(0,x+1)+"yinyang_off.jpg"
			textyang=(dom)?document.getElementById("text_yang"):document.all.text_yang
			textyin=(dom)?document.getElementById("text_yin"):document.all.text_yin
			textprez=(dom)?document.getElementById("text_prezentare"):document.all.text_prezentare
			textyang.style.visibility="hidden"
			textyin.style.visibility="hidden"
 			textprez.style.visibility="visible"						
     }
}

function on_yin_dupa_fes()
{
if (document.images)
    {
		 	but=(dom)?document.getElementById("yinyang"):document.all.yinyang
			x=but.src.lastIndexOf("/")
			but.src=but.src.substring(0,x+1)+"yin_on.jpg"
     }
}

function on_yang_dupa_fes()
{
if (document.images)
    {
		 	but=(dom)?document.getElementById("yinyang"):document.all.yinyang
			x=but.src.lastIndexOf("/")
			but.src=but.src.substring(0,x+1)+"yang_on.jpg"
     }
}

function off_yinyang_dupa_fes()
{
if (document.images)
    {
		 	but=(dom)?document.getElementById("yinyang"):document.all.yinyang
			x=but.src.lastIndexOf("/")
			but.src=but.src.substring(0,x+1)+"yinyang_off.jpg"
     }
}

function mareste(i)
{
 if (document.images)
    {
		 	imag=(dom)?document.getElementById("central"):document.all.central
			x=imag.src.lastIndexOf("/")
			imag.src=imag.src.substring(0,x+1)+"mediu"+i+".jpg"
     }
}

function refa_centrul()
{
 			imag=(dom)?document.getElementById("central"):document.all.central
			x=imag.src.lastIndexOf("/")
			imag.src=imag.src.substring(0,x+1)+"indicatii.gif"
}

function rezolutie()
{
    dom=document.getElementById
	if (screen.width>1024)
	{
		dx=(screen.width-1010)/2
		dy=(screen.height-767)/2
		obj=(dom)?document.getElementById("tab"):document.getElementById.tab
		obj.style.position="absolute"
		obj.style.top=dy+"px"
		obj.style.left=dx+"px"
	}
	
}

function f()
{
}

function f_index()
{
 preloadimages ("images/site viu.jpg",
"images/prezentare_off.jpg", "images/prezentare_on.jpg",
"images/organizatori_off.jpg", "images/organizatori_on.jpg",
"images/obiective.jpg", "images/obiective_on.jpg",
"images/sectiuni_off.jpg", "images/sectiuni_on.jpg",
"images/participare_off.jpg", "images/participare_on.jpg",
"images/inscriere_off.jpg", "images/inscriere_on.jpg",
"images/inscrisi_off.jpg","images/inscrisi_on.jpg",
"images/program_off.jpg", "images/program_on.jpg",
"images/parteneri_off.jpg", "images/parteneri_on.jpg",
"images/nasturel.gif",
"images/back.jpg",
"images/english_flag.gif", "images/ffrancem.gif", "images/flag_ro.gif",
"images/yang_on.jpg","images/yin_on.jpg","images/yinyang_off.jpg",
"site_eng/images/inscrisi_off.jpg", "site_eng/images/inscrisi_on.jpg",
"site_eng/images/obiective_off.jpg", "site_eng/images/obiective_on.jpg",
"site_eng/images/organizatori_off.jpg", "site_eng/images/organizatori_on.jpg",
"site_eng/images/participare_off.jpg", "site_eng/images/participare_on.jpg",
"site_eng/images/prezentare_off.jpg", "site_eng/images/prezentare_on.jpg",
"site_eng/images/program_off","site_eng/images/program_on.jpg",
"site_eng/images/sectiuni_off","site_eng/images/sectiuni_on.jpg",
"site_eng/images/parteneri_off.jpg", "site_eng/images/parteneri_on.jpg",
"site_eng/images/site viu.jpg",
"site_fr/images/inscrisi_off.jpg", "site_fr/images/inscrisi_on.jpg",
"site_fr/images/obiective_off.jpg", "site_fr/images/obiective_on.jpg",
"site_fr/images/organizatori_off.jpg", "site_fr/images/organizatori_on.jpg",
"site_fr/images/participare_off.jpg", "site_fr/images/participare_on.jpg",
"site_fr/images/prezentare_off.jpg", "site_fr/images/prezentare_on.jpg",
"site_fr/images/program_off","site_fr/images/program_on.jpg",
"site_fr/images/sectiuni_off","site_fr/images/sectiuni_on.jpg",
"site_fr/images/parteneri_off.jpg", "site_fr/images/parteneri_on.jpg",
"site_fr/images/site viu.jpg");
}