	//Configure Scroll
var edit_box = "ניהול תיבה";
var edit_msg = "עריכת הודעה";
scm = new Object();
scm.lang = "he";
scm.brdrWidth = "0px";
scm.brdrStyle = "solid";
scm.brdrColor = "#ffffff";
scm.fntfamily = "Arial";
scm.titleColor = "#004000";
scm.titleUnderL = "";
scm.fntsize = "11px";
scm.margin = "color:#004000; padding:8px; border-style:none;";
scm.pause = "1";
scm.removeSep = "1";
scm.designSep = "1";
scm.fntColor = "#000000";
scm.hoverColor = "#ffffff";
scm.bgColor = "#ffffff";
scm.align = "left";
// new style def
scm.boxDesign = "background-color: #ffffff;border-style: solid;border-color: #ffffff;border-width: 0px";
scm.msgDesign = "color: #000000;text-align: left;font-size: 11px;font-family: Arial;padding: 0 5px 0 5px";
scm.msgOverDesign = "background-color: #ffffff";
scm.titleDesign = "color: #004000;text-align: left;font-size: 11px;font-family: Arial;font-weight: bold;padding: 0 3px 0 3px";
scm.titleOverDesign = "background-color: #ffffff";
scm.allMsgsLinkDesign = "text-align: right;font-family: Arial";
scm.allMsgsLinkDesignA = "text-underline: none";
scm.height = "650";
scm.width = "250";
scm.delay = 16;
scm.boxID = 47;
scm.dir = "";
scm.title_style = "";
scm.title_over_style = "";
scm.msg_style = "font-family:Comic Sans MS; font-size:12px;";
scm.msg_over_style = "";
scm.messages = new Array();
 msg = new Object();
	msg.title = "";
	msg.message = "Josh: 29 years old, originally from Wilmington Delaware. Works as an attorney, for the past two years he practice criminal law. Nowadays, lives in Washington D.C. <br> ``Once I decided to learn Arabic, I wanted to learn the language not just through classroom studies, because you can do it anywhere, in the U.S or even over the internet. But I wanted to learn through being involved in the community and have a full immersion program, and that is exactly what Givat-Haviva had offered. It gave me the opportunity to live in Israel and really delve into the Israeli and Arab culture.`` Josh, 29 years old from the U.S. <br> ``you have the opportunity to be supported and to live in two totally different communities; one being on kibbutz Barkai, where you get the feel of what is like to live in such a commune. In addition, you immerse in the support network of Arara, an Arab-Israeli village with a very different culture, there is a different word spoken on the street, a different way of greeting guests, and I felt very much accepted in that community also.`` <br> ``Everybody loves their home language, and once you make this effort, saying- I want to be able to see through your eyes, speak like you do, so I could understand you a little bit better, it is all about putting someone else before yourself.`` Samantha, 22 years old from the U.S. <br> ``I am unbelievably happy and are daily encouraged by the fact that all cultures are, in fact, made up of people that feel love, joy, sadness, excitement and such. I don`t know that international peace is imminently possible, but meeting people where they are at definitely is and I am blessed to be able to be here and live it.`` Eriana, 30 years old from Colombia.";
msg.link = "#";
msg.trgt = "_top"
msg.weekDaysShow = new Array(1,1,1,1,1,1,1);
msg.dateOn = ""
msg.dateOff = ""
msg.timeOn = ""
msg.timeOff = ""
scm.messages[scm.messages.length] = msg;

	var scnum;
	var putFull = false;
	try {
		if (SCviewFull47) {
				if (!window.scrollsUpFull || !exists(47,window.scrollsUpFull)) {
					if (!window.scrollsUpFull) window.scrollsUpFull = new Array();
					var scFnum = window.scrollsUpFull.length;
					window.scrollsUpFull[scFnum] = 47;
					if(!window.scrollsFull) {
						window.scrollsFull = new Array();
					}
					scnum = window.scrollsFull.length;
					window.scrollsFull[scnum] = scm;
					putFull = true;
				}
				else {
					if(!window.scrolls) {
						window.scrolls = new Array();
					}
					scnum = window.scrolls.length;
					window.scrolls[scnum] = scm;
				}
		}
	}
	catch (e) {
		if(!window.scrolls) {
			window.scrolls = new Array();
		}
		scnum = window.scrolls.length;
		window.scrolls[scnum] = scm;
	}
	
	window.bizID='945257_ghaviva';
	
	try {
		var overf = 'overflow:hidden;';
		if (navigator.appVersion.indexOf("MSIE")>= 0 && getIEVersionNumber() <= 6) overf = '';
		if(putFull) {document.write('<center><div id="scboardF'+scnum+'" style="height:99%; width:99%;"></div></center>');}
		else document.write('<div id="scboard'+scnum+'" style="height:650px; width:250px; '+overf+'"></div>');
	}
	catch(e) {
		document.write('<div id="scboard'+scnum+'" style="height:650px; width:250px; '+overf+';"></div>');
	}
	
	if(window.bizID) {
		var webaxyCookie=getCookieHash('webaxylogin_'+bizID);
		if (webaxyCookie['clickadmin']=='1') {
			document.write('<style>#board'+scnum+'-ca li { float: right; list-style: none outside none;} #dhtmlnews-ca47 table {border-collapse: separate;}</style>');
			document.write('<style>#dhtmlnews-ca47 {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>');
			noadmincss = 1;
			loadjscssfile('/htm-webaxy/skins/standard/standard_new.css', 'css');
			loadjscssfile('/htm-webaxy/skins/standard/css/admin-style.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');
			
			myLang = 'he';
			loadjscssfile('/htm-webaxy/help.js', 'js');
			loadjscssfile('/htm-webaxy/javascript/overlibmws/overlibmws.js', 'js');
			loadjscssfile('/htm-webaxy/dhtmlnews/admin.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-ca47" class="admin-caPopup dhtmlnews-ca"></div>');
			
			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>');
			startCAS(scnum);
		}
	}
	
	function startCAS(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(';47;') == -1) {
		  					$('#board'+boardNumber+'-caS').remove();
		  				}
		  				
		  			}
		  	}
		  
		  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 getIEVersionNumber() {
    
    var ua = navigator.userAgent;
    var MSIEOffset = ua.indexOf("MSIE ");
    
    if (MSIEOffset == -1) {
        return 0;
    } else {
        return parseFloat(ua.substring(MSIEOffset + 5, ua.indexOf(";", MSIEOffset)));
    }
	}
	
	function exists(elem, arr) {
			
			for (var i = 0 ; i < arr.length ; i++) {
					if (arr[i] == elem) return true;					
			}
			return false;
	}
	
	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);
		
}

