﻿document.writeln("<style type=\"text/css\">");
document.writeln("#topbar{");
document.writeln("position:absolute;");
document.writeln("border: 1px solid black;");
document.writeln("padding: 4px;");
document.writeln("");
document.writeln("width: 240px;");
document.writeln("visibility: hidden;");
document.writeln("z-index: 0;");
document.writeln("}");
document.writeln("<\/style>");
document.writeln("<script type=\"text/javascript\">");
document.writeln("var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session");
document.writeln("var startX = 111 //set x offset of bar in pixels");
document.writeln("var startY = 165 //set y offset of bar in pixels");
document.writeln("var verticalpos=\"fromtop\" //enter \"fromtop\" or \"frombottom\"");
document.writeln("");
document.writeln("function iecompattest(){");
document.writeln("return (document.compatMode && document.compatMode!=\"BackCompat\")? document.documentElement : document.body");
document.writeln("}");
document.writeln("function get_cookie(Name) {");
document.writeln("var search = Name + \"=\"");
document.writeln("var returnvalue = \"\";");
document.writeln("if (document.cookie.length > 0) {");
document.writeln("offset = document.cookie.indexOf(search)");
document.writeln("if (offset != -1) {");
document.writeln("offset += search.length");
document.writeln("end = document.cookie.indexOf(\";\", offset);");
document.writeln("if (end == -1) end = document.cookie.length;");
document.writeln("returnvalue=unescape(document.cookie.substring(offset, end))");
document.writeln("}");
document.writeln("}");
document.writeln("return returnvalue;");
document.writeln("}");
document.writeln("function closebar(){");
document.writeln("if (persistclose)");
document.writeln("document.cookie=\"remainclosed=1\"");
document.writeln("document.getElementById(\"topbar\").style.visibility=\"hidden\"");
document.writeln("}");
document.writeln("function staticbar(){");
document.writeln("barheight=document.getElementById(\"topbar\").offsetHeight");
document.writeln("var ns = (navigator.appName.indexOf(\"Netscape\") != -1) || window.opera;");
document.writeln("var d = document;");
document.writeln("function ml(id){");
document.writeln("var el=d.getElementById(id);");
document.writeln("if (!persistclose || persistclose && get_cookie(\"remainclosed\")==\"\")");
document.writeln("el.style.visibility=\"visible\"");
document.writeln("if(d.layers)el.style=el;");
document.writeln("el.sP=function(x,y){this.style.left=x+\"px\";this.style.top=y+\"px\";};");
document.writeln("el.x = startX;");
document.writeln("if (verticalpos==\"fromtop\")");
document.writeln("el.y = startY;");
document.writeln("else{");
document.writeln("el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;");
document.writeln("el.y -= startY;");
document.writeln("}");
document.writeln("return el;");
document.writeln("}");
document.writeln("window.stayTopLeft=function(){");
document.writeln("if (verticalpos==\"fromtop\"){");
document.writeln("var pY = ns ? pageYOffset : iecompattest().scrollTop;");
document.writeln("ftlObj.y += (pY + startY - ftlObj.y)/8;");
document.writeln("}");
document.writeln("else{");
document.writeln("var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;");
document.writeln("ftlObj.y += (pY - startY - ftlObj.y)/8;");
document.writeln("}");
document.writeln("ftlObj.sP(ftlObj.x, ftlObj.y);");
document.writeln("setTimeout(\"stayTopLeft()\", 10);");
document.writeln("}");
document.writeln("ftlObj = ml(\"topbar\");");
document.writeln("stayTopLeft();");
document.writeln("}");
document.writeln("if (window.addEventListener)");
document.writeln("window.addEventListener(\"load\", staticbar, false)");
document.writeln("else if (window.attachEvent)");
document.writeln("window.attachEvent(\"onload\", staticbar)");
document.writeln("else if (document.getElementById)");
document.writeln("window.onload=staticbar");
document.writeln("<\/script>");
document.writeln("<\/head>");
document.writeln("<div id=\"topbar\" style=\"padding:0; border:0px ridge #808080; position:absolute; left:0; top:100%; width:274px; z-index:0\" align=\"center\">");
document.writeln("<p align=\"center\" style=\"margin-top: 0; margin-bottom: 0\">");
document.writeln("<a href=\"/\" onClick=\"closebar(); return false\"><img src=\"images/close.gif\" border=\"0\" alt=\"اغلق الاعلان من هنا\" align=\"top\" /><\/a><a href=\"/register.php\"><img border=\"0\" src=\"images/reg.gif\" alt=\"للمشاركة في الموقع\"><\/a>");
document.writeln("<\/div>");