/***************Descobrir qual navegador***************************************/
var browserV = navigator.appVersion;
var browserN = navigator.appName;

if(browserN == "Microsoft Internet Explorer")
    browserV = browserV.substr(17,20).substr(0,8);
else
    browserV = "All";

/***************Fim para descobrir qual navegador******************************/

//está função ajusta os elementos do site de acordo com o browser e a versão....isso tudo por causa da bosta do IE
function loadCss(x)
{
    if(browserV == "MSIE 6.0" || browserV == "MSIE 7.0")
    {
        try
        {
        	document.getElementById("imgLat1").style.marginTop = "10px";
        	
        	document.getElementById("main").style.width = "772px";
        	document.getElementById("main").style.marginLeft = "0";
        	
        	document.getElementById("bar").style.marginLeft = "-4px";
        	
			document.getElementById("conteudo").style.width = "394px";
			document.getElementById("conteudo").style.marginLeft = "6px";

			document.getElementById("menu").style.width = "180px";
			document.getElementById("leftBan").style.width = "176px";
			document.getElementById("lBan1").style.width = "176px";
			document.getElementById("lBan2").style.width = "176px";
			
			document.getElementById("g3br").style.marginLeft = "-295px";
			document.getElementById("g3br").style.marginTop = "-99px";
		}
        catch(EE){}
        
        try
        {
        	l = "12px";
        	
			document.getElementById("titulo").style.marginLeft = l;

			document.getElementById("imgPrin").style.marginLeft = l;
			
			document.getElementById("viewMenu").style.marginLeft = l;
			
			document.getElementById("viewProp").style.width = "662px";
			document.getElementById("viewProp").style.marginLeft = l;
		}
        catch(EE){}

    	if(x==0)
    	{
	        try
	        {
				document.getElementById("conteudo").style.width = "404px";
			}
	        catch(EE){}
	        
	        try
	        {
				document.getElementById("evtBooks").style.marginLeft = "38px";
			}
	        catch(EE){}
	        
	        try
	        {
				document.getElementById("evtFestas").style.marginLeft = "38px";
			}
	        catch(EE){}
	        
	        try
	        {
				document.getElementById("evtCasamentos").style.marginLeft = "38px";
			}
	        catch(EE){}
	        
	        try
	        {
				document.getElementById("contEvt").style.marginLeft = "5px";
			}
	        catch(EE){}
		}
    }

    if(browserV == "MSIE 7.0")
    {
        try
        {
			document.getElementById("conteudo").style.width = "404px";
		}
        catch(EE){}
    }
}

