/*****************************************************************************
 *
 *  Copyright            : Copyright (C) Vizzual Multimedia VOF
 *  Email                : info @ vizzual.com
 *	
 *  
 *  Disclaimer:
 *	Niets uit dit script mag zonder toestemming van de maker van deze
 *	scripting gekopieerd, of doorverkocht worden aan derden. De maker van deze
 *	scripting blijft ten alle tijden copyright op dit product houden. De 
 *	scripting is ter beschikking gesteld door Vizzual Multimedia VOF.
 *	Dit programma is GEEN vrije software, en mag niet worden doorverkocht en/
 * 	of gewijzigd worden tenzij de eigenaar toestemming hiervoor heeft verleend
 *
 *****************************************************************************/


sfHover = function()
	{
	var sfEls = document.getElementById("menu").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++)
		{
		sfEls[i].onmouseover=function()
			{
			$('#animation_header').css("display","none");
			this.className+=" hover";
			}
		sfEls[i].onmouseout=function()
			{
			$('#animation_header').css("display","block");
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
			}
		}
	}

function email(second,first)
	{
	document.write('<a href=\"mailto:'+first+'@'+second+'\">'+first+'@'+second+'</a>');
	}

function goto(url)
	{
	document.location.href = domain+'/'+url;	
	}
	
$(document).ready(function(){
	sfHover();
	$('#content').mouseover(function(){
		$("#menu li").removeClass('hover');
	});
	
	$('#group .hover').imghover({suffix: '_hover', fade: true});
	$('#search .hover').imghover({suffix: '_hover'});
	$('#newsletter .hover').imghover({suffix: '_hover'});
	$('#content_text .hover').imghover({suffix: '_hover'});
	$('#group_small .hover').imghover({suffix: '_hover'});

	$('#news_slide').cycle({ 
		fx: 'scrollRight', 
		speed: 1500, 
		timeout: 5000,
		next: '#news_next'
	});

	$('#animation_header').flash({
    	src: 'flash/animation_header.swf',
	    width: 951,
    	height: 12
	});
	$('#animation_product').flash(null,null,function(htmlOptions) {
		var $this = $(this);
		var id = $this.attr('title');
		htmlOptions.src = 'flash/product_'+id+'.swf';
		htmlOptions.width = 246;
		htmlOptions.height = 287;
        $this.prepend($.fn.flash.transform(htmlOptions));
	});
});