﻿

// JQUERY INIT //
var $jq = jQuery.noConflict();

// TOOLTIP //
$jq(document).ready(function() {

    $jq('.lees-verder').poshytip({
        content: "lees verder",
        className: 'tip-yellowsimple',	 
        showTimeout: 1,
        alignTo: 'target',
        alignX: 'left',
        offsetY: -35,
        offsetX: 15,
        allowTipHover: false
    });
       
});

// BROWSER WARNING //
$jq(document).ready(function(){

    $jq.reject();   
    return false;
});

// TABS //
$jq(document).ready(function(){

    $jq(function(){	
	    $jq('#tabs').tabs();
    });
    
});

// FANCYBOX //
$jq(document).ready(function(){

    $jq("a.fancybox").fancybox({
	    'overlayShow'			: true,
	    'zoomSpeedIn'			: 600,
	    'zoomSpeedOut'			: 500,
	    'easingIn'				: 'easeOutBack',
	    'easingOut'				: 'easeInBack',
	    'titleShow'             : false
	    
    });    
    
});


// MENU //
$jq(document).ready(function(){

   //$jq('#ctl00_tekoop_subtabs').hide(); 
   //$jq('#ctl00_bertone_subtabs').hide();
   
   $jq('#ctl00_tekoop').click(function(){
        $jq('#ctl00_tekoop_subtabs').slideToggle("slow");
        return false;
   });
   
    $jq('#ctl00_bertone').click(function(){
        $jq('#ctl00_bertone_subtabs').slideToggle("slow");
        return false;
   });


});



// PREVIEW //
$jq(document).ready(function() {

    $jq(function(){
    
          $jq(".ic_container").capslide({
                    caption_color	: '#ffffff',
                    caption_bgcolor	: '#000000',
                    overlay_bgcolor : '#ffffff',
                    border			: '',
                    showcaption	    : true
                });
        
    });



});


function maakTooltip(hyperlinkID, contentID) {

    $jq(document).ready(function() {

        var pand_style = $jq('#' + contentID).html();

        $jq('#' + hyperlinkID).poshytip({
            content: pand_style,
            className: 'tip-yellowsimple',	        
            offsetY: 5,  
            alignTo: 'target',         
            alignX: 'center'         
        });

    });

}

function maakToggle(sClientID, sTargetID) {

    $jq(document).ready(function() {

        $jq("#" + sClientID).click(function() {
            $jq("#" + sTargetID).slideToggle("slow");
        });

    });
}

function initEPC(iEPC) {

    $jq(document).ready(function() {

        $jq("#EPC_slider").slider({
            disabled: true,
            min: 0,
            max: 700,
            value: iEPC
        });

    });

}
