
function homepage()
{
    document.write('<object data="layouts/001/flash/intro.swf" type="application/x-shockwave-flash" width="100%" height="630">\n');
    document.write('<param name="movie" value="layouts/001/flash/intro.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('</object>\n');
}

function header()
{
    document.write('<object data="layouts/001/flash/homepage.swf" type="application/x-shockwave-flash" width="762" height="165">\n');
    document.write('<param name="movie" value="layouts/001/flash/homepage.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('</object>\n');
}

function header_delay()
{
    document.write('<object data="layouts/001/flash/homepage_interval.swf" type="application/x-shockwave-flash" width="762" height="165">\n');
    document.write('<param name="movie" value="layouts/001/flash/homepage_interval.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('</object>\n');
}

function winopen(theURL, Name, popW, popH, scroll) { // V 1.0
	var winleft = (screen.width - popW) / 2;
	var winUp = (screen.height - popH) / 2;
	winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable='+scroll
	Win = window.open(theURL, Name, winProp)
}

function toggledisplay(e){
	document.getElementById('fp1').style.display = 'none';
	document.getElementById('fp2').style.display = 'none';
	document.getElementById('fp3').style.display = 'none';

    document.getElementById(e).style.display = 'block';

	var bed1 = document.getElementById("bed1");
	var bed2 = document.getElementById("bed2");
	var	bed3 = document.getElementById("bed3");

	bed1.className="abid";	bed2.className="abid";	bed3.className="abid";
}


function getElement(id) { 
return document.all ? document.all(id) : 
document.getElementById ? document.getElementById(id) : 
document.layers ? document.layers[id] : null; 
} 

function vislayeron(id) { 
var el = getElement(id); 
if (!el) return; 
if (el.style) el.style.visibility = 'visible'; 
else if (el.visibility) el.visibility = 'show'; 
} 

function vislayeroff(id) { 
var el = getElement(id); 
if (!el) return; 
if (el.style) el.style.visibility = 'hidden'; 
else if (el.visibility) el.visibility = 'hide'; 
}


function numericVal(obj)   {

    var tam = obj.value.length;
    var numeric = false;
    for(var i=0;i<tam;i++)


        {
        	caracter = obj.value.charCodeAt(i);
        if((caracter >= 48 && caracter <= 57) )
        numeric = true;
        else

            {
            obj.value=obj.value.substring(0,tam-1);
            numericVal(obj);
        }

    }

}