


//////////////////////////COLOR-CHANGE FUNCTIONS\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
function fmChange(myChoise){
document.bgColor=myChoise;
if (document.all){
document.body.style.scrollbarFaceColor=myChoise;
document.body.style.scrollbarHighlightColor=myChoise;
document.body.style.scrollbarShadowColor=myChoise;
document.body.style.scrollbarTrackColor=myChoise;
document.getElementbyID('mfg_menu').style.backgroundColor=myChoise;

}
colorset=myChoise;
}

var h 
if (self.location.href.indexOf('?')== -1) {h = ''} else {h = self.location.href.split('?');}

var colorset = '#000000'

if (self.location.href.indexOf('#')== -1) {colorset = '#000000'} else {colorset = self.location.href.split('#');}


function read_color() {
	if (h[1] && h[1]!='slidemode'){fmChange(h[1])}
	if (h[2] && h[2]!='slidemode'){fmChange(h[2])}
	else {fmChange(colorset)}
}

//fmChange(colorset);




var param='width='+(screen.availWidth)+',height='+(screen.availHeight)+'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,top=0,left=0'
function start_show(set_url){
	if (window.name!='fullmode'){
   where2go = set_url+'?'+colorset;
			fullmode=window.open(where2go,'fullmode',param);
			fullmode.focus();
			}
	else {document.location.href=where2go;}
}


//////////////////////////MAIN-NAVIG FUNCTIONS\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

function go_home(){
	if (self.name=='fullmode'){
			if (window.opener){
							window.close('fullmode');
							window.opener.parent.window.focus();
							}
				else {
				startwindow=window.open('http://foto.luc.net/', 'startwindow', '');
				startwindow.focus();
				self.close();
				}
		}
		else {window.top.document.location.href='../'}
}

function go_topnav(theLink){

			if (self.name=='fullmode' || window.opener){
							window.opener.location.href=theLink;
							window.close('fullmode');
							window.opener.focus();}
				else if (self.name=='startwindow' || window.opener == false) {
				document.location.href = theLink;
				self.focus();}
				}



//////////////////////////BACKGROUND-COLOR FUNCTION

function colorbutani_over(el_big) {
	el_big.style.margin='0px';
	el_big.style.width='17px';
	el_big.style.height='17px';
	el_big.style.padding='0px';
	el_big.style.borderColor='white';
}

function colorbutani_out(el_normal) {
	el_normal.style.margin='2px'
	el_normal.style.width='13px';
	el_normal.style.height='13px';
	el_normal.style.padding='0px';
	el_normal.style.borderColor='#999999';
}


//////////////////////////RIGHT-CLICK DEARM FUNCTION\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

var message="Please respect the copyright!\nFeel free to loop to luc@luc.net for all inquiries...";
function clickIE4(){if (event.button==2){return false;}}
function clickNS4(e){if (document.layers||document.getElementById&&!document.all){
if (e.w1==2||e.w1==3){return false;}}}
if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4;}
else if (document.all&&!document.getElementById){document.onmousedown=clickIE4;}
document.oncontextmenu=new Function("return false")


