	var biz_url = "/htm-webaxy";
	var edit_box = "ניהול תיבה";
	var edit_msg = "עריכת הודעה";
///////////////////////////////////////////////////////////////////////////
//              CONFIGURATION                       //
///////////////////////////////////////////////////////////////////////////
	// Board Configuration
	obj = new Object();
	obj.lang = "he";
	obj.Width = '300px';
	obj.Height = '120px';
	obj.boxType = 'relative';
	obj.Position = 'relative';
	obj.Left = 0;
	obj.Top = 0;
	obj.boxID = 17;
	obj.messages = new Array();
	obj.randomize= false;
	obj.pauseBetween=0;
	obj.nav_bar = '';
	// Message # 1 Configuration
message = new Object();
message.id = '128';
message.Msg = '';
message.EditMsg = 0;
message.tdStyle = 'background-image:;color:#000000;direction:rtl;font-family:Arial;background-color:#ffffff';
message.hideTitle = "1";
message.TitleText = " Peace Library Digitization Project at the MINERVA Conference";
message.Title = "";
message.TitleBold =  "<b>";
message.TitleBgcolor = "";
message.TitleFgcolor = "";
message.TitleFamily = "";
message.TitleSize = "";
message.TitleAlign = "";
message.Text = "<!-- RTE css=background-image:;color:#000000;direction:rtl;font-family:Arial;background-color:#ffffff&ftype=editor&lockEditor=0 RTE --><p align=\"left\"><font><span class=\"Apple-style-span\" style=\"font-size: 14px; \"><p class=\"MsoNormal\" dir=\"LTR\" style=\"text-align: center;direction: ltr; unicode-bidi: embed; \"><b>Peace Library Digitization Project </b>at the <b>MINERVA </b>Conference.&nbsp;</p><p class=\"MsoNormal\" dir=\"LTR\" style=\"text-align: center;direction: ltr; unicode-bidi: embed; \"><b><font class=\"Apple-style-span\" color=\"#004080\">Click here for new report &amp; presentations<span lang=\"HE\" dir=\"RTL\" style=\"font-family: Arial, sans-serif; \">.</span></font></b><span lang=\"HE\" dir=\"RTL\" style=\"color: rgb(0, 0, 0); font-family: Arial, sans-serif; \"><o:p></o:p></span></p></span><span class=\"Apple-style-span\" style=\"color: rgb(0, 0, 0); font-size: 12px; \"><img src=\"http://www.ifla.org/files/faife/news/palestinian-newspaper-1958.jpg\" style=\"text-align: center;border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 180px; height: 104px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-color: rgb(0, 0, 128); border-right-color: rgb(0, 0, 128); border-bottom-color: rgb(0, 0, 128); border-left-color: rgb(0, 0, 128); \" align=\"left\"></span></font></p>";
message.Bold = "";
message.Padding = "";
message.Align ="";
message.Image ="";
message.imgWidth ="";
message.imgAlign ="";
message.bgImage ="background-image:url();";
message.bgImgPosition ="";
message.bgImgRepeat ="";
message.Bgcolor = "";
message.Fgcolor = "";
message.Size = "";
message.BorderWidth = "";
message.BorderColor = "";
message.Effect = "none";
message.Interval = "9";
message.Link = "http://www.ifla.org/en/news/iflafaife-at-the-minerva-conference";
message.Target = "_blank";
message.Family = "Arial";
message.weekDaysShow = new Array(1,1,1,1,1,1,1);
message.dateOn = "";
message.dateOff = "";
message.timeOn = "";
message.timeOff = "";
message.icon = "";
message.mask = "";
obj.messages.push(message);
	// Message # 2 Configuration
message = new Object();
message.id = '260';
message.Msg = '';
message.EditMsg = 0;
message.tdStyle = 'color:#000000;background-image:;background-color:transparent;direction:rtl;font-family:inherit;';
message.hideTitle = "";
message.TitleText = "National Library professional team visits Givat Haviva's  Peace Library";
message.Title = "";
message.TitleBold =  "<b>";
message.TitleBgcolor = "";
message.TitleFgcolor = "";
message.TitleFamily = "";
message.TitleSize = "";
message.TitleAlign = "";
message.Text = "<!-- RTE css=color:#000000;background-image:;background-color:transparent;direction:rtl;font-family:inherit;&ftype=editor&lockEditor=0 RTE --><div style=\"text-align: center; \"><font class=\"Apple-style-span\" size=\"3\" style=\"font-size: 15px; \" color=\"#800000\"><b>National Library professional team visits Givat Haviva's &nbsp;Peace Library</b></font></div><div style=\"color: rgb(0, 0, 0); font-family: inherit; text-align: center; \"><img src=\"http://jnul.huji.ac.il/images/kotert.gif\" style=\"border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 200px; height: 39px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-color: rgb(0, 0, 128); border-right-color: rgb(0, 0, 128); border-bottom-color: rgb(0, 0, 128); border-left-color: rgb(0, 0, 128); \"></div><div style=\"font-family: inherit; text-align: center; \"><b><font class=\"Apple-style-span\" size=\"3\" style=\"font-size: 15px; \" color=\"#004080\">Click here for whole article</font></b></div>";
message.Bold = "";
message.Padding = "";
message.Align ="";
message.Image ="";
message.imgWidth ="";
message.imgAlign ="";
message.bgImage ="background-image:url();";
message.bgImgPosition ="";
message.bgImgRepeat ="";
message.Bgcolor = "";
message.Fgcolor = "";
message.Size = "";
message.BorderWidth = "";
message.BorderColor = "";
message.Effect = "fade";
message.Interval = "5";
message.Link = "http://www.givathaviva.org.il/english/library/nationallibrary.htm";
message.Target = "_self";
message.Family = "Arial";
message.weekDaysShow = new Array(1,1,1,1,1,1,1);
message.dateOn = "";
message.dateOff = "";
message.timeOn = "";
message.timeOff = "";
message.icon = "";
message.mask = "";
obj.messages.push(message);
	// Message # 3 Configuration
message = new Object();
message.id = '16';
message.Msg = '';
message.EditMsg = 0;
message.tdStyle = 'background-image:;color:#000000;background-color:#ffffff;direction:rtl;font-family:Arial;padding:0px;border-style:solid;border-width:0px; border-color:#e1e1e1;font-size:12px';
message.hideTitle = "1";
message.TitleText = "20,000 pages of Early Palestinian Newspapers Now Online, and growing";
message.Title = "";
message.TitleBold =  "<b>";
message.TitleBgcolor = "";
message.TitleFgcolor = "";
message.TitleFamily = "";
message.TitleSize = "";
message.TitleAlign = "";
message.Text = "<!-- RTE css=background-image:;color:#000000;background-color:#ffffff;direction:rtl;font-family:Arial;padding:0px;border-style:solid;border-width:0px; border-color:#e1e1e1;font-size:12px&ftype=editor&lockEditor=0 RTE --><p class=\"MsoNormal\" dir=\"LTR\" style=\"color: rgb(0, 0, 0); direction: ltr; text-align: center; unicode-bidi: embed; \"><font class=\"Apple-style-span\" size=\"3\" style=\"font-size: 15px; \"><span style=\"font-family: Arial, sans-serif; \"><img src=\"http://www.givathaviva.org.il/hebrew/library/fal.jpg\" style=\"border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 150px; height: 53px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-color: rgb(0, 0, 128); border-right-color: rgb(0, 0, 128); border-bottom-color: rgb(0, 0, 128); border-left-color: rgb(0, 0, 128); \"><br> </span></font></p><p class=\"MsoNormal\" dir=\"LTR\" style=\"color: rgb(0, 0, 0); direction: ltr; text-align: center; unicode-bidi: embed; \"><font class=\"Apple-style-span\" size=\"3\" style=\"font-size: 15px; \"><span style=\"font-family: Arial, sans-serif; \">20,000 pages of Early Palestinian Newspapers Now Online, and growing<o:p></o:p></span></font></p>  <p class=\"MsoNormal\" dir=\"LTR\" style=\"text-align: center; direction: ltr; unicode-bidi: embed; \"><span style=\"font-family: Arial, sans-serif; \"><font class=\"Apple-style-span\" size=\"3\" style=\"font-size: 15px; \" color=\"#004080\"><b>For the introduction page and link click here</b></font></span><span lang=\"HE\" dir=\"RTL\" style=\"color: rgb(0, 0, 0); font-size: medium; font-family: Arial, sans-serif; \"><o:p></o:p></span></p>";
message.Bold = "";
message.Padding = "";
message.Align ="";
message.Image ="";
message.imgWidth ="";
message.imgAlign ="";
message.bgImage ="background-image:url();";
message.bgImgPosition ="";
message.bgImgRepeat ="";
message.Bgcolor = "";
message.Fgcolor = "";
message.Size = "";
message.BorderWidth = "";
message.BorderColor = "";
message.Effect = "all";
message.Interval = "7";
message.Link = "http://www.givathaviva.org.il/english/library/310809_Greenston.htm";
message.Target = "_blank";
message.Family = "Arial";
message.weekDaysShow = new Array(1,1,1,1,1,1,1);
message.dateOn = "";
message.dateOff = "";
message.timeOn = "";
message.timeOff = "";
message.icon = "";
message.mask = "";
obj.messages.push(message);
	// Message # 4 Configuration
message = new Object();
message.id = '7';
message.Msg = '';
message.EditMsg = 0;
message.tdStyle = 'background-image:;color:#000000;background-color:#ffffff;direction:rtl;font-family:Arial;padding:0px;border-style:solid;border-width:0px; border-color:#e1e1e1;font-size:12px;';
message.hideTitle = "1";
message.TitleText = "Yale has added the Early Palestinian Press collection to its Near East resources";
message.Title = "";
message.TitleBold =  "<b>";
message.TitleBgcolor = "";
message.TitleFgcolor = "";
message.TitleFamily = "";
message.TitleSize = "";
message.TitleAlign = "";
message.Text = "<!-- RTE css=background-image:;color:#000000;background-color:#ffffff;direction:rtl;font-family:Arial;padding:0px;border-style:solid;border-width:0px; border-color:#e1e1e1;font-size:12px;&ftype=editor&lockEditor=0 RTE --><div style=\"font-family: Arial; text-align: center; \"><span class=\"Apple-style-span\" style=\"font-size: 12px; \"><img src=\"http://www.library.yale.edu/neareast/images/rt_col_03.jpg\" style=\"border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 200px; height: 40px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-color: rgb(0, 0, 128); border-right-color: rgb(0, 0, 128); border-bottom-color: rgb(0, 0, 128); border-left-color: rgb(0, 0, 128); \"></span></div><div style=\"text-align: center;\"><font class=\"Apple-style-span\" face=\"Arial\"><br> </font></div><div style=\"font-family: Arial; text-align: left; \"><p class=\"MsoNormal\" align=\"center\" dir=\"LTR\" style=\"text-align: center; direction: ltr; unicode-bidi: embed; \"><span class=\"apple-style-span\"><font class=\"Apple-style-span\" size=\"3\" style=\"font-size: 15px; \"><span style=\"font-family: Arial, sans-serif; color: black; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; \">Yale has added the <b>Early Palestinian Press collection</b> to its Near East resources</span><br> <font class=\"Apple-style-span\" color=\"#004080\"><b> Click here for Yale web page</b></font></font></span></p></div>";
message.Bold = "";
message.Padding = "";
message.Align ="";
message.Image ="";
message.imgWidth ="";
message.imgAlign ="";
message.bgImage ="background-image:url();";
message.bgImgPosition ="";
message.bgImgRepeat ="";
message.Bgcolor = "";
message.Fgcolor = "";
message.Size = "";
message.BorderWidth = "";
message.BorderColor = "";
message.Effect = "all";
message.Interval = "7";
message.Link = "http://www.library.yale.edu/neareast/general.html";
message.Target = "_blank";
message.Family = "Arial";
message.weekDaysShow = new Array(1,1,1,1,1,1,1);
message.dateOn = "";
message.dateOff = "";
message.timeOn = "";
message.timeOff = "";
message.icon = "";
message.mask = "";
obj.messages.push(message);
	// Message # 5 Configuration
message = new Object();
message.id = '13';
message.Msg = '';
message.EditMsg = 0;
message.tdStyle = 'background-image:;color:000000;direction:rtl;font-family:Arial;padding:0px;border-style:solid;border-width:0px;border-color:#e1e1e1;font-size:14px;background-color:#ffffff;';
message.hideTitle = "1";
message.TitleText = "The Folk Singer at the Library ";
message.Title = "";
message.TitleBold =  "<b>";
message.TitleBgcolor = "";
message.TitleFgcolor = "";
message.TitleFamily = "";
message.TitleSize = "";
message.TitleAlign = "";
message.Text = "<!-- RTE css=background-image:;color:000000;direction:rtl;font-family:Arial;padding:0px;border-style:solid;border-width:0px;border-color:#e1e1e1;font-size:14px;background-color:#ffffff;&ftype=editor&lockEditor=0 RTE --><div><div style=\"text-align: left;\"><span class=\"Apple-style-span\" style=\"font-family: Arial; font-size: medium; \"><b>The Folk Singer at the Library</b></span></div><font class=\"Apple-style-span\" size=\"3\"><span class=\"Apple-style-span\" style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; \"><img src=\"http://www.givathaviva.org.il//060409_peter2_1.jpg\" align=\"left\" style=\"text-align: left; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 73px; height: 150px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-color: rgb(0, 0, 128); border-right-color: rgb(0, 0, 128); border-bottom-color: rgb(0, 0, 128); border-left-color: rgb(0, 0, 128); \"></span></font><div style=\"color: rgb(0, 0, 0); font-family: Arial; \"><font class=\"Apple-style-span\"><p class=\"MsoNormal\" dir=\"LTR\" style=\"text-align: left; direction: ltr; unicode-bidi: embed; \"><b><font class=\"Apple-style-span\" color=\"#004080\" size=\"3\" style=\"font-size: 15px; \">to read more click here<span lang=\"HE\" dir=\"RTL\" style=\"font-family: Arial, sans-serif; \">..</span></font></b><span class=\"Apple-style-span\" style=\"font-size: 14px;\"><o:p></o:p></span></p>  <p class=\"MsoNormal\" dir=\"LTR\" style=\"font-size: 14px; color: rgb(0, 0, 0); text-align: left; direction: ltr; unicode-bidi: embed; \"><span lang=\"HE\" dir=\"RTL\" style=\"font-family:&quot;Arial&quot;,&quot;sans-serif&quot;; mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-hansi-font-family: Calibri;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:Arial;mso-bidi-theme-font: minor-bidi\"><o:p>&nbsp;</o:p></span></p></font></div></div>";
message.Bold = "";
message.Padding = "";
message.Align ="";
message.Image ="";
message.imgWidth ="";
message.imgAlign ="";
message.bgImage ="background-image:url();";
message.bgImgPosition ="";
message.bgImgRepeat ="";
message.Bgcolor = "";
message.Fgcolor = "";
message.Size = "";
message.BorderWidth = "";
message.BorderColor = "";
message.Effect = "all";
message.Interval = "8";
message.Link = "http://www.givathaviva.org.il/english/library/060409_peter2.htm";
message.Target = "_blank";
message.Family = "Arial";
message.weekDaysShow = new Array(1,1,1,1,1,1,1);
message.dateOn = "";
message.dateOff = "";
message.timeOn = "";
message.timeOff = "";
message.icon = "";
message.mask = "";
obj.messages.push(message);
	// Message # 6 Configuration
message = new Object();
message.id = '17';
message.Msg = '';
message.EditMsg = 0;
message.tdStyle = 'background-image:;color:#000000;background-color:#ffffff;direction:rtl;font-family:Arial;padding:0px;border-style:solid;border-width:0px; border-color:#e1e1e1;font-size:12px;';
message.hideTitle = "1";
message.TitleText = "Haifa Uni. Added Givat Haviva Index to its Data Bases List!";
message.Title = "";
message.TitleBold =  "<b>";
message.TitleBgcolor = "";
message.TitleFgcolor = "";
message.TitleFamily = "";
message.TitleSize = "";
message.TitleAlign = "";
message.Text = "<!-- RTE css=background-image:;color:#000000;background-color:#ffffff;direction:rtl;font-family:Arial;padding:0px;border-style:solid;border-width:0px; border-color:#e1e1e1;font-size:12px;&ftype=editor&lockEditor=0 RTE --><font class=\"Apple-style-span\" size=\"3\"><p class=\"MsoNormal\" dir=\"LTR\" style=\"text-align: left; direction: ltr; unicode-bidi: embed; \"><img src=\"http://lib.haifa.ac.il/libinfo/liblog/images/liblog/top.jpg\" style=\"border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; width: 200px; height: 37px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-color: rgb(0, 0, 128); border-right-color: rgb(0, 0, 128); border-bottom-color: rgb(0, 0, 128); border-left-color: rgb(0, 0, 128); \"><br> </p><p class=\"MsoNormal\" dir=\"LTR\" style=\"text-align: left; direction: ltr; unicode-bidi: embed; \">Haifa Uni. Added Givat Haviva Index to its Data Bases List<span lang=\"HE\" dir=\"RTL\" style=\"color: rgb(0, 0, 0); font-family: Arial, sans-serif; \">!</span><span lang=\"HE\" style=\"color: rgb(0, 0, 0); \"> </span><br> <font class=\"Apple-style-span\" color=\"#004080\"><b> Click here for the Arabic data bases list<span lang=\"HE\" dir=\"RTL\" style=\"font-family: Arial, sans-serif; \">....</span></b></font><span lang=\"HE\" dir=\"RTL\" style=\"color: rgb(0, 0, 0); font-family: Arial, sans-serif; \"><o:p></o:p></span></p></font>";
message.Bold = "";
message.Padding = "";
message.Align ="";
message.Image ="";
message.imgWidth ="";
message.imgAlign ="";
message.bgImage ="background-image:url();";
message.bgImgPosition ="";
message.bgImgRepeat ="";
message.Bgcolor = "";
message.Fgcolor = "";
message.Size = "";
message.BorderWidth = "";
message.BorderColor = "";
message.Effect = "all";
message.Interval = "8";
message.Link = "http://lib.haifa.ac.il/libinfo/liblog/index.php?option=com_content&task=view&id=1331";
message.Target = "_blank";
message.Family = "Arial";
message.weekDaysShow = new Array(1,1,1,1,1,1,1);
message.dateOn = "";
message.dateOff = "";
message.timeOn = "";
message.timeOff = "";
message.icon = "";
message.mask = "";
obj.messages.push(message);
	if (!window.boards) {
		window.boards = new Array();
	}
	var boardNumber = window.boards.length;
	window.boards[boardNumber] = obj;
	
	window.bizID='945257_ghaviva';
	
	startBoard(boardNumber, obj);
	
function startBoard(boardNumber, obj) {
	
	// document.write('<a id="linkContent'+boardNumber+'"></a>');
	// $('body').append('<form id="linkForm'+boardNumber+'" method="get" style="display:none;"></form>');
	 
	var form2 = document.createElement("form");
	form2.id = "linkForm"+boardNumber;
	form2.style.display = "none";
	document.body.insertBefore(form2,document.body.firstChild);
	
	document.write('<style>div[id|="content'+boardNumber+'"] p{margin:0px;} #content'+boardNumber+' .dhtmlnews-msg17Li {width:'+obj.Width+'; height:'+obj.Height+';}</style>');
	document.write('<ul id=content'+boardNumber+'  style="direction: RTL; padding:0; margin:0; width:'+obj.Width+'; position:'+obj.Position+'; height:'+obj.Height+'; top:'+obj.Top+'px; left:'+obj.Left+'px;"  onclick="goLink(event, '+boardNumber+')" onmouseover="mouseIn('+boardNumber+');return false;"></ul>');
	var editAlow = "", alowToEdit = 0;
	if(window.bizID) {
		var webaxyCookie=getCookieHash('webaxylogin_'+bizID);
		if (webaxyCookie['clickadmin']=='1') {
			//document.write('<style>#board'+boardNumber+'-ca {padding:0; margin:0; z-index: 101; position: absolute; top: 0px; left: 0px;} #board'+boardNumber+'-ca li { float: right; list-style: none outside none;} #dhtmlnews-ca17 table {border-collapse: separate;}</style>');
			//document.write('<style>#dhtmlnews-ca17 {direction: rtl; text-align: right; font-size: 14px; color: #000000; font-family: Arial; padding: 8px; background-color: #FFFFFF; border: 1px solid #F1F1F1; display:none; position:absolute; left:0px; top:0px; width:830px; max-height:500px; z-index: 1200; overflow: auto;}</style>');
			document.write('<ul id=board'+boardNumber+'-ca>');
			document.write('<li><img src="'+biz_url+'/pagedit.gif" border="0" onClick="openMS(17)" style="cursor: pointer;" title="'+edit_box+'"></li>');
			document.write('<li><img src="'+biz_url+'/icons/itemedit.gif" border="0" onClick="mngMsgs(\''+window.bizID+'\',17,'+boardNumber+')" style="cursor: pointer;" title="'+edit_msg+'"></li>');
			document.write('</ul>');
			noadmincss = 1;
			loadjscssfile('/htm-webaxy/skins/standard/standard_new.css', 'css');
			loadjscssfile('/htm-webaxy/skins/standard/css/admin-style.css', 'css');
			loadjscssfile('/htm-webaxy/dragDrop/admin.css', 'css');
			loadjscssfile('/htm-webaxy/cssEditor/editor.css', 'css');
			loadjscssfile('/htm-webaxy/jquery/jquery-ui-he.css', 'css');
			loadjscssfile('/htm-webaxy/jquery/jquery-ui-last.custom.css', 'css');
			loadjscssfile('/htm-webaxy/jquery/jquery-ui-timepicker.css', 'css');
			loadjscssfile('/htm-webaxy/editor/rte.css', 'css');
							
			myLang = 'he';
			loadjscssfile('/htm-webaxy/help.js', 'js');
			loadjscssfile('/htm-webaxy/javascript/overlibmws/overlibmws.js', 'js');
			loadjscssfile('/htm-webaxy/dhtmlnews/admin.js', 'js');
			
			waitForLoad('/htm-webaxy/editor/rte.js', 'rte_lang');
			waitForLoad('/htm-webaxy/createLinkButtons.js', 'linkButtons');
							
			loadjscssfile('/htm-webaxy/tv/js/tv_new2.js', 'js');
			loadjscssfile('/htm-webaxy/javascript/ajax.js', 'js');
			loadjscssfile('/htm-webaxy/javascript/drag.js', 'js');			
			loadjscssfile('/htm-webaxy/javascript/dragMigvan.js', 'js');
							
			loadjscssfile('/htm-webaxy/jquery/jquery.ui.timepicker-0.0.8.js', 'js');
							
			//if ($("#hideAllDiv").length == 0) document.write('<div id="hideAllDiv" style="background-color:#000000; filter:alpha(opacity=85); opacity:0.85; display:none; position:absolute; left:0px; top:0px; width:100%; height:100%; z-index: 1000;"></div>');
			if ($("#hideAllDiv").length == 0) {
				var hideAllDiv = document.createElement("DIV");
	    	hideAllDiv.id = "hideAllDiv";
	    	hideAllDiv.style.backgroundColor = '#000000';
	    	hideAllDiv.style.filter = 'alpha(opacity=85)';
	    	hideAllDiv.style.opacity = '0.85';
	    	hideAllDiv.style.display = "none";
	    	hideAllDiv.style.position = "absolute";
	    	hideAllDiv.style.left = 0;
	    	hideAllDiv.style.top = 0;
	    	hideAllDiv.style.width = "100%";
	    	hideAllDiv.style.height = "100%";
	    	hideAllDiv.style.zIndex = 1000;
	    	document.body.insertBefore(hideAllDiv,document.body.firstChild);
	    }

			document.write('<div id="dhtmlnews-ca17" class="admin-caPopup dhtmlnews-ca"></div>');
							
			if ($("#addcode").length == 0) document.write('<iframe src="/htm-webaxy/editor/add_element.htm?wait4done=1" style="width:400px;height:380px;position:absolute;top:0;left:0;z-index:-1;visibility:hidden" name="addcode" id="addcode"></iframe>');
			if ($("#colorPicker").length == 0) document.write('<iframe src="/htm-webaxy/colorPicker/colorPicker.htm?wait4done=1" style="visibility:hidden;position:absolute;left:1px;top:1px;width:200px;height:356px;z-index:2;border-width:1px; border-color:004080; border-style:solid;" frameborder="0" scrolling="no" name="colorPicker" id="colorPicker"></iframe>');
			if ($("#date_0").length == 0) document.write('<iframe src="/htm-webaxy/calendar/date_iframe.htm?lang=he" style="visibility:hidden;position:absolute;left:1px;top:1px;width:175px;height:190px;z-index:2001;" frameborder="0" name="date_0" id="date_0"></iframe>');
			if ($("#hidden_iframe").length == 0) document.write('<iframe id="hidden_iframe" name="hidden_iframe" src="" style="visibility:hidden;left:0;position:absolute;height:0px;"></iframe>');
			
			$('#board'+boardNumber+'-ca').css({'padding': '0', 'margin':'0', 'z-index': '101', 'position': 'absolute', 'top': '0px','left': '0px'});
			$('#board'+boardNumber+'-ca li').css({ 'float': 'right', 'list-style': 'none outside none'});
			$('#dhtmlnews-ca17 table').css({'border-collapse': 'separate'});
			$('#dhtmlnews-ca17').css({'direction': 'rtl', 'text-align': 'right', 'font-size': '14px', 'color': '#000000', 'font-family': 'Arial', 'padding': '8px', 'background-color': '#FFFFFF', 'border': '1px solid #F1F1F1', 'display': 'none', 'position': 'absolute', 'left': '0px', 'top': '0px', 'width': '830px', 'max-height': '500px',  'z-index': '1200', 'overflow': 'auto'});
			
			startCA(boardNumber);
		}
	}
}

function setFullHeight(boardNumber) {
	
	var topHeight = $("#dhtmlnews-main_full_table").height();
	getSize();
	$("#content"+boardNumber).css('height', myHeight-topHeight);

}

function startCA(boardNumber) {
									
	var xmlHttp;
			try {  // Firefox, Opera 8.0+, Safari  
				xmlHttp=new XMLHttpRequest(); 
			}
			catch (e) {  // Internet Explorer  
				try {
					xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch (e) {   
					 try {
					 	   xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
					 }
			   	 catch (e)  {
			  		   alert("Your browser does not support AJAX!");  
			   		   return false;
					}
				}
			}
		  xmlHttp.onreadystatechange=function() {
		  			if(xmlHttp.readyState==4) {
		  				var userAllowBoards = xmlHttp.responseText;
		  				if (userAllowBoards != 'admin' && userAllowBoards.indexOf(';17;') == -1) {
		  					$('#board'+boardNumber+'-ca').remove();
		  				}
		  				else {
		  					alowToEdit = 1;
		  				}							
		  			}
		  	}
		  
		  var sid = Math.round(Math.random() * 1000000);
		  webaxyCookie = getCookieHash("webaxylogin_945257_ghaviva");	
		  xmlHttp.open("GET","/cgi-webaxy/dhtmlnews/dhtmlnews.pl?ID=945257_ghaviva&username="+webaxyCookie['username']+"&password="+webaxyCookie['password']+"&act=getUserAllow&sid="+sid,true);
		  xmlHttp.send(null);

}
function waitForLoad(code, varName, writeMe) {
	
	if (typeof(writeMe) == 'undefined') writeMe = 0;
	var exists = eval("typeof("+varName+")");
	var dload = '';
	if (exists != 'undefined') dload = eval(varName+".doneLoad");
	if (exists == 'undefined' || dload != 1) {
		window.setTimeout("waitForLoad('"+code+"', '"+varName+"', "+writeMe+")", 100);
		return;
	}
	if (writeMe) {
		document.write(code);
	}
	else {
		loadjscssfile(code, "js");
	}
	
}

function loadjscssfile(filename, filetype) {
			 
	 fName = filename.substr(filename.lastIndexOf('/')+1);
	 if (document.getElementById(fName)) {
	 	return;	
	}
	 if (filetype=="js") { //if filename is a external JavaScript file
	 	var fileref=document.createElement('script');
	  fileref.setAttribute("type","text/javascript");
	  fileref.setAttribute("src", filename);
	  fileref.setAttribute("id", fName);
	 }
	 else if (filetype=="css") { //if filename is an external CSS file
	  var fileref=document.createElement("link");
	  fileref.setAttribute("rel", "stylesheet");
	  fileref.setAttribute("type", "text/css");
	  fileref.setAttribute("href", filename);
	  fileref.setAttribute("id", fName);
	 }
	 if (typeof fileref!="undefined")
  document.getElementsByTagName("head")[0].appendChild(fileref);
		
}

