function player() {
	document.write(' <OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\"450\" HEIGHT=\"25\" id=\"audioplayer\" ALIGN=\"right\">' +
	' <PARAM NAME=movie VALUE=\"\audioplayer.swf\"> ' +
	' <PARAM NAME=quality VALUE=high> ' +
	' <PARAM NAME=wmode VALUE=transparent> ' +
	' <PARAM NAME=bgcolor VALUE=#AFE0E8> ' +
	' <EMBED src=\"\audioplayer.swf\" quality=high wmode=transparent bgcolor=#AFE0E8  WIDTH=\"450\" HEIGHT=\"25\" NAME=\"audioplayer\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>' +
	'</OBJECT> ');

}

function menuobj() {
	document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0\"' +
	'              id=\"music_control\" width=\"150\" height=\"330\">' +
	'              <param name=\"movie\" value=\"/images/gui/menu.swf\">' +
	'              <param name=\"bgcolor\" value=\"#FFFFFF\">' +
	'              <param name=\"quality\" value=\"high\">' +
	'              <param name=\"allowscriptaccess\" value=\"samedomain\">' +
	'              <embed type=\"application/x-shockwave-flash\"' +
	'               pluginspage=\"http://www.macromedia.com/go/getflashplayer\"' +
	'               width=\"150\" height=\"330\"' +
	'               name=\"music_control\" src=\"/images/gui/menu.swf\"' +
	'               bgcolor=\"#FFFFFF\" quality=\"high\"' +
	'               swLiveConnect=\"true\" allowScriptAccess=\"samedomain\"></embed>' +
	'            	</object>');

}

var didItOnce=0;
var current;

var myimages=new Array()
function preloadimages(){
   for (i=0;i<preloadimages.arguments.length;i++){
   myimages[i]=new Image()
   myimages[i].src=imgPt+preloadimages.arguments[i]
		 }
}

function pre(){
  preloadimages('upstrip.gif','hpCorner.jpg','sideMenu2.gif','sideMenu.gif','moreBG.gif','prevPage.gif','arrow.gif');
		preloadimages('emailbt.gif','nextGallery.gif','prevGallery.gif','hpbottom.gif','hpbottomempty.gif','actBg.jpg');
}

function setBG(s){
					 objFrame.style.backgroundColor = s ;
}

var activitiesbg = '#996699' ;

function menu(i){
	  current=i;
		
		switch (i)
		{
		  case 1:	location.href = '/' ; break
		  case 2:	location.href = '/AboutUs' ;		break
		  case 3:	location.href = '/HealingArts' ;	break
		  case 4:   location.href = '/Rebirthing' ;		break
		  case 5:	location.href = '/Sessions' ;break
		  case 6:	location.href = '/Schedule/' ;break
		  case 7:	location.href = '/OurPlace' ;break
		  case 8:	location.href = '/Gallery' ;break
		  case 9:   location.href = '/Good2know' ;break
		  case 10:	location.href = '/ContactUs' ;break
		  case 11:  location.href = '/Links' ;break
		  case 12:  location.href = '/Sharing/close.asp' ;break
		}
							
			 		
}

function showpic(pic){
				 	str = 'top=50,left=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='
					str+='550';	
					str+=',height=';
					str+='420';
					aPopUp = window.open('','popUpMsg',str);
					astr = '<html><head><title>Rishi</title><script language=javascript>this.focus()</script></head><body bgcolor=#CDECF1>';
					astr += '<center><table cellspacing=0 cellpadding=0 dir=rtl><tr><td colspan=2 align=center valign=middle><img width=500 height=380 border=1 src="/images/content/gallery/'+pic+'"></td></tr><tr><td align=left><a href="javascript:window.close()" style="font-family:arial;font-size:14px;color:#336699"><u><b>סגור</b></u></a></td></tr></table></center></body></html>';
					aPopUp.document.write(astr);
					aPopUp.document.close();
}
		
function send(){
  fname = document.getElementById('from').value ;
	email = document.getElementById('email').value ;
	phone = document.getElementById('phone').value ;
	note = document.getElementById('note').value ;
	ev = document.getElementById('ev').value ;
	if (note != '') {note = note.replace(/\r\n/g, "<br>");} 
	
	if (fname==''){alert('?מה שמך')}
	else if (email=='' && phone==''){alert("בכדי שנוכל לחזור אליך, תן לנו כתובת אימל או מס' טלפון")}
	else{
	document.getElementById('cms').src = '/inc/sendemail.asp?ev='+ ev +'&from='+fname+'&email='+email+'&phone='+phone+'&note='+note+'&fromWeb=contact@rishi.co.il&to=rishi@rishi.co.il&subject=Email from Website' ;
	document.getElementById("mainFrame").innerHTML = '<br><br><br><br><br><br><br><br><br><div class=f14 align=center><b>תודה רבה, ההודעה נשלחה.<br>אתם מוזמנים לבקר בלוח הפעילויות שלנו!</b></div>' ;
	}
}
		
function after(){
				// document.getElementById("mainFrame").innerHTML = '<br><br><br><br><br><br><br><br><br><div class=f14 align=center><b>תודה רבה, ההודעה נשלחה.<br>אתם מוזמנים לבקר בלוח הפעילויות שלנו!</b></div>' ;
}

function sendemail(){

		var email = document.getElementById('emailfield').value ;
		if (email!='' && email!='email please'){
		document.getElementById('cms').src = '/inc/addEmail.asp?email='+email;}
}

		
