/**
 * Created by IntelliJ IDEA.
 * User: maximedewelle
 * Date: 20 aožt 2010
 * Time: 13:13:56
 */
jQuery.noConflict();

function tog(obj) {

	var el = document.getElementById(obj);
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}

function enquiryDisplayOther(e){
    if(e.value=='other'){
        $('bloc_occupation_other').style.display = 'block';
    } else {
        $('bloc_occupation_other').style.display = 'none';   
    }
}

Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h3');
Cufon.replace('#nav');
Cufon.replace('h4');

jQuery(window).bind("load", function() {
    jQuery("div#basic").slideViewerPro({
        thumbs: 6,
        thumbsPercentReduction: 13,
        galBorderWidth: 0,
        galBorderColor: "aqua",
        thumbsTopMargin: 5,
        thumbsRightMargin: 2,
        thumbsBorderWidth: 2,
        thumbsActiveBorderColor: "#C0C0C0",
        thumbsActiveBorderOpacity: 0.8,
        thumbsBorderOpacity: 0,
        buttonsTextColor: "#707070",
        leftButtonInner: "<img src='assets/images/arrowLeft.png' />",
        rightButtonInner: "<img src='assets/images/arrowRight.png' />",
        autoslide: true,
        typoFullOpacity: 0.6,
        asTimer: 4000,
        typo: true
        });
});

window.addEvent('domready', function() {

    SqueezeBox.assign($$('a[rel=pic]'));

    SqueezeBox.assign($$('a[rel=popup]'), {
            size: {x: 300, y: 400},
            handler:'iframe'
    });

    SqueezeBox.assign($$('a[rel=apropos]'), {
            size: {x: 200, y: 250},
            handler:'iframe'
    });
});





