// ..................................................................................
//	 DEFAULT dMS FUNCTION # start
// ..................................................................................

d 				= document;
IE7				= 0;

/////////////////////////////////////////////////////////////////////////////////////
//	default dMS-script
/////////////////////////////////////////////////////////////////////////////////////

function JS_function()
	{
alert('Javascript says : hello, world...');
	}

/////////////////////////////////////////////////////////////////////////////////////
//	WRITE MAIL - SEARCH ENGINE SAFETY
/////////////////////////////////////////////////////////////////////////////////////

TheMail			= new Array();
TheMail[1]		= 'email';
TheMail[2]		= 'info'+'@'+'gekopwerk'+'.nl';

function Mail(WhichMail)
	{
d.write ('<a href="mailto:'+TheMail[2]+'" title=" '+TheMail[1]+' ">'+TheMail[WhichMail]+'</a>');
	}

/////////////////////////////////////////////////////////////////////////////////////
//	IMAGE PRELOADER
/////////////////////////////////////////////////////////////////////////////////////

dMSimage		= new Array();
dMSimage[1]		= new Image();
dMSimage[1].src	= '';

/////////////////////////////////////////////////////////////////////////////////////
//	OPEN SHARE-FUNCTIONS IN POP-UP
/////////////////////////////////////////////////////////////////////////////////////

function dMShare(TheLink)
	{
PopUp			= false;

PopUpHeight 	= 500;
ScreenHeight 	= window.screen.height; // d.body.clientHeight
PopUpTop	 	= 10;					// Math.floor((ScreenHeight-PopUpHeight)/2)-100;

PopUpWidth  	= 900;
ScreenWidth	 	= window.screen.width;	// d.body.clientWidth
PopUpLeft	 	= 10;					// Math.floor((ScreenWidth-PopUpWidth)/2);

PopVar			= 'toolbar=no,location=no,menubar=no,scrollbars=yes,width='+PopUpWidth+',height='+PopUpHeight+',resizable=yes,status=no,left='+PopUpLeft+',top='+PopUpTop;

try{PopUp = window.open(TheLink.href,'dMShare',PopVar);}
catch(e){};if(PopUp)try{PopUp.focus()}catch(e){};return !!PopUp;
	}
	
// ..................................................................................
//	 DEFAULT dMS FUNCTION # end
// ..................................................................................

/////////////////////////////////////////////////////////////////////////////////////
//	toggle login-box height
/////////////////////////////////////////////////////////////////////////////////////

function LogInBox()
	{
if(d.getElementById('loginform').style.display != 'block')d.getElementById('loginform').style.display = 'block';
else{d.getElementById('loginform').style.display = 'none';}	
	}
	
/////////////////////////////////////////////////////////////////////////////////////
//	OPEN OLD WEBSITES IN POPUP
/////////////////////////////////////////////////////////////////////////////////////

function History(Version)
	{
PopUpHeight 	= 700;
// ScreenHeight = d.body.clientHeight
// PopUpTop	 	= Math.floor((ScreenHeight-PopUpHeight)/2)-100;

PopUpWidth  	= 900;
// ScreenWidth	= d.body.clientWidth
// PopUpLeft	= Math.floor((ScreenWidth-PopUpWidth)/2);

// PopUpLeft 	= (window.screen.width - PopUpWidth) / 2;
// PopUpTop 	= (window.screen.height - PopUpHeight) / 2;

PopUpLeft 		= 25;
PopUpTop 		= 25;

PopVar			= 'toolbar=no,location=no,menubar=no,scrollbars=yes,width='+PopUpWidth+',height='+PopUpHeight+',resizable=yes,status=no,left='+PopUpLeft+',top='+PopUpTop;

PopUp 			= window.open('_history/?v='+Version,'dMShistory',PopVar);
	}
	
/////////////////////////////////////////////////////////////////////////////////////
//	OPEN GROUPSCHAT IN POPUP
/////////////////////////////////////////////////////////////////////////////////////

function GroupChat(TheURL)
	{
PopUpHeight 	= 370;
PopUpWidth  	= 750;
PopUpLeft 		= 25;
PopUpTop 		= 25;

PopVar			= 'toolbar=no,location=no,menubar=no,scrollbars=yes,width='+PopUpWidth+',height='+PopUpHeight+',resizable=yes,status=no,left='+PopUpLeft+',top='+PopUpTop;

PopUp 			= window.open(TheURL,'dCAMZgroupchat',PopVar);
	}
