﻿

//main menu

function onloadmenu() {
    $('.SubMenuPalceHolderClass').css('height', '0px');
    didsel = '';
    Alldivs = document.getElementsByTagName('div');
    for (i = 0; i < Alldivs.length; i++) {
        if (Alldivs[i].className == 'MainMenuControlSelPlaceHolderClass') {
            didsel = Alldivs[i].id;
        }
    }
}
function mouseOver(selected) {

    if (didsel != '') {
        document.getElementById(didsel).className = 'MainMenuControlPlaceHolderClass';
    }
    document.getElementById(selected.id).className = 'MainMenuControlSelPlaceHolderClass';
    $('.SubMenuPalceHolderClass').css('height', '100%');
    $('.SubMenuPalceHolderClass').css('overflow', 'visible');
}
function mouseOut(selected) {


    document.getElementById(selected.id).className = 'MainMenuControlPlaceHolderClass';
    if (didsel != '') {
        document.getElementById(didsel).className = 'MainMenuControlSelPlaceHolderClass';
    }
    $('.SubMenuPalceHolderClass').css('height', '0px');
    $('.SubMenuPalceHolderClass').css('overflow', 'hidden');
}
//main menu



function recofancybox() {
    $(".myImage").fancybox({
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'easingIn': 'easeOutBack',
        'easingOut': 'easeInBack',
        'speedIn': 1200,
        'speedOut': 600,
        'autoScale': true,
        'type': 'image',
        'padding': 5,
        'hideOnContentClick': true,
        'enableEscapeButton': true,
        'overlayShow': true,
        'titleShow': false,
        'showCloseButton': true
        
    });
};

function Galleryfancybox() {
    $(".myImage").fancybox({
    'transitionIn': 'elastic',
    'transitionOut': 'elastic',
    'easingIn': 'easeOutBack',
    'easingOut': 'easeInBack',
    'speedIn': 1200,
    'speedOut': 600,
    'autoScale': true,
    'type': 'image',
    'padding': 5,
    'hideOnContentClick': true,
    'enableEscapeButton': true,
    'overlayShow': true,
    'titleShow': false,
    'showCloseButton': true
       
    });
};


function Galleryfancybox2() {
    $(".myImage2").fancybox({
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'easingIn': 'easeOutBack',
        'easingOut': 'easeInBack',
        'speedIn': 1200,
        'speedOut': 600,
        'autoScale': false,
        'width': 1000,
        'height': 600,
        'type': 'iframe',
        'padding': 5,
        'hideOnContentClick': true,
        'enableEscapeButton': true,       
        'titleShow': false,
        'showCloseButton': true

    });
};



function GalleryDefaultDancybox() {
    $(".GalleryTinyImg").fancybox({
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'easingIn': 'easeOutBack',
        'easingOut': 'easeInBack',
        'speedIn': 1200,
        'speedOut': 600,
        'autoScale': true,
        'type': 'image',
        'padding': 5,
        'hideOnContentClick': true,
        'enableEscapeButton': true,
        'overlayShow': true,
        'titleShow': false,
        'showCloseButton': true

    });
};

function videofancybox() {
    $(".mediafancy").fancybox({
        'padding': 0,
        'autoScale': false,
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'speedIn': 600,
        'speedOut': 500,
        'easingIn': 'easeOutBack',
        'easingOut': 'easeInBack',
        'title': this.title,
        'width': 680,
        'height': 495,

        'type': 'swf',
        'swf': {
            'wmode': 'transparent',
            'allowfullscreen': 'true'
        }

    });
};


function videofancybox2() {
    $(".lessonfancy").fancybox({
        'padding': 0,
        'autoScale': false,
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'speedIn': 600,
        'speedOut': 500,
        'easingIn': 'easeOutBack',
        'easingOut': 'easeInBack',
        'title': this.title,
        'width': 680,
        'height': 495,

        'type': 'swf',
        'swf': {
            'wmode': 'transparent',
            'allowfullscreen': 'true'
        }

    });
};

// fancy for coaching

function videoFancyboxCoaching() {
    $(".CoachingVideoPlayIcon").fancybox({
        'padding': 0,
        'autoScale': false,
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'speedIn': 600,
        'speedOut': 500,
        'easingIn': 'easeOutBack',
        'easingOut': 'easeInBack',
        'title': this.title,
        'width': 680,
        'height': 495,

        'type': 'swf',
        'swf': {
            'wmode': 'transparent',
            'allowfullscreen': 'true'
        }

    });
};

// cycle for coaching

function cyclecoachingvideos() {
    $('#CoachingVideoCycleHolder').cycle({
        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        timeout: 0,
        pause: true,
        next: '#NextCoauchingVideo',
        prev: '#PrevCoauchingVideo'
    });
};

function cyclecoachingthanks() {
    $('#CoachingThankLettersCycleHolder').cycle({
        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        timeout: 0,
        pause: true,
        next: '#NextCoauchingThanks',
        prev: '#PrevCoauchingThanks'
    });
};

// cycles for default

function cycledefaultpapers() {
    $('#Cycle_Papers_Default').cycle({
        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        timeout: 0,
        pause: true,
        next: '#nextP',
        prev: '#prevP'
    });
};

function cycledefaultnet() {
    $('#Cycle_Net_Default').cycle({
        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        timeout: 0,
        pause: true,
        next: '#nextNet',
        prev: '#prevNet'
    });
};

function cycledefaulttv() {
    $('#Cycle_TV_Default').cycle({
        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        timeout: 0,
        pause: true,
        next: '#nextTV',
        prev: '#prevTV'
    });
};

function recommEvent2() {
    $('.RecoCycle').cycle({
        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        timeout: 0,
        pause: true,
        next: '#nextReco',
        prev: '#prevEReco'
//        width: '630px',
//        height: '450px'

    });
};

function recommFEvent() {
        $('.LessonCycle').cycle({
        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
            timeout: 0,
            pause: true,
            next: '#nextEventBG',
            prev: '#prevEventBG'
//            width: '560px',
//            height: '380px'
        });
    };

// watermarks

function textboxwatermark() {
    $('input').each(function () {
        $(this).watermark($(this).attr('watermark'));
        $(".ContactTextBoxMultilineStyle").watermark('הערות');
    });
};


