<!--
function TargetBlank() {
  $$('a.target_blank').each(
  	function(obj){
  		obj.target = "_blank";
  	}
  );
}

//////////////////////////// disable right click //////////////////////////////
function clickIE4() {
	if(event.button==2)
		return false;
}

function clickNS4(e) {
	if(document.layers||document.getElementById&&!document.all) {
		if(e.which==2||e.which==3)
			return false;
	}
}

function disableRightClick() {
	if(document.layers) {
		document.captureEvents(Event.MOUSEDOWN);
		document.onmousedown=clickNS4;
	}
	else if (document.all&&!document.getElementById) {
		document.onmousedown=clickIE4;
	}
	document.oncontextmenu=function() {
		return false;
	}
}
///////////////////////////////////////////////////////////////////////////////

function showPhotoSetList() {
	new Effect.Appear($('photoSetList'), {duration: 0.3});
}

function hidePhotoSetList() {
	new Effect.Fade($('photoSetList'), {duration: 0.3});
}

function welcomeEffects() {
	new Effect.Morph('bodybgimage', {style:'filter:alpha(opacity=100);-moz-opacity:0.99;opacity:0.99;',duration: 0.5});	
	$('photoSetList').hide();
}

function resizeContents() {
	$$('html').each(function(obj) {obj.setStyle({ overflow: 'hidden'});});
	var hV=document.viewport.getHeight();	
	if($('pageContent')) {
		var mT=($('pageContent').style.marginTop).replace("px","");
		var nH=hV-mT-190;
		$('pageContent').setStyle({ height: nH+'px'});		
	}	
}

function init() {
	disableRightClick();
	TargetBlank();
	resizeContents();	
	welcomeEffects();
}

document.observe("dom:loaded", init);
//-->
