/*********************************************
 * Special Order bvba
 * (c) Ken Pimontel, ken at specialorder dot be
 * Purpose: Special Order v3
 *
 * NOTES
 * From base site 0003
 *
 * DEPENDENCIES
 *
 * TODO
 *
 * HISTORY
 * Last change <!-- hhmts start -->2011-03-10 12:29:07<!-- hhmts end -->
 * 090331 ADDED Topmenu li:not(.active)
 * 090331 UPDATE SideMenu-T2 afgewerkt
 * 090327 ADDED auto form label width
 * 090327 ADDED a.box
 * 090120 First version
 *********************************************/


 // Logging function - kan je gebruiken in de chain. $("blabla").log("Wat je wil zeggen").fadeofzo...
jQuery.fn.log = function (msg) {
      console.log("%s: %o", msg, this);
      return this;
  };


//$(document).ready(function(){
//    $('div.box').corner("8px");
//    $('div.boxright').corner("tr br 10px");
//    $('div.boxtop').corner("top 10px");
//    $('div.boxbottom').corner("bottom 10px");
//});


jQuery.fn.fancybox.defaults.path = 'http://nethome.be/_js/fancybox-1.3.4/';
$(document).ready(function() {
	 $("a.pop").fancybox({
	 	'hideOnContentClick': true,
	 	'zoomSpeedIn': 500,
	 	'zoomSpeedOut': 500,
	 	'frameWidth': 500,
	 	'frameHeight': 600,
	 	'overlayShow': true,
	 	'overlayOpacity': 0.75
	 	});

 });

//$(document).ready(function(){
//    $("a[href$=pdf]")
//        .addClass("pdf")
//        .attr({ target: "_blank" });
//    $("a[href$=zip]").addClass("zip");
//    $("a[href$=psd]").addClass("psd");
//    $("a[href*=mailto]").addClass("mailto");
//});


// Automatically sets a form's label width correctly

//$(document).ready(function() {
//    var max = 0;
//    $("form.autowidth label").each(function(){
//        if ($(this).width() > max)
//            max = $(this).width();
//    });
//    $("form.autowidth label").width(max);
//});

$(document).ready(function(){
    $('form#contact-form').hide();
    $('input#getform').click(function() {
         $('form#contact-form').slideToggle('slow');
        });
});



$(document).ready(function(){
    $('#workani').cycle({
        fx:      'fade',
        delay:   -1000
    });
});

