﻿
$(document).ready(function() {

    $('div.gal_box').mouseover(function() {
    $(this).addClass('gallery_hover');
    });
    
    $('div.gal_box').mouseout(function() {
    $(this).removeClass('gallery_hover');
    });

    $('div.pics_small img').mouseover(function() {
    $(this).addClass('gallery_hover');
    });
    
    $('div.pics_small img').mouseout(function() {
    $(this).removeClass('gallery_hover');
    });
    
    $('ul.nav li a img').hover(
    function() {
    this.src = this.src.replace('_off','_on')
    },
    function() {
    this.src = this.src.replace('_on','_off')
    }
    );
       
         $(function() {  
   $(".but").click(function() {  
   });  
 }); 
   $(function() {  
     $(".but").click(function() {  
            check = true;
          $("input#ctl00_ContentPlaceHolder1_tbFirstName").removeClass();
         var name = $("input#ctl00_ContentPlaceHolder1_tbFirstName").val();  
           if (name == "") {  
         $("input#ctl00_ContentPlaceHolder1_tbFirstName").addClass("fieldhover");           
         $("input#ctl00_ContentPlaceHolder1_tbFirstName").focus();  
         check = false;
       }  
          $("input#ctl00_ContentPlaceHolder1_tbPhone").removeClass();
         var phone = $("input#ctl00_ContentPlaceHolder1_tbPhone").val();  
           if (phone == "") {  
         $("input#ctl00_ContentPlaceHolder1_tbPhone").addClass("fieldhover");           
         $("input#ctl00_ContentPlaceHolder1_tbPhone").focus();  
         check = false;
       }  
        $("input#ctl00_ContentPlaceHolder1_tbEmail").removeClass();     
         var email = $("input#ctl00_ContentPlaceHolder1_tbEmail").val();  
           if (email == "") {  
         $("input#ctl00_ContentPlaceHolder1_tbEmail").addClass("fieldhover");  
         $("input#ctl00_ContentPlaceHolder1_tbEmail").focus();  
         check = false;
       }    
        $("input#ctl00_ContentPlaceHolder1_tbPlace").removeClass("eventfieldhover");       
         var place = $("input#ctl00_ContentPlaceHolder1_tbPlace").val();  
           if (place == "") {  
           $("input#ctl00_ContentPlaceHolder1_tbPlace").addClass("eventfieldhover"); 
         $("input#ctl00_ContentPlaceHolder1_tbPlace").focus();  
         check = false;
       }           

       return check;                 
         
     });  
   });  

    
    

});

videoDir = 1;
function openVideo(dir)
{

    if(videoDir != dir)
    {
        if(dir == 2)
        {
            document.getElementById('v1').innerHTML = '<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/Fl6JB1r4ljs&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Fl6JB1r4ljs&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>'
            document.getElementById('v2').innerHTML = '<h2>קוקה קולה <span class="nobold">| טיול עובדי חברה</span></h2> <p> ליווי הקבוצה בטיול קיאקים בחצבני ועריכת קליפ קצר מלווה בכתוביות.</p>'
        }
        else if(dir == 1)
        {
            document.getElementById('v1').innerHTML = '<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/rRcVr5vf-xc&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/rRcVr5vf-xc&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>'
            document.getElementById('v2').innerHTML = '<h2>קוקה קולה<span class="nobold">| סרטון הדרכה שיווק קמעונאי</span></h2><p>צילום פלטפורמה חדשה לתיקשור מתחלף.<br />צילום ההתקנות, ראיונות בשטח עם מנהלים ועריכת סרטון סופי.<br /></p>'
        
        }
        videoDir= dir;
    }
    
}


