$(document).bind("ready", function(){
    $(".left_col .my-move-top ul li ul").not(".opened").hide();
    $(".left_col .my-move-top>ul>li>ul").parent().find(">a").bind("click" , function(){
        var current = $(this).parent().find("ul");
        $(".left_col .my-move-top ul li ul").not(current).slideUp("fast");
        current.toggle("fast");
        return false;
    });
    
    $(".flash").each(function(){
        //alert(this.innerWidth);
        var flashsrc = this.innerHTML;
        flashsrc = flashsrc.substring(4 , flashsrc.length - 3);
        
        var so = new SWFObject(flashsrc, "", this.clientWidth, this.clientHeight , "9", "#FFFFFF");
	//so.addVariable("flashVarText", "this is passed in via FlashVars for example only"); // this line is optional, but this example uses the variable and displays this text inside the flash movie
	so.write(this);

    })
	if ($('#agreement').length > 0) {
		$('#agreement_form').submit(function(event){
			if ($('#agreement').attr('checked') === false) {
				alert('יש להסכים עם תנאי שימוש');
				return false;
			}
			else {
				$('#agreement_submit').submit();
			}
		});
	} 
})