jQuery(document).ready(function() {
    jQuery('.slideshow').cycle({
    		fx:   'fade', 
    		delay: -2000,
    });
		jQuery("a#single_image").fancybox();
		jQuery("a.iframe").fancybox({
				overlayShow: true,
				overlayOpacity: 0.9,
				hideOnContentClick: false,
				padding:0,
				margin:0,
				width: 660,
				height: 500,
				scrolling: 'no',
				autoScale:true
				
		}); 
		$("a#inline").fancybox({
		'hideOnContentClick': true
	});
		jQuery("#hidden_banners").css("display","block");


});

function languageChange(type){
	window.location = type.value;

	return false;	
}

function cleartext(text) {
	if (text.value == text.defaultValue) {
		text.value = ""
	}
}

function replace_text(text) {
	if (text.value == "") {
		text.value = text.defaultValue
	}
}

function accordion(id){
	$("#hidebut_"+id).toggle();
	$("#button_"+id).toggle();
	$("#hidethis_"+id).slideToggle();
	return false;
}

