// JavaScript Document
function popCor(imagem, width, height, posx, posy){
        delete page;
		delete name;
		var page = "popCor.htm";
        var name = "popCores";
		
		if (width == null){
			var width = 350;
			var height = 312;
			//var posx = 0;
			//var posy = 0;
		}
		if (posx == null){
			var posx = (window.screen.width/2) - (width / 2) - 5;
			var posy = (window.screen.height/2) - (height / 2) - 15;
		}
		
		var settings = "status = "+ 0 +
			",toolbar = "+ 0 +
			",location = "+ 0 +
			",menubar = "+ 0 +
			",directories = "+ 0 +
			",scrollbars = "+ 0 +
			",fullscreen= "+ 0 +
			",width = "+ width +
			",height = "+ height +
			",left = "+ posx +
			",top = "+ posy +
			",screenX = "+ posx +
			",screenY = "+ posy;
			openex01 = window.open(page, name, settings);
		if(openex01){
			//alert(imagem);
			openex01.document.open();
			openex01.document.write("<html><head>\n");
			openex01.document.write("<title>Kryolan</title>\n");
			openex01.document.write("<link href=\"css/estilo.css\" rel=\"stylesheet\" type=\"text/css\">\n");
			openex01.document.write("</head><body style=' background:none; background-color:#ffffff;'>\n");
			openex01.document.write("<table style=' background:none; background-color:#ffffff;' width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#E3E4E8\">\n");
			openex01.document.write("<tr><td>\n");
			openex01.document.write("<a href=\"javascript:window.close();\"><img src=\"img/cores/paineis/"+ imagem +"\" alt=\"Fechar\" width=\""+ width +"\" height=\""+ height +"\" border=\"0\" /></a>\n");
			openex01.document.write("</td></tr>\n");
			openex01.document.write("</table>\n");
			openex01.document.write("</body></html>\n");
			//openex01.document.write("hahaha");
			openex01.document.close();
			openex01.focus();
			return false;
		}
}

function popFoto(imagem, width, height, posx, posy){
        delete page;
		delete name;
		var page = "popCor.htm";
        var name = "popCores";
		
		if (width == null){
			var width = 350;
			var height = 312;
			//var posx = 0;
			//var posy = 0;
		}
		if (posx == null){
			var posx = (window.screen.width/2) - (width / 2) - 5;
			var posy = (window.screen.height/2) - (height / 2) - 15;
		}
		
		var settings = "status = "+ 0 +
			",toolbar = "+ 0 +
			",location = "+ 0 +
			",menubar = "+ 0 +
			",directories = "+ 0 +
			",scrollbars = "+ 0 +
			",fullscreen= "+ 0 +
			",width = "+ width +
			",height = "+ height +
			",left = "+ posx +
			",top = "+ posy +
			",screenX = "+ posx +
			",screenY = "+ posy;
			openex01 = window.open(page, name, settings);
		if(openex01){
			//alert(imagem);
			openex01.document.open();
			openex01.document.write("<html><head>\n");
			openex01.document.write("<title>Kryolan</title>\n");
			openex01.document.write("<link href=\"css/estilo.css\" rel=\"stylesheet\" type=\"text/css\">\n");
			openex01.document.write("</head><body style='background-color:#E8EAE9;'>\n");
			openex01.document.write("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#E3E4E8\">\n");
			openex01.document.write("<tr><td>\n");
			openex01.document.write("<a href=\"javascript:window.close();\"><img src=\"img/"+ imagem +"\" alt=\"Fechar\" width=\""+ width +"\" height=\""+ height +"\" border=\"0\" /></a>\n");
			openex01.document.write("</td></tr>\n");
			openex01.document.write("</table>\n");
			openex01.document.write("</body></html>\n");
			//openex01.document.write("hahaha");
			openex01.document.close();
			openex01.focus();
			return false;
		}
}