// JavaScript Document
function buildFlash(strSWF, w, h) {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
    document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="' + w + '" height="' + h + '">');
    document.write('<param name="movie" value="swf/' + strSWF + '.swf">');
    document.write('<param name="quality" value="high">');
    document.write('<param name="wmode" value="transparent">');
    document.write('<param name="menu" value="false">');
    document.write('<embed src="swf/' + strSWF + '.swf" width="' + w + '" height="' + h + '" quality="high"');
    document.write('pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"');
    document.write('type="application/x-shockwave-flash" wmode="transparent" menu="false"></embed>');
    document.write('</object>');
    
}

function controleLink(ref) {

	var ext = '.aspx';
    
	switch (ref) {
        case 'ep':
            window.open('empresa'+ext, '_self');
            break;
        case 'se':
            window.open('servicos'+ext, '_self');
            break;
        case 'nc':
            window.open('cursos'+ext, '_self');
            break;
        case 'in':
            window.open('insight'+ext, '_self');
            break;
        case 'co':
            window.open('contato'+ext, '_self');
            break;			
        default:
            window.open('index'+ext, '_self');
    }

}

function openPop(nmJan, w, h) {
    window.open(nmJan, "englishCallPop", "top=10, left=10, width=" + w + ", height=" + h + ", resizable=0, scrollbar=0, menubar=0");
}