function swf_placer(name,width,height,s_color,transparent,version,id){



	if(!version){version="7,0,0,0";}



	if(!transparent){transparent="0";}



	document.write('<object ');



	if(id){



		document.write('id="'+id+'" ')



	}



	document.write(' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="'+width+'" height="'+height+'"  align="middle" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'">');



	



	document.write('<param name="allowScriptAccess" value="sameDomain" />');

	

	document.write('<param name="salign" value="lt"/>');

	

	document.write('<param name="scale" value="noscale"/>');



	document.write('<param name="movie" value="'+name+'" />');



	document.write('<param name="quality" value="high" />');



	if(s_color){



	document.write('<param name="bgcolor" value="'+s_color+'" />');



	}



	if(transparent==1){



	document.write('<param name="wmode" value="transparent" />');



	}



	document.write('<param name="menu" value="false">');



	document.write('<embed src="'+name+'" quality="high" ');



	if(transparent==1){



	document.write('wmode="transparent" ');



	}



	document.write('scale="noscale"  salign="lt" bgcolor="'+s_color+'" width="'+width+'" height="'+height+'"  name="'+name+'" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');



	document.write('</object>');



} 



function swf_exactfit(name,width,height,s_color,transparent,version,id){

	if(!version){version="7,0,0,0";}

	if(!transparent){transparent="0";}

	document.write('<object ');

	if(id){

		document.write('id="'+id+'" ')

	}

	document.write(' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+width+'" height="'+height+'"  align="middle" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'">');

	

	document.write('<param name="allowScriptAccess" value="sameDomain" />');

	document.write('<param name="SCALE" value="exactfit" /> ');	

	document.write('<param name="movie" value="'+name+'" />');

	document.write('<param name="quality" value="high" />');

	if(s_color){

	document.write('<param name="bgcolor" value="'+s_color+'" />');

	}

	if(transparent==1){

	document.write('<param name="wmode" value="transparent" />');

	}

	document.write('<param name="menu" value="false">');

	document.write('<embed src="'+name+'" quality="high"');

	if(transparent==1){

	document.write('wmode="transparent" ');

	}

	document.write('bgcolor="'+s_color+'" width="'+width+'" height="'+height+'" name="'+name+'" align="middle" scale="exactfit" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');

	document.write('</object>');

} 

function sendOrder()
{
	var f = document.getElementById('orderForm'), a = {'name':'שם','phone':'טלפון','mail':'דוא"ל'}, i;
	for(i in a) {
		var n = document.getElementById(i);
		if (!n || !n.value){
			alert('נא להכניס '+a[i]);
			n.focus();
			return false;
		}
	}
	JsHttpRequest.query('/js_send_order.php',f,order_result,false);
}

function order_result(res,err)
{
	var d = document.getElementById('order_form');
	d.innerHTML = err;
}

