/*********************************************************************************/
function EnlargeImage(ImageID, ItemEvent){
	var Width = document.getElementById(ImageID).width;
	var Height = document.getElementById(ImageID).height;
	if(document.getElementById(ImageID).src.indexOf('zoom-in', 0) == -1){
		var attributes = {
			height: { to: Width * 2 },
			width: { to: Height * 2 }
		};
		ItemEvent.src = 'images/zoom-out.gif';
	}
	else{
		var attributes = {
			height: { to: Width / 2 },
			width: { to: Height / 2 }
		};
		ItemEvent.src = 'images/zoom-in.gif';
	}
	var anim = new YAHOO.util.Anim(ImageID, attributes);
	anim.animate();
}
/*********************************************************************************/
function LangOver(LangCode, Over, ImageID){
	if(Over == 1){
		document.getElementById(ImageID).style.cursor = 'pointer';
		document.getElementById(ImageID).src = '/images/languages/'+LangCode+'-hover.jpg';}
	else{
		document.getElementById(ImageID).src = '/images/languages/'+LangCode+'-noactive.jpg';}
}
/*********************************************************************************/
function ShowPanel(PanelID, IconID){
	IconID.src = '/images/zoom-out.gif';
	PanelID = style.visibility
	
}

function OpenFoto(img){
foto= new Image();
foto.src=(img);
ControlFoto(img);
}

function ControlFoto(img){
if((foto.width!=0)&&(foto.height!=0)){
ViewFoto(img);
}
else{
interval_a="ControlFoto('"+img+"')";
interval_b=setTimeout(interval_a,20);
}
}
function ViewFoto(img){
//width=foto.width*1.5;
//height=foto.height*1.5;
width=350;
height=310;
w_width=width+20;
w_height=height+24;
try {
if (output.closed == false) throw "offen";
}
catch (e) {
if (e=="offen") {
output.close();
}
}
output=window.open("","output","left=200,top=40,width="+w_width+",height="+w_height+",location=no,toolbar=no,menubar=no,status=no,scrol lbars=no,resizable=no");
output.document.writeln("<html><head><title>..:: Foto ::..<\/title><\/head>");
output.document.writeln("<body bgcolor=\"white\" text=\"white\" link=\"white\" vlink=\"white\" alink=\"white\" leftmargin=\"0\" marginwidth=\"0\" topmargin=\"0\" marginheight=\"0\">");
output.document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">");
output.document.writeln("<tr><td width=\"100%\" height=\"100%\" align=\"left\" valign=\"top\"><p><a href=\"javascript:self.close()\"><img src=\""+img+"\" width=\""+width+"\" height=\""+height+"\" border=\"10\" alt=\"click here to close the window\"></a><\/p><\/td><\/tr>");
output.document.writeln("<\/table><\/body><\/html>");
output.document.close();
output.focus();
}
regionnumber = 0;
activateRegionnumber = -1;
function onClickRegion(regionid){
	for(i =0; i < regionnumber; i++){
			var key = "region_"+i;
			if(i == regionid){
					document.getElementById(key).style.display="block";
			}
			else{
					document.getElementById(key).style.display="none";
			}
	}
	return false;
	
}
