window.onload = function() {
	kaderkopSettings = { tl:{radius:5}, tr:{ radius:5}, bl:{ radius:0}, br:{ radius:0}, antiAlias:true, autoPad:true, validTags:["div"] }
	kaderbodySettings = { tl:{radius:0}, tr:{ radius:0}, bl:{ radius:5}, br:{ radius:5}, antiAlias:true, autoPad:true, validTags:["div"] }
	
	var kaderkop = new curvyCorners(kaderkopSettings, "tKaderkop");
	var kaderbody = new curvyCorners(kaderbodySettings, "tKaderbody");
	
	kaderkop.applyCornersToAll();
	kaderbody.applyCornersToAll();
}

function tDimmer(s) {
	styleRef('tDimmer').display=(s==1)?'block':'none'
}

/*hs.Expander.prototype.onInit = function (sender) {
   var s = "The current properties of sender:\n\n";
   for (var x in sender.a) {
      if (typeof sender.a[x] != "function")
         s += x +": "+ sender.a[x] +"\n";
   }
   s += "\nClick OK to continue, or Cancel to cancel the expander."
   return confirm(s);
}*/

function tFotoshow(guid) {
	hs.htmlExpand(objRef('tFotodetailpositie'),{contentId:'tFotodetail',targetX:'tFotodetailpositie',targetY:'tFotodetailpositie',width:815,preserveContent:true,thumbnailId:guid,fadeInOut:true});
	fotoisopen=1
	setTimeout('tDimmer(1)',400)
}

function tFotohide(obj) {
	//hs.close()
	fotoisopen=0
	tDimmer(0);
	setTimeout('hs.close()',200)
}

/* VERPLAATST NAAR /pixxer/common.js
var tTabActief=1
function tTab(nr,s) {
	if (nr!=tTabActief) 
	switch(s) {
		case 1:
			styleRef('tTabM'+nr).backgroundImage='url(img/tab_m_1.png)';
			objRef('tTabL'+nr).src='img/tab_l_1.png';
			objRef('tTabR'+nr).src='img/tab_r_1.png';
			styleRef('tTabM'+nr).color='#555';
			break;
		case 2:
			for (i=1;i<=3;i++) {
				s2=(i==nr)?2:0;
				styleRef('tTabM'+i).backgroundImage='url(img/tab_m_'+s2+'.png)';
				objRef('tTabL'+i).src='img/tab_l_'+s2+'.png';
				objRef('tTabR'+i).src='img/tab_r_'+s2+'.png';
				styleRef('tTabM'+i).color=(i==nr)?'#fff':'#aaa';
				styleRef('tDetailtab'+i).display=(i==nr)?'block':'none';
			}
			tTabActief=nr;
			break;
		default:
			styleRef('tTabM'+nr).backgroundImage='url(img/tab_m_0.png)';
			objRef('tTabL'+nr).src='img/tab_l_0.png';
			objRef('tTabR'+nr).src='img/tab_r_0.png';
			styleRef('tTabM'+nr).color='#aaa';
	} 
	
}
*/

/* overbodig (zat in foto detailscherm)
function shProducten(productgroep) {
	for (i=0;i<20;i++) 
	if (objRef('producten'+i)) 
	if (i==productgroep) styleRef('producten'+i).display=(styleRef('producten'+i).display=='block')?'none':'block'
	else styleRef('producten'+i).display='none'
	actieveproductgroep=productgroep
}
*/


hs.graphicsDir = '/js/highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.outlineWhileAnimating = true;    /* moet misschien op false ivm performance */
hs.showCredits = false;
hs.enableKeyListener = false;
hs.allowWidthReduction = false;
hs.allowHeightReduction = false;
hs.wrapperClassName = 'highslide-kalender';
hs.allowMultipleInstances = false;
hs.width = 180;
hs.minWidth = 180;
//hs.blockRightClick = true;

hs.expandSteps= 4
hs.restoreSteps=4
//hs.expandDuration= 0
//hs.dimmingOpacity=0.7
//hs.dimmingDuration=0

// hs.targetX = 'tMainzoekdatum';
// hs.targetY = 'tMainzoekdatum';

