
$(document).ready(function() {  
  $('#images').carousel({
    hide: 'fadeOut',
    show: 'fadeIn',
    duration: 6500,
    speed: 1000,
    seed: 5
  });
});




var defaultval=new String;

function test() {
	return;
}

function hakubox(field) {

        if (!document.getElementById) { return; }
	if (document.getElementById(field)) {
		laatikko = document.getElementById(field);
		if (laatikko != false) {
        	        defaultval = laatikko.value;
        	        laatikko.onfocus = box_clear;
        	        laatikko.onblur = box_reset;
        	 }
	}
}

function box_clear() {
        if (this.value == defaultval) {
                this.value = '';
        }
	return;
}

function box_reset() {
        if (this.value.length == 0) {
                this.value=defaultval;
        }
}

function stopError() {
	return true;
}

//window.onerror = stopError;

function preLoad (area) {
	if (document.images) {
		img1 = new Image(); img1.src = '/img/menu/menu_sel_02.gif';
		img2 = new Image(); img2.src = '/img/menu/menu_sel_03.gif';
		img3 = new Image(); img3.src = '/img/menu/menu_sel_04.gif';
		img4 = new Image(); img4.src = '/img/menu/menu_sel_05.gif';
		img5 = new Image(); img5.src = '/img/menu/menu_sel_06.gif';		
	}
}
		
function hi (image,lang) {
	if (document.images) {
		document.images["menu_"+image].src = "/img/menu/menu_sel_" + image + ".gif";
	}
}

function lo (image,lang) {
	if (document.images) {
		document.images["menu_"+image].src = "/img/menu/menu_" + image + ".gif";
	}
}

function JumpTo(dropDown) {
	var url = dropDown.options[dropDown.selectedIndex].value;
	if ( (url != "#") && (url != "") ) {
		window.location.href = url;
	}
}

function showHideTabs (showTab, show, hideTab1, hide1) {
	if (document.getElementById) {
		if (hideTab1) document.getElementById(hideTab1).className = '';
		if (hide1) document.getElementById(hide1).style.display = 'none';
		if (showTab) document.getElementById(showTab).className = 'activeItem';
		if (show) document.getElementById(show).style.display = 'block';
	}
}

//window.onload = hakubox('vapaasana');

//onblur="this.style.backgroundColor='#8A9630'" onfocus="this.style.backgroundColor='#B5C077'
