function getCookieVal (offset) {  

	var endstr = document.cookie.indexOf (";", offset);  

		if (endstr == -1)    

			endstr = document.cookie.length;  

		return unescape(document.cookie.substring(offset, endstr));

}



function GetCookie (name) {  

	var arg = name + "=";  

	var alen = arg.length;  

	var clen = document.cookie.length;  

	var i = 0;  



		while (i < clen) {    

			var j = i + alen;    

				if (document.cookie.substring(i, j) == arg)      

				return getCookieVal (j);    

				i = document.cookie.indexOf(" ", i) + 1;    

				if (i == 0) break;   

		}  

	return null;

}



var teste = GetCookie ("campogrande");

if (teste == null) {

	abrir = 1;

	document.cookie = "campogrande=1";

} else abrir = 0;





var estagioCorpo = 1;

var ma_titulo,ma_texto,tamanho;



function iniciaCorpo(t)

{

	tamanho = t.split(";");

	ma_titulo = document.getElementById("TituloMateria");

	ma_texto = document.getElementById("TextoMateria");

	

	if (estagioCorpo==2)

	{

   		estagioCorpo2();

	}else{

    	if (estagioCorpo==3)

    	{

      		estagioCorpo3();

    	}else{

      		if (estagioCorpo==4)

      		{

        		estagioCorpo4();

      		}else{

				estagioCorpo1();

      		}	

    	} 

	} 

}



function estagioCorpo1()

{

	if(ma_titulo) ma_titulo.style.fontSize = tamanho[0]+'px';

	if(ma_texto) ma_texto.style.fontSize = tamanho[1]+'px';

	estagioCorpo=1;

} 		



function estagioCorpo2()

{

   	if(ma_titulo) ma_titulo.style.fontSize = tamanho[2]+'px';

	if(ma_texto) ma_texto.style.fontSize = tamanho[3]+'px';

    estagioCorpo=2;

}



function estagioCorpo3()

{

   	if(ma_titulo) ma_titulo.style.fontSize = tamanho[4]+'px';

	if(ma_texto) ma_texto.style.fontSize = tamanho[5]+'px';

	estagioCorpo=3;

}



function estagioCorpo4()

{

	if(ma_titulo) ma_titulo.style.fontSize = tamanho[6]+'px';

	if(ma_texto) ma_texto.style.fontSize = tamanho[7]+'px';

	estagioCorpo=4;

}

		

function aumentaCorpo()

{

  if (estagioCorpo==1) 

  { 

    estagioCorpo2();

  }else{

  	if (estagioCorpo==2) {

 	 estagioCorpo3();		

  	}else{

  		if (estagioCorpo==3) {

    	 	estagioCorpo4();

  		}	

  	}	

  }

}



function diminuiCorpo()

{

  if (estagioCorpo==4) {

    estagioCorpo3();

  }else{

  	if (estagioCorpo==3) {

	  estagioCorpo2();

  	}else{

  		if (estagioCorpo==2) {		

		 estagioCorpo1();

  		}	

  	}	

  }	

}



NS4 = (document.layers);

          IE4 = (document.all);

         ver4 = (NS4 || IE4);

        isMac = (navigator.appVersion.indexOf("Mac") != -1);

       isMenu = (NS4 || (IE4 && !isMac));



       function popUp(){return};

       function popDown(){return};



       if (!ver4) event = null;

	   

	   

	   if (isMenu) {

           menuVersion = 3;



           menuWidth = 130;

           childOverlap = 50;

           childOffset = 5;

           perCentOver = null;

           secondsVisible = .5;



           fntCol = "white";

           fntSiz = "7";

           fntBold = false;

           fntItal = false;

           fntFam = "Verdana";



           backCol = "transparent";

           overCol = "blue";

           overFnt = "black";



           borWid = 0;

           borCol = "black";

           borSty = "solid";

           itemPad = 4;



           imgSrc = "arrow.gif";

           imgSiz = 9;



           separator = 1;

           separatorCol = "transparent";



           isFrames = false;      // <-- IMPORTANT for full window

           navFrLoc = "center";     // <-- display. see below



           keepHilite = true;

           NSfontOver = true;

           clickStart = false;

           clickKill = false;

       }



var Window_H, W, L1, T, T5, L2, L3, L4, L5;



	Window_H = screen.width;

	if(Window_H == 1280){

		W = 90;

		T = 125;

		T5 = 131;

		L1 = 308;

		L2 = 387;

		L3 = 466;

		L4 = 545;

		L5 = 624;

	}else{

		if(Window_H == 1152){

			W = 90;

			T = 125;

			T5 = 131;

			L1 = 245;

			L2 = 324;

			L3 = 403;

			L4 = 482;

			L5 = 561;

		}else{

			if(Window_H == 1024){

				W = 90;

				T = 125;

				T5 = 131;

				L1 = 181;

				L2 = 260;

				L3 = 339;

				L4 = 418;

				L5 = 497;

			}else{

				if(Window_H == 800){

					W = 90;

					T = 125;

					T5 = 0;

					L1 = 69;

					L2 = 148;

					L3 = 226;

					L4 = 306;

					L5 = 385;

				}//end if 800

			}//end if 1024

		}//end if 1152

	}//end if 1280
