function drawbg(i)
{
    clearbg();
    document.getElementById(i).bgColor = "#dbdbdb";
  //  var ob = document.getElementById("imageholder");
 //   ob.src = getImagePath(i);
    //alert(i);
	}
function clearbg()
{
    document.getElementById('td1').bgColor = "#ffffff";    
    document.getElementById('td2').bgColor = "#ffffff";    
    document.getElementById('td3').bgColor = "#ffffff";    
    document.getElementById('td4').bgColor = "#ffffff";    
    document.getElementById('td5').bgColor = "#ffffff";    
    document.getElementById('td6').bgColor = "#ffffff";    
    document.getElementById('td7').bgColor = "#ffffff";    
    document.getElementById('td8').bgColor = "#ffffff";    
	}
function getImagePath(i)
{
    if (i=="td1") return "images/company.jpg";
    if (i=="td2") return "images/services.jpg";
    if (i=="td3") return "images/convention.jpg";
    if (i=="td4") return "images/programms.jpg";
    if (i=="td5") return "images/sight.jpg";
    if (i=="td6") return "images/groups.jpg";
    if (i=="td7") return "images/activities.jpg";
    if (i=="td8") return "images/experience.gif";
 //   return "images/company.jpg";
	}
////////////////////
function resolveHiperlink(link)
{
var gu = ""+document.location;
location.href = "index.php#"+link;
}
///////////////////////////////////////////////////
function remove_filter(filter)
{
getUrl = ""+document.location;
getUrl = getUrl.replace(filter,"");
location.href = getUrl;
}
//////////////////////////////////////////////////////////////////////////////////////
function change_language(lan)
{
createCookie("lang",lan,30);
getUrl = ""+document.location;
location.href = getUrl;

}

function over(pr)
{
var ob = document.getElementById("europe_map");
ob.src = "images/tari/"+pr+".gif";
}
function out()
{
var ob = document.getElementById("europe_map");
ob.src = "images/europe.gif";
}
//////////////////////
function overc(id,nr)
{
var ob = document.getElementById("country_map");
ob.src = "images/tari/"+id+"/"+nr+".gif";
}
function outc(id)
{
var ob = document.getElementById("country_map");
ob.src = "images/tari/"+id+"/"+id+"_.gif";
}
//////////////////////

function changePic(pic)
{
//alert('bau');
document.getElementById('pictureholder').src = ""+pic+"";
}
function submitMenuForm(tab)
{
document.getElementById('tabid').value=""+tab+"";
document.formmenu.submit();
}
/////////////////////////////
function showRegion(region)
{
document.getElementById('region_country').value=""+region+"";
document.country_search.submit();
	}
function showCountry(country)
{
document.getElementById('reg_country').value=""+country+"";
document.getElementById('region_country').value="undef";
document.country_search.submit();
	}
//////////////////////////////////////////////////////////////////////

$(document).ready(
	function()
	{
if (document.getElementById("slideShow1")) {
		$.slideshow(
			{
				container : 'slideShow1',
				loader: 'images/slideshow_loader.gif',
				linksPosition: 'top',
				linksClass: 'pagelinks',
				linksSeparator : ' | ',
				fadeDuration : 300,
				activeLinkClass: 'activeSlide',
				nextslideClass: 'nextSlide',
				prevslideClass: 'prevSlide',
				captionPosition: 'bottom',
				captionClass: 'slideCaption',
				autoplay: 5,
				random: true,
				images : [
					{ src: 'images/flash/europa.jpg',caption: 'Europa Hotel' },
					{ src: 'images/flash/iaht.jpg',caption: 'Cruise Iaht' },
					{ src: 'images/flash/intercontinental.jpg',caption: 'Intercontinental Hotel' },
					{ src: 'images/flash/plaza.jpg',caption: 'Crowne Plaza' },
					{ src: 'images/flash/sala1.jpg',caption: 'Conference Hall' },
					{ src: 'images/flash/sala2.jpg',caption: 'Conference Hall' },
					{ src: 'images/flash/sala3.jpg',caption: 'Conference Hall' },
					{ src: 'images/flash/sala.jpg',caption: 'Conference Hall' },
					{ src: 'images/flash/wtc.jpg',caption: 'World Trade Center' }
				]
			}
		)
	} // active

	}
);
