wndSolicitacao = new Object();
wndSolicitacao.closed = true;

wndCotacao = new Object();
wndCotacao.closed = true;

function openPopup(url) {
    Shadowbox.init({
        skipSetup: true
    });

    Shadowbox.open({
        player:     'iframe',
        content:    url,
		height:		500,
		width:		477
    });
}

function openSite() {
	if (navigator.appName == "Netscape") {
		width = eval(screen.width);
		height = eval(screen.height);
		window.open("http://www.dartransportes.com.br/website.htm", "darhome", "width=" + width + ", height=" + height + ", channelmode, resizable, scrollbars").focus();
	}
	else window.open("http://www.dartransportes.com.br/website.htm", "darhome", "channelmode, resizable, scrollbars").focus();
}

function openSolicitacao() {
	if (!wndSolicitacao.closed) wndSolicitacao.close();
	
	wndSolicitacao = window.open("popup_solicitacao_de_container.htm", "solicitacao", "width=477, height=400, scrollbars");
}

function openCotacao() {
	if (!wndCotacao.closed) wndCotacao.close();
	
	wndCotacao = window.open("popup_cotacao_de_transporte.htm", "cotacao", "width=477, height=400, scrollbars");
}
