var w_sUrlAnchor = unescape(self.document.location.hash.substring(1));

$(document).ready(function() {

	if($('div#activatehash').length > 0) {
			var activeLink = w_sUrlAnchor.replace('zuilen_','')-1;
			$('a.link_testimonials:eq('+activeLink+')').addClass('selected');
			w_sUrlAnchor = 'zuilen_'+activeLink;
		if($('div#'+w_sUrlAnchor).length > 0) {
			$('div#'+w_sUrlAnchor).show();
			


		}
	}

if(document.getElementById('imagescroller')) {
	    jQuery("#mycarousel").jcarousel({        
			scroll: 1
			,				visible: 7
			,        initCallback: mycarousel_initCallback    
			});

			}

$("div#bottom_images a").fancybox({
'zoomSpeedIn':	0, 
'zoomSpeedOut':	0, 
'overlayShow':	true
});

if (jQuery.fn.pngFix) $(document).pngFix();


});
function mycarousel_initCallback(carousel) {
    jQuery('.verder').bind('click', function() {
		carousel.next();
		return false;    
		}); 
		jQuery('.terug').bind('click', function() {
		carousel.prev();
		return false;    
		});};

function activateTestimonialLink(p_sClassName, p_oObject){
  p_oParent = p_oObject.parentNode;
  for(var i = 0; i < p_oParent.childNodes.length; i++){
    if(p_oParent.childNodes[i].nodeName == p_oObject.nodeName){
      $(p_oParent.childNodes[i]).removeClass('selected');
    }
  }
  $(p_oObject).addClass('selected');
}

function f_redrawSIFR(){

	sIFR.replace(helveticaneueheavy, {
    selector: 'h2.blauw_home'
    ,css: [
      '.sIFR-root { color:#0081c6; }'
    ]
    });
		sIFR.replace(helvetica, {
    selector: 'b.h2'
    ,css: [
      '.sIFR-root { color:#ffffff;font-size:16px;font-weight:normal;height:10px;}'
    ]
    });

}

    var helveticaneueheavy = {
    src:'http://www.zuiltehuur.nl/flash/helveticaneueheavy.swf'
      , ratios: [6,1.41,9,1.35,15,1.29,21,1.25,22,1.22,27,1.24,29,1.21,34,1.22,41,1.21,45,1.2,46,1.21,59,1.2,68,1.19,69,1.2,96,1.19,97,1.18,102,1.19,103,1.18,107,1.19,108,1.18,112,1.19,114,1.18,116,1.19,120,1.18,121,1.19,1.18]
      , wmode: 'transparent'
      , fitExactly: true
    };
    var helvetica = {
    src:'http://www.zuiltehuur.nl/flash/helveticaneueheavy.swf'
      , ratios: [6,1.41,9,1.35,15,1.29,21,1.25,22,1.22,27,1.24,29,1.21,34,1.22,41,1.21,45,1.2,46,1.21,59,1.2,68,1.19,69,1.2,96,1.19,97,1.18,102,1.19,103,1.18,107,1.19,108,1.18,112,1.19,114,1.18,116,1.19,120,1.18,121,1.19,1.18]
      , wmode: 'transparent'
      , fitExactly: true
    };
    sIFR.activate(helveticaneueheavy);    
    sIFR.activate(helvetica);    
		sIFR.replace(helveticaneueheavy, {
    selector: 'h2.bestelnu_home'
    ,css: [
      '.sIFR-root { color:#FFFFFF; }'
,'.sIFR-root a {color:#ffffff; text-decoration:none;}'
,'a:hover { color: #ffffff; text-decoration:none;}'
    ]
    });
		sIFR.replace(helveticaneueheavy, {
    selector: 'h2.blauw_home'
    ,css: [
      '.sIFR-root { color:#0081c6; }'
    ]
    });
		sIFR.replace(helveticaneueheavy, {
    selector: 'h2.zwart_home'
    ,css: [
      '.sIFR-root { color:#000000; }'
			,'.sIFR-root em {color:#ffffff; font-style:normal;}'
    ]
    });
		sIFR.replace(helveticaneueheavy, {
    selector: 'h2.wit_home'
    ,css: [
      '.sIFR-root { color:#ffffff; }'
    ]
    });

		sIFR.replace(helvetica, {
    selector: 'b.h2'
    ,css: [
      '.sIFR-root { color:#ffffff;font-size:16px;font-weight:normal;height:10px;}'
    ]
    });
		
		var helveticablack = {
    src:'http://www.zuiltehuur.nl/flash/helveticablack.swf'
      , ratios: [6,1.41,9,1.35,15,1.29,21,1.25,22,1.22,27,1.24,29,1.21,34,1.22,41,1.21,45,1.2,46,1.21,59,1.2,68,1.19,69,1.2,96,1.19,97,1.18,102,1.19,103,1.18,107,1.19,108,1.18,112,1.19,114,1.18,116,1.19,120,1.18,121,1.19,1.18]
      , wmode: 'transparent'
      , fitExactly: true
    };
    sIFR.activate(helveticablack);
    sIFR.replace(helveticablack, {
    selector: 'h2.title_products_blauw'
    ,css: [
			'.sIFR-root { color:#000000; font-style:normal;}'
			,'.sIFR-root em {color:#1f89ca; font-style:normal;}'
    ]
    });
    sIFR.activate(helveticablack);
    sIFR.replace(helveticablack, {
    selector: 'h2.title_products_roze'
    ,css: [
			'.sIFR-root { color:#000000; font-style:normal;}'
			,'.sIFR-root em {color:#cd3985; font-style:normal;}'
    ]
    });
		/*sIFR.replace(helveticablack, {
    selector: 'h1.title_products'
    ,css: [
			'.sIFR-root em.blauw {color:#1f89ca; font-style:normal;}'
    ]
    });*/
		sIFR.replace(helveticablack, {
    selector: 'h1'
    ,css: [
      '.sIFR-root { color:#FFFFFF;text-align: left; }'
    ]
    });
