// JavaScript Document

swfobject.registerObject("main_flash_container", "9.0.0");

swfobject.registerObject("flash_1", "9.0.0");

swfobject.registerObject("flash_2", "9.0.0");

swfobject.registerObject("flash_3", "9.0.0");

var timeoutAboutUs;
var timeoutTenders;
var timeoutStatistics;
var timeoutGallery;

function rollOverAbout(lang) {

	$('#about_us').attr('src', 'imgs/about_us_' + lang + '_roll.gif');
	
	clearInterval(timeoutAboutUs);
	
	$('#about_us_drop').css('display', 'block');

}

function rollOutAbout(lang) {
	
	timeoutAboutUs = setTimeout('hideAboutUs(\'' + lang + '\')', 100);
	
}

function hideAboutUs(lang) {
	
	$('#about_us').attr('src', 'imgs/about_us_' + lang + '_normal.gif');
	
	$('#about_us_drop').css('display', 'none');
	
}

function rollOverTenders(lang) {

	$('#tenders').attr('src', 'imgs/tenders_' + lang + '_roll.gif');
	
	clearInterval(timeoutTenders);
	
	$('#tenders_drop').css('display', 'block');

}

function rollOutTenders(lang) {
	
	timeoutTenders = setTimeout('hideTenders(\'' + lang + '\')', 100);

}

function hideTenders(lang) {
	
	$('#tenders').attr('src', 'imgs/tenders_' + lang + '_normal.gif');
	
	$('#tenders_drop').css('display', 'none');
	
}

function rollOverStatistics(lang) {

	$('#statistics').attr('src', 'imgs/statistics_' + lang + '_roll.gif');
	
	clearInterval(timeoutStatistics);
	
	$('#statistics_drop').css('display', 'block');

}

function rollOutStatistics(lang) {
	
	timeoutStatistics = setTimeout('hideStatistics(\'' + lang + '\')', 100);

}

function hideStatistics(lang) {
	
	$('#statistics').attr('src', 'imgs/statistics_' + lang + '_normal.gif');
	
	$('#statistics_drop').css('display', 'none');
	
}

function rollOverGallery(lang) {

	$('#gallery').attr('src', 'imgs/gallery_' + lang + '_roll.gif');
	
	clearInterval(timeoutGallery);
	
	$('#gallery_drop').css('display', 'block');

}

function rollOutGallery(lang) {
	
	timeoutGallery = setTimeout('hideGallery(\'' + lang + '\')', 100);

}

function hideGallery(lang) {
	
	$('#gallery').attr('src', 'imgs/gallery_' + lang + '_normal.gif');
	
	$('#gallery_drop').css('display', 'none');
	
}

