/*****************************   functions jquery menu: ************************/
$(document).ready(function(){ 
	$("ul.sf-menu").supersubs({ 
		minWidth:    9,    // minimum width of sub-menus in em units 
		maxWidth:    27,   // maximum width of sub-menus in em units 
		extraWidth:  0.6   // extra width can ensure lines don't sometimes turn over 
						   // due to slight rounding differences and font-family 
	}).superfish({
		delay:       300,                             // one second delay on mouseout 
		animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
		speed:       'fast',                          // faster animation speed 
		autoArrows:  true,                           // generation of arrow mark-up 
		dropShadows: false 
	}).find('ul')
					 // call supersubs first, then superfish, so that subs are 
					 // not display:none when measuring. Call before initialising 
					 // containing tabs for same reason. 
	$('#innercontainer').css('height', $('#rightpartcontentcontainer').height() + 90 + 'px');
	var timeout = setTimeout("checkHeight()",1000);
	// vertraging nodig omdat de thumbs nog geladen moeten worden, lijkt het...
	
});

/*****************************   verplaatsen logo bij veel producten: ************************/
function checkHeight() {

	var check = $('#item-choices').height();
	//alert('check: '+check);//412
	if( (125+check) > 490 ) {
		$('#logo').css('top', check + 90 + 'px');
		$('#innercontainer').css('height', check + 200 + 'px');
		if(isIE6==true) {
			$('#logo').css('top', check + 50 + 'px');
		}
	}

}
