/* CALL JAVASCRIPT JQUERY FUNCTIONS */

	//Shadowbox.init();
	
			Shadowbox.init({
		 	resizeLgImages:     true,
			handleOversize:     "resize",
    	displayNav:         true,
    	handleUnsupported:  "true",
    	autoplayMovies:     true,
    	players:    ["swf","iframe","img"]

});


	$(document).ready(function(){
		$("#kleur").attr("disabled", true);
			
    $(".merken").mouseover(function(){
        var id = $(this).attr("id");
    	$("#sel_"+id).removeClass().addClass("select_hover");
    }).mouseout(function(){
        var id = $(this).attr("id");
    	$("#sel_"+id).removeClass().addClass("selecteer");
    });

     $('a.jTip').cluetip();

	    $('a.jTip2').cluetip({leftOffset: '-260',positionBy :"mouse"});

	    $('a.jInfo').cluetip({width: '820px', sticky: true, closePosition: 'top',leftOffset: '250',  closeText: '<img src="images/close.gif" alt="Sluit" border="0" title="Sluit" />'});

	    $('a.jInfo2').cluetip({width: '520px', sticky: true, closePosition: 'top',topOffset: '10', closeText: '<img src="images/close.gif" alt="Sluit" border="0" title="Sluit" />'}
			);

	    $('a.nbr').cluetip({width: '330px', showTitle: false, cluetipClass: 'info',dropShadow: false});
	    $('a.info').cluetip({width: '360px', showTitle: false, cluetipClass: 'info',dropShadow: false});
	    $('a.bwijze').cluetip({width: '422px', showTitle: false, cluetipClass: 'info',dropShadow: false});

		
		 $('#popupContact,#selecteer_cad,#selecteer2').pngFix( );
		
		
		 	//suggestValues();
		 						
				$("#gallery_output").show();
        $("#gallery_output img").not(":first").hide();
        $("#gallery_output img").not(":first").css('display','none');

			$("#gallery a").click(function() {
					if ( $("#" + this.rel).is(":hidden") ) {
						$("#gallery_output img").slideUp();
						$("#" + this.rel).slideDown();
				}
			});


		/*	$("#bel_me").click(function() {
					if ( $("#" + this.rel).is(":hidden") ) {
						$("#gallery_output img").slideUp();
						$("#" + this.rel).slideDown();
				}
			});
	*/

 	$('#but_1').addClass('active_1');

    $('a.title').click(function()
    {
    var targetID = this.parentNode.id;
 		var id = $(this).attr("id");


   for(i=1;i<=6;i++){
  		$('#but_'+i).removeClass('active_'+i);
 			$('#but_'+i).addClass('but_'+i);
    }

	$('#'+targetID).addClass(id);
	$('#'+targetID).removeClass(targetID);

});
					
					
 	});
 	
 	/* ROLLOVER */
$(function() {
    $('.rollover').hover(function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('rel'));
        $(this).attr('rel', currentImg);
    }, function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('rel'));
        $(this).attr('rel', currentImg);
    });
});

function roll_over(img_name, img_src)
   {
    document[img_name].src = img_src;
    
		if(img_src == 'images/banners/Samsung_Wave_Vodafone.jpg')
    {
    document.getElementById('doClick').setAttribute('href', 'index.php?page=aanbiedingen&action=informatie&id=1706');
    }else if(img_src == 'images/banners/Samsung_Wave_Tmobile.jpg')
    {
    document.getElementById('doClick').setAttribute('href', 'index.php?page=aanbiedingen&action=informatie&id=1709');
    }
   else if(img_src == 'images/banners/Samsung_Wave_Hi.jpg'){
   document.getElementById('doClick').setAttribute('href', 'index.php?page=aanbiedingen&action=informatie&id=1707');
   }
   else if(img_src == 'images/banners/Samsung_Wave_KPN.jpg'){
   document.getElementById('doClick').setAttribute('href', 'index.php?page=aanbiedingen&action=informatie&id=1708');
   }else if(img_src == 'images/banners/Samsung_Wave_Telfort.jpg'){
   document.getElementById('doClick').setAttribute('href', 'index.php?page=aanbiedingen&action=informatie&id=1710');
   }
   
	 
	 }

/* END ROLLOVER */
/* END JQUERY JAVASCRIPTS CALL FUNCTIONS */


