var ROOT_SITE = "http://www.danyrose.com";

function writeTop(height, botao1, botao2, botao3, botao4){
	document.write('<table cellpadding="0" cellspacing="0" width="750" align="center" style="margin-top:10px; margin-right:5px">');
		document.write('<tr>');
			document.write('<td width="74" height="575"><div style="position:relative; z-index:1; margin-left:0px; margin-top:36px"><img src="'+ROOT_SITE+'/img/lateral_modelo.gif" alt="" border="0" align="right" style="margin-left:1px" onMouseOver="protege(this)"></div></td>');
			document.write('<td background="'+ROOT_SITE+'/img/back_fundo_border_center_med.gif" width="676" valign="top" height="575">');
				
				document.write('<div style="position:absolute; z-index:1; margin-top:128px"><img src="'+ROOT_SITE+'/img/modelo_parte2.gif" alt="" border="0"></div>');
				
				document.write('<table cellpadding="0" cellspacing="0" align="center" width="676">');
					document.write('<tr>');
						document.write('<td><img src="'+ROOT_SITE+'/img/border_left_top_menu.gif" width="5" height="33" alt="" border="0"></td>');
						document.write('<td background="'+ROOT_SITE+'/img/back_menu.gif" width="676">');
	
							document.write('<table cellpadding="0" cellspacing="0" align="left">');
								document.write('<tr>');
									document.write('<td width="9"></td>');
									document.write('<td><a href="'+ROOT_SITE+'/empresa.php"><img src="'+ROOT_SITE+'/img/' + botao1 + '.gif" alt="" border="0"></a></td>');
									document.write('<td width="9"></td>');
									document.write('<td><a href="'+ROOT_SITE+'/modelos/lancamentos/index.php"><img src="'+ROOT_SITE+'/img/' + botao2 + '.gif" alt="" border="0"></a></td>');
									document.write('<td width="9"></td>');
									document.write('<td><a id="abreMENU" href="javascript:void(null)" onMouseOver="if (menus){menus[0].onmouseover(this)}" onMouseOut="if (menus){menus[0].onmouseout()}"><img src="'+ROOT_SITE+'/img/' + botao3 + '.gif" alt="" border="0"></a></td>');
									document.write('<td width="9"></td>');
									document.write('<td><a href="'+ROOT_SITE+'/contato.php"><img src="'+ROOT_SITE+'/img/' + botao4 + '.gif" alt="" border="0"></a></td>');
								document.write('</tr>');
							document.write('</table>');
						
							document.write('<div id="Layer1" style="position:absolute; left:547px; top:70px; width:120px; padding:0px; z-index:1000; background-color:#F9B66C; border-top:1px solid #D6DDE5; border-left:1px solid #D6DDE5; font-size:10px; color:#557888; border-right:1px solid #D6DDE5; visibility:hidden; margin-top:12px"></div>');
								document.write('<div id="menu" style="position:absolute; top:10px; left:10px; width:400px; height:23px; z-index:1000;"></div>');
						
						document.write('</td>');
						document.write('<td><img src="'+ROOT_SITE+'/img/border_right_top_menu.gif" width="5" height="33" alt="" border="0"></td>');
					document.write('</tr>');
					document.write('<tr>');
						document.write('<td><img src="'+ROOT_SITE+'/img/bloco_conteudo_border_left_top.gif" alt="" border="0"></td>');
						document.write('<td background="'+ROOT_SITE+'/img/bloco_conteudo_border_center_top.gif" width="676"></td>');
						document.write('<td><img src="'+ROOT_SITE+'/img/bloco_conteudo_border_right_top.gif" alt="" border="0"></td>');
					document.write('</tr>');
					document.write('<tr>');
						document.write('<td background="'+ROOT_SITE+'/img/bloco_conteudo_border_left_center.gif" width="5"></td>');
						document.write('<td width="686" bgcolor="white" height="' + height + '" valign="top">');
							document.write('<div style="position:absolute; z-index:1000; top:' + (height-30) + 'px; margin-right:20px;">');
								document.write('<div style="background-image:url('+ROOT_SITE+'/img/rodape.gif); width:685px; height:73px">');
									document.write('<a href="'+ROOT_SITE+'/modelos/praia/index.php"><div style="cursor:hand; pointer:hand; margin-left:15px; width:80px; height:15px; margin-top:8px; float:left"></div></a>');
									document.write('<a href="'+ROOT_SITE+'/modelos/dia/index.php"><div style="cursor:hand; pointer:hand; margin-left:12px; width:95px; height:18px; margin-top:14px; float:left"></div></a>');
									document.write('<a href="'+ROOT_SITE+'/modelos/sensual/index.php"><div style="cursor:hand; pointer:hand; margin-left:23px; width:80px; height:20px; margin-top:28px; float:left"></div></a>');
								document.write('</div>');
							document.write('</div>');
							document.write('<table cellpadding="0" cellspacing="0" align="center" width="100%">');
								document.write('<tr>');
									document.write('<td colspan="3" valign="top">');
										document.write('<div style="position:relative; z-index:1"><img src="'+ROOT_SITE+'/img/madeira.gif" alt="" border="0"></div>');
									document.write('</td>');
								document.write('</tr>');
								document.write('<tr>');
									document.write('<!-- INÍCIO LATERAL DO SITE -->');
									document.write('<td valign="top" width="38%">');
										document.write('<div style="margin:5px">');
											document.write('<a href="'+ROOT_SITE+'/index.php"><img src="'+ROOT_SITE+'/img/logo.gif" alt="" border="0"></a>');
											document.write('<div style="background-image:url('+ROOT_SITE+'/img/back_lateral.gif); width:248px; height:372px">');
												document.write('<div style="float:left; width:100px">&nbsp;');
												document.write('</div>');
												document.write('<div style="float:left; width:148px">');
													document.write('<div style="margin-top:20px">');
														document.write('<b style="color:#557888">Coleção 2007</b>');
														document.write('<div style="margin-top:10px; line-height:19px; text-align:right">');
															document.write('Imagine Sedução: Agora conquiste com a lingerie afrodisíaca Dany&Rose Arrasse com a magia do momento.');
															document.write('<table style="margin-top:15px">');
																document.write('<tr>');
																	document.write('<td align="right"><img src="'+ROOT_SITE+'/img/mais.gif" width="11" height="11" alt="" border="0"></td>');
																	document.write('<td align="right"><a href="empresa.php" class="link_lateral">Saiba mais</a></td>');
																document.write('</tr>');
															document.write('</table>');
															document.write('<div class="div_menu_lateral"></div>');
															document.write('<table cellpadding="3" cellspacing="3" style="margin-top:0px" width="100%">'); 
																document.write('<tr>');
																	document.write('<td class="item_menu_lateral"><a href="'+ROOT_SITE+'/contato.php" class="link_menu_lateral">Faça seu pedido</a></td>');
																	document.write('<td class="item_menu_lateral"><img src="'+ROOT_SITE+'/img/item_menu.gif" width="5" height="5" alt="" border="0"></td>');
																document.write('</tr>');
															document.write('</table>');
														document.write('</div>');
														document.write('<div style="margin-top:5px; margin-left:12px">');
														document.write('<b style="color:#557888">Modelos da capa</b>');
															
															document.write('<table cellpadding="2" cellspacing="2" style="margin-top:10px">'); 
																document.write('<tr>');
																	document.write('<td valign="middle"><img src="'+ROOT_SITE+'/img/item_menu.gif" width="5" height="5" alt="" border="0"></td>');
																	document.write('<td valign="middle" style="font-size:9px">Bruna F. Máximo</td>');
																document.write('</tr>');
																document.write('<tr>');
																	document.write('<td valign="middle"><img src="'+ROOT_SITE+'/img/item_menu.gif" width="5" height="5" alt="" border="0"></td>');
																	document.write('<td valign="middle" style="font-size:9px">Caique F. Máximo</td>');
																document.write('</tr>');
															document.write('</table>');
															
															/*
															document.write('<table cellpadding="1" cellspacing="1" align="right" style="margin-top:6px">');
																document.write('<tr>');
																	document.write('<td>');
																		document.write('<a href="'+ROOT_SITE+'/downloads/video.zip"><img src="'+ROOT_SITE+'/img/bt_video.gif" width="138" height="14" alt="" border="0"></a>');
																	document.write('</td>');
																document.write('</tr>');
															document.write('</table>');
															*/

															document.write('<table cellpadding="1" cellspacing="1" align="right" style="margin-top:26px; margin-left:6px">');
																document.write('<tr>');
																	document.write('<td>');
																		document.write('<a href="http://webmail.danyrose.com/" target="_blank"><img src="'+ROOT_SITE+'/img/webmail.gif" alt="" border="0"></a>');
																	document.write('</td>');
																document.write('</tr>');
															document.write('</table>');
															
													document.write('</div>');
												document.write('</div>');
											document.write('</div>');
										document.write('</div>');
									document.write('</td>');
									document.write('<!-- FIM LATERAL DO SITE -->');
									document.write('<td width="1%" align="right"><img src="'+ROOT_SITE+'/img/divisor_lateral.gif" width="4" height="420" alt="" border="0"></td>');

						
}


function writeBottom(height){
								document.write('<!-- INÍCIO RODAPÉ -->');
								document.write('<tr>');
									document.write('<td colspan="3">');
										document.write('<div class="div_rodape" style="margin-top:' + (height-500) + 'px;">');
											document.write('<div class="zis">');
												document.write('Desenvolvido por ZIS');
											document.write('</div>');
											document.write('<div class="end_site">');
												document.write('www.danyrose.com');
											document.write('</div>');
										document.write('</div>');
									document.write('</td>');
								document.write('</tr>');
								document.write('<!-- FIM RODAPÉ -->');
							document.write('</table>');
						document.write('<!-- CONTEÚDO DO SITE -->');
					document.write('</td>');
					document.write('<td background="'+ROOT_SITE+'/img/bloco_conteudo_border_right_center.gif" width="5"></td>');
				document.write('</tr>');
				document.write('<tr>');
					document.write('<td><img src="'+ROOT_SITE+'/img/bloco_conteudo_border_left_bottom.gif" alt="" border="0"></td>');
					document.write('<td background="'+ROOT_SITE+'/img/bloco_conteudo_border_center_bottom.gif" width="676"></td>');
					document.write('<td><img src="'+ROOT_SITE+'/img/bloco_conteudo_border_right_bottom.gif" alt="" border="0"></td>');
				document.write('</tr>');
			document.write('</table>');
			document.write('<!-- FIM DO CONTEÚDO DO BLOCO BACK (BLOCO PRINCIPAL)  -->');
		document.write('</td>');
	document.write('</tr>');
document.write('</table>');
}











function menu(){

	submenu = [];
	for(i=0; i<1; i++) submenu[i] = [];
	textmenu = [];
	for(i=0; i<1; i++) textmenu[i] = [];
	textmenu[0][0] = ["Moda Praia","Moda Dia e Noite","Moda Sensual"]
	textmenu[0][1] = ["modelos/praia/index.php","modelos/dia/index.php","modelos/sensual/index.php"];
	menus = [];
	if(document.getElementById){
		menus[0] = document.getElementById("Layer1");
		menuinterno = document.getElementById("menu");
		//menu.setAttribute("position","absolute")
		function over(){ this.style.backgroundColor = 'white'; }
		function out(){ this.style.backgroundColor = '#EBF0F5'; }
		function show(obj){
			this.style.visibility='visible';
		}
		function hide(){ this.style.visibility='hidden'; }
		for(j=0; j<textmenu.length; j++){	
			for (i=0; i<textmenu[j][0].length; i++){
				//alert(textmenu[j][0][i])
				textmenu[j][0][i] = "<a href='"+ROOT_SITE+'/'+textmenu[j][1][i]+"' style='color:#557888; text-decoration:none'>" + textmenu[j][0][i] + "</a>";
				submenu[j][i] = document.createElement("DIV");
				submenu[j][i].setAttribute("className", "special");
				submenu[j][i].innerHTML = textmenu[j][0][i];
				submenu[j][i].style.padding = "3px";
				submenu[j][i].onmouseover = over;
				submenu[j][i].onmouseout = out;
				menus[j].appendChild(submenu[j][i]);
			}
			var metrics = getObjectMetrics( document.getElementById("abreMENU") );
			if ( metrics ) {
				menus[j].style.top = metrics.y+20;
				menus[j].style.left = metrics.x;
			}

			
			
//			menus[j].style.top = (parseInt(menuinterno.style.top)+parseInt(menuinterno.style.height));
			menus[j].onmouseover = show;
			menus[j].onmouseout = hide;
		}
		
	}
}


function getObjectMetrics(objTemp){
	if (!objTemp) return false;
	var metrics = {w:objTemp.offsetWidth, h:objTemp.offsetHeight, x:0, y:0, xw:0, yh:0};
	do{
		metrics.x += objTemp.offsetLeft;
		metrics.y += objTemp.offsetTop;
		objTemp = objTemp.offsetParent;
	}while(objTemp.tagName != "BODY")
	metrics.xw = (metrics.w + metrics.x);
	metrics.yh = (metrics.h + metrics.y);
	return metrics;
}

var message = 'Direitos de imagem reservados.';
/**
 * Other functions
*/
var ie  = document.all && !document.getElementById;
var dom = document.getElementById;
var ns  = document.layers;


function clickIe()
{
    if (document.all)
    {
        alert(message);
        return false;
    }
}
function clickNs(e)
{
    if (ns || (dom && !document.all))
    {
        if (e.which == 2 || e.which == 3)
        {
            alert(message);
            return false;
        }
    }
}
function protege(imagem)
{
    if (dom && !document.all)
    {
        document.captureEvents(Event.MOUSEDOWN);
        if (document.images)
        {
            imagem.onmousedown = clickNs;
        }
    }
    else
    {
        if (document.images)
        {
            document.onmouseup   = clickNs;
            imagem.oncontextmenu = clickIe;
        }
    }
}




