


function showmenu(elmnt)
{
document.all(elmnt).style.display="block"
}
function hidemenu(elmnt)
{
document.all(elmnt).style.display="none"
}

function win_sen(e){

if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") {
iLeft = window.innerWidth;
iTop = window.innerHeight;
}
if (navigator.appName.indexOf("Microsoft")!=-1) {
iLeft = document.body.offsetWidth;
iTop = document.body.offsetHeight;
}
}
var e
e = e || window.event;
   var cursor = {x:0, y:0};
   if (e.pageX || e.pageY) {
       cursor.x = e.pageX;
       iTop = e.pageY;
   } 
   else {
       var de = document.documentElement;
       var b = document.body;
       cursor.x = e.clientX + 
           (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0);
       iTop = e.clientY + 
           (de.scrollTop || b.scrollTop) - (de.clientTop || 0);
   }
iTop = iTop - 300
iLeft = (iLeft-300)/2;
var win = new Window({className: "alphacube", title: "שלח לחבר", top:iTop, left:iLeft, width:300, height:230,url: "empty44.asp", showEffectOptions: {duration:0}})
win.show(); 
}

function addParam(controlText, paramName, paramValue) 
				{	
					return "<param name='" + paramName + "' value='" + paramValue + "'>";
				}

				
				function createFlash(DivID, ObjectID, WIDTH, HEIGHT, MOVIE)
				{  
					var s = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553600000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='" + WIDTH + "' height='"+HEIGHT+"' id='"+ObjectID+"'>";
					
					s += addParam(s, "movie", MOVIE);
					s += addParam(s, "uiMode", "none");
					s += addParam(s, "wMode", "transparent");	
					s += "<EMBED src='" + MOVIE + "' quality=high width='" + WIDTH + "' height='" + HEIGHT + "' TYPE='application/x-shockwave-flash' "
					  +  "PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'> </EMBED>";	
					s += "</object>"
					
					document.getElementById(DivID).innerHTML += s;	
				}
