﻿var timer = null;
var overIn = false;
function loaditunes() {
    var url = "http://mobile.oceanofbusiness.com?busid=81&lang=he";
    try {

        document.location.href = utl;
    }
    catch (e) {
        window.location = url;
    }

}
function loadfacebook() {

    window.open("http://www.facebook.com/pages/YOOP-Design/135978439785090", '_blank');
}
function loadS() {

    var url = "Products.aspx?q=" + jQuery('.searchinput').val();
    try {

        document.location.href = utl;
    }
    catch (e) {
        window.location = url;
    }
}

function hoverOut(event) {
   
    timer = setTimeout("removeClass()", 500);
}
function removeClass() {
   
    $('.on').addClass("off").removeClass("on");
}
function hoverIn(event) {

    clearTimeout(timer);
        if (!overIn)     
        $('.off').addClass("on").removeClass("off");
       
    }
    $(function () {


        $('#menu-item-2').hover(hoverIn, hoverOut);
        $('#menu-item-2 UL LI A,#menu-item-2 UL LI,#menu-item-2 UL LI A').hover(hoverIn);
        $('.nav li.list:nth-child(4) A').hover(hoverIn, hoverOut);


    });

  
