/*
 * Detectar Resolução
 * Copyright 2008 Digicle Comunicação - http://www.digicle.com.br
 * $Date: 2008/09/30 11:01:10 $
 * $Revision: 2.1 $
 */

function Danisuzuki() {

var n=navigator.appName;
var v=parseInt(navigator.appVersion);
var browsok=((n=="Netscape")&&(v>=4));
var browsok2=((n=="Microsoft Internet Explorer")&&(v>=4));

var screen_height = screen.height;
var screen_width = screen.width;
var buffer = (document.all || document.layers) ? 30 : 48;

if ((browsok&&screen_height == 768) || (browsok2&&screen_height == 768)) {
	screen_width = 1024;
	screen_height = 768;
	 var window_width = 1024-12;
     var window_height = 768-buffer;
     var window_top = 0;
     var window_left = 0;
     window.open('http://www2.uol.com.br/syang/teste/1024/index.html','','resizable=yes,location=0,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');
	 
} else if ((browsok&&screen_width == 1152) || (browsok2&&screen_width == 1152)) {
	screen_width = 1152;
	screen_height = 864;
	var window_width =  1152-12;
    var window_height = 864-buffer;
	var window_top = 0;
    var window_left = 0;
    window.open('http://www2.uol.com.br/syang/teste/1024/index.html','','resizable=yes,location=0,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');

} else if ((browsok&&screen_height == 800) || (browsok2&&screen_height == 800)) {
	//screen_width = 1280;
screen_width = 1024;
	screen_height = 800;
	var window_width =  1280-12;
    var window_height = 800-buffer;
	var window_top = 0;
    var window_left = 0;
    window.open('http://www2.uol.com.br/syang/teste/1024/index.html','','resizable=yes,location=0,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');

} else if ((browsok&&screen_width >= 1280) || (browsok2&&screen_width >= 1280)) {
	screen_width = 1280;
	screen_height = 1024;
	var window_width =  1280-12;
    var window_height = 1024-buffer;
	var window_top = 0;
    var window_left = 0;
    window.open('http://www2.uol.com.br/syang/teste/1280/index.html','','resizable=yes,location=0,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');

} else if ((browsok&&screen_height == 600) || (browsok2&&screen_height == 600)) {
	screen_width = 800;
	screen_height = 600;
	var window_width =  800-12;
    var window_height = 600-buffer;
	var window_top = 0;
    var window_left = 0;
    window.open('http://www2.uol.com.br/syang/teste/800/index.html','','resizable=yes,location=0,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + '');

}
}
//ScreenGoToURL('/1024/index.html','noconfig.html','/1280/index.html');

function Syang(){

	var window_height = screen.height
	var window_width = screen.width

	var lateral = (screen.width - 850)/2
	var topo    = eval(((screen.height - 710)/2) - 35)

	var buffer = (document.all || document.layers) ? 30 : 48;

	var largura = 850;
	var altura =  720;

	window.open("http://www2.uol.com.br/syang/teste/800/index.html","","resizeble=no, location=no, status=no,left="+lateral+",top="+topo+", width="+largura+",height="+altura);


}
