/****************************** Draggable Window: JS+CSS JS designed by Rog�rio Alencar Lino Filho email: rogeriolino@gmail.com http://rogeriolino.wordpress.com/ ******************************/ var id = "janela"; // //addStyle var style = document.createElement("link"); style.setAttribute("rel", "stylesheet"); style.setAttribute("type", "text/css"); style.setAttribute("href", "scripts/style.css"); document.getElementsByTagName("head").item(0).appendChild(style); // function selecao(target, act){ if (!act) { if (typeof target.onselectstart != "undefined") //IE route target.onselectstart = function() { return false; } else if (typeof target.style.MozUserSelect != "undefined") //Firefox route target.style.MozUserSelect = "none"; else //All other route (ie: Opera) target.onmousedown = function() { return false; } } else { if (typeof target.onselectstart != "undefined") //IE route target.onselectstart = function() { return true; } else if (typeof target.style.MozUserSelect != "undefined") //Firefox route target.style.MozUserSelect = "none"; else //All other route (ie: Opera) target.onmousedown = function() { return true; } } } // // // function fechar() { document.getElementById(id).style.visibility = "hidden"; } function abrir() { document.getElementById(id).style.visibility = "visible"; } // //