/*
#########################################################
#
# default javascript functions for the entire site
#
# Copyright:		2006 S-Inside
# Project:			De Smedtjes
# Platform:			Javascript
#
#########################################################
*/


if (top != self) self.location.href = "index.html";

window.onload = function() {
	if (navigator.appName == "Microsoft Internet Explorer") {
		var htmlStyle = document.getElementsByTagName('html')[0].style;
		var bodyStyle = document.body.style;

		bodyStyle.scrollbarFaceColor = htmlStyle.scrollbarFaceColor = '#d18b5b';
		bodyStyle.scrollbarArrowColor = htmlStyle.scrollbarArrowColor = '#704930';
		bodyStyle.scrollbarTrackColor = htmlStyle.scrollbarTrackColor = '#000000';
		bodyStyle.scrollbarShadowColor = htmlStyle.scrollbarShadowColor = '#704930';
		bodyStyle.scrollbarHighlightColor = htmlStyle.scrollbarHighlightColor = '#95613e';
		bodyStyle.scrollbar3dlightColor = htmlStyle.scrollbar3dlightColor = '#95613e';
		bodyStyle.scrollbarDarkshadowColor = htmlStyle.scrollbarDarkshadowColor = '#95613e';
	}
}

function popimage(imagesrc,winwidth,winheight,strTitle){
	winwidth += 36;
	winheight += 100;

	var wLook='width='+winwidth+',height='+winheight+',resizable=yes,scrollbars=no,toolbar=no,titlebar=no,status=no,menubar=yes'
	popwin=window.open("","",wLook)
	popwin.document.open()
	popwin.document.write('<TITLE>'+strTitle+'</TITLE><BODY leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#D18B5B>')
	popwin.document.write('<TABLE width=100% border=0 cellpadding=0 cellspacing=0><TR><TD bgcolor=#D18B5B align=center valign=middle height=40>')
	popwin.document.write('<B>'+strTitle+'</B></TD></TR>')
	popwin.document.write('<TR><TD align=center bgcolor=#000000><IMG src=blank.gif width=3 height=18><BR><img src="'+imagesrc+'"><BR><IMG src=../blank.gif width=3 height=18></TD></TR>')
	popwin.document.write('<TR><TD bgcolor=#D18B5B><IMG src=../blank.gif width=3 height=40></TD></TR></TABLE></BODY>')
	popwin.document.close()
}

function popperkament(imagesrc,winwidth,winheight,strTitle){
	winwidth += 36;
	winheight += 116;

	var wLook='width='+winwidth+',height='+winheight+',resizable=yes,scrollbars=no,toolbar=no,titlebar=no,status=no,menubar=yes'
	popwin=window.open("","",wLook)
	popwin.document.open()
	popwin.document.write('<TITLE>'+strTitle+'</TITLE><BODY leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#FFFFFF>')
	popwin.document.write('<TABLE width=100% border=0 cellpadding=0 cellspacing=0><TR><TD bgcolor=#D18B5B align=center valign=middle height=40>')
	popwin.document.write('<B>'+strTitle+'</B></TD></TR>')
	popwin.document.write('<TR><TD align=center><IMG src=blank.gif width=3 height=18><BR><img src="'+imagesrc+'"><BR><IMG src=../blank.gif width=3 height=18></TD></TR>')
	popwin.document.write('<TR><TD bgcolor=#D18B5B><IMG src=../blank.gif width=3 height=40></TD></TR></TABLE></BODY>')
	popwin.document.close()
}

function pophtm(src,winwidth,winheight){
	var wLook='width='+winwidth+',height='+winheight+',resizable=yes,scrollbars=yes,toolbar=no,titlebar=no,status=no,menubar=yes'
	popwin=window.open(src,"",wLook)
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
