/**
 * Multi-Post general scripts
 * 
 * @version   1.05
 * @author    RiboSystems Corporation
 */    

// On Load
$(document).ready(function() {
	$("span#createdby").html("Realisatie: RiboSystems");					   
	// Submenu show
	$(".show_subnav").hover(function(){
	  $("#subnav").show();
	 
	},function(){
	  $("#subnav").hide();
	});
	
	// Slider, Search
	$('#slider').s3Slider({ timeOut: 5000 });
	$('#search_value').searchField();
	
	// Contactform handling
	$("#show-newsletter-block").css("display","none");
	$("#show-knowother-block").css("display","none");
	$("#newsletter-yes").click(function(){
		if ($("#newsletter-yes").is(":checked")){ $("#show-newsletter-block").show("fast");}
		else { $("#show-newsletter-block").hide("fast"); }
	});
	
	$('#multipost-know').change(function() {
	   $('#show-knowother-block').hide("fast");
	   if($(this).find('option:selected').attr('value') == 'other'){
	  	 $("#show-knowother-block").show("fast");
	   }
	});
	
	
});

/* Sifr */
var aller = { src: 'http://www.multipost.com/media/images/text/aller.swf' };
sIFR.useStyleCheck = true;
sIFR.activate(aller);
sIFR.replace(aller, { selector: 'h1.slider-text', css: '.sIFR-root { color: #FFFFFF; }', wmode: 'transparent', filters: {
        DropShadow: {
           distance: 1
          ,color: '#0B0B3B'
          ,strength: 5
          
        }
      }
});
sIFR.replace(aller, { selector: 'h2.blue', css: [
      '.sIFR-root { color: #003366; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #003366; text-decoration: none; }'
      ,'a:hover { color: #003366; text-decoration: none; }'
    ],  wmode: 'transparent'});

sIFR.replace(aller, { selector: 'h2.white', css: [
      '.sIFR-root { color: #FFFFFF; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #FFFFFF; text-decoration: none; }'
      ,'a:hover { color: #FFFFFF; text-decoration: none; }'
    ], 
  wmode: 'transparent'});
sIFR.fitExactly = true;
sIFR.forceWidth = true;
sIFR.forceHeight = true;