/**
* Common stuff
*/


/**
* pdf links...
*/
function iconizePDFlinks(obj){
	o = obj.getElementsByTagName('a');
	for(i=0;i<o.length;i++){
        j = o[i].getAttribute('href');
		if(j && (j.indexOf('.pdf') > -1 || j.indexOf('.PDF') > -1)){
			o[i].className+= " pdfLink";
		}
	}
}

function do_onload(){
	colorSideTitles(document.getElementById('leftcol'));
	colorSideTitles(document.getElementById('rightcol'));
	iconizePDFlinks(document.getElementById('content'));
// 	niceButtons();
	roundedImages();

	//patch strange behavour of MSIE and flash files...
	//		they don't autostart... and with this patch they do...
	//		it seems something to do with a legal somthing of Microsoft and activeX?
	if(document.all && 1 == 0){
		o = document.getElementsByTagName("object");
		for(i=0;i<o.length;i++)
			o[i].outerHTML = o[i].outerHTML;
	}
}

// start scripts
window.onload = function(){
	do_onload();
}

$(document).ready(function(){
	$.extend($.blockUI.defaults.overlayCSS, { backgroundColor: '#000' });

	$("#logo").append('<div class="ruig"></div>');
	$("#logo .ruig").show();
/*
 	$("<img src=\"/domains/sierra240.nl/images/sierra-betekent-vakantie.jpg\" height=\"425\" width=\"709\" border=\"0\" />")
		.appendTo('body.splash')
		.displayBox();
*/
});