/** 

  #####################################
    -------------------------------  
    |                               | 
    |   Weasel Galley Version 1.0   | 
    |                               | 
    |       Copyright 2007          | 
    |                               | 
     -------------------------------  
  #####################################

**/

function jumpMenu(selObj,restore){
  eval("location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function thumbOver (id) {
	var object = document.getElementById(id);
    object.className=('thumbnails_over');
}

function thumbOut (id) {
	var object = document.getElementById(id);
    object.className=('thumbnails');
}

// if Javascript enabled set all fade_images as hidded
document.write("<style type='text/css'>#disp {visibility:hidden;}</style>");

function initImage() {
	imageId = 'disp';
	image = document.getElementById(imageId);
	setOpacity(image, 0);
	image.style.visibility = "visible";
	fadeIn(imageId,0);
}
function fadeIn(objId,opacity) {
	if (document.getElementById) {
		obj = document.getElementById(objId);
		if (opacity <= 100) {
			setOpacity(obj, opacity);
			opacity += 10;
			window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
		}
	}
}
function setOpacity(obj, opacity) {
	opacity = (opacity == 100)?99.999:opacity;
	// IE/Win
	obj.style.filter = "alpha(opacity:"+opacity+")";
	// Safari<1.2, Konqueror
	obj.style.KHTMLOpacity = opacity/100;
	// Older Mozilla and Firefox
	obj.style.MozOpacity = opacity/100;
	// Safari 1.2, newer Firefox and Mozilla, CSS3
	obj.style.opacity = opacity/100;
}
window.onload = function() {initImage()}

function commentsRequest(nameWarning, emailWarning){
if(document.comments_req.comm_rq_name.value==''){alert(nameWarning);
return false;}
if(document.comments_req.comm_rq_email.value==''){alert(emailWarning);
return false;}
else{return true;}
}

function commentsForm(nameWarning, contentWarning, keyWarning){
if(document.comments_form.comm_name.value==''){alert(nameWarning);
return false;}
if(document.comments_form.comm_text.value==''){alert(contentWarning);
return false;}
if(document.comments_form.comm_key.value==''){alert(keyWarning);
return false;}
else{return true;}	
}
	