window.name = '00';
var intWW = 680;
var intWH = 625;
var intWT = 0;              // Popup Top Position
var intWL = 0;              // Popup Left Position

var intSWT = 0;              // Popup Top Position for Shop
var intSWL = 0;              // Popup Left Position for Shop

var intWW1 = 250;
var intWH1 = 501;
var intSWT1 = 0;              // Popup Top Position for Shop
var intSWL1 = 0;              // Popup Left Position for Shop

var intWW2 = 510;
var intWH2 = 501;
var intSWT2 = 0;              // Popup Top Position for Shop
var intSWL2 = 0;              // Popup Left Position for Shop

var intSW = screen.width;   // Screen Width
var intSH = screen.height;  // Screen Height

	if (screen) {
		// 1.33_ is a typical screen ratio (width divided by the height)
		// But we'll use 1.4 just to be safe
		if (intSW / intSH > 1.4) {
			intWL = (intSW - intWW) / 4;
			intWT = (intSH - intWH) / 2;
		}
		else {
			intWL = (intSW - intWW) / 2;
			intWT = (intSH - intWH) / 2;
		}
	}

	if (screen) {
			intSWL1 = (intSW / 2) +135;
			intSWT1 = (intSH / 2) -275;
	}

	if (screen) {
			intSWL2 = (intSW / 2) -385;
			intSWT2 = (intSH / 2) -251;
	}

	if (screen) {
			intSWL3 = (intSW / 2) -385;
			intSWT3 = (intSH / 2) -251;
	}

function sectionOpen00(strURL) {
//if (strName && strName.open) {
//if (strName && strName.open && !strName.closed) {
var strName = 'dmain';
var strOptions = ' scrollbars=1,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';
windowa = window.open(strURL, strName, 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
 if (windowa.focus) {
 windowa.focus();
 }
}

function sectionOpen01(strURL, winWid, winHei) {
var strName = 'shop';
var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';
windowb = window.open(strURL, strName, 'width=' + intWW1 + ',height=' + intWH1 + ',left=' + intSWL1 + ',top=' + intSWT1 + ',' + strOptions);
 if (windowb.focus) {
 windowb.focus();
 }
}

function sectionOpen02(strURL, winWid, winHei) {
var strName = 'shop1';
var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';
windowb = window.open(strURL, strName, 'width=' + intWW2 + ',height=' + intWH2 + ',left=' + intSWL2 + ',top=' + intSWT2 + ',' + strOptions);
 if (windowb.focus) {
 windowb.focus();
 }
}

function sectionOpen03(strURL, winWid, winHei) {
var strName = 'shop2';
var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';
windowb = window.open(strURL, strName, 'width=' + intWW1 + ',height=' + intWH1 + ',left=' + intSWL3 + ',top=' + intSWT3 + ',' + strOptions);
 if (windowb.focus) {
 windowb.focus();
 }
}

























// common scripts

// Core scripts v.3.5 - 09.07.02

/*
These scripts are designed to be root relative - they require the site to operating as a domain or port number!

*/


// Window open code

// Better window code

function openWin( winURL, winName, winWidth, winHeight, winX, winY, scrollBars, statusBar, resizable ) {
	winName = window.open( winURL, winName, 'width='  + winWidth + ',height='  + winHeight + ',top=' + winX + ',left=' + winY + ',screenX=' + winX + ',screenY=' + winY + ',location=no,scrollbars=' + scrollBars + ',directories=no,status=' + statusBar + ',menubar=no,personalbar=no,resizable=' + resizable );
	winName.scrollTo( 0, 0 );
}

// Better window code lite

function openWinLite( winURL, winName ) {
	winName = window.open( winURL, winName, 'width=400,height=300,top=100,left=100,screenX=100,screenY=100,location=no,scrollbars=no,directories=no,status=no,menubar=no,personalbar=no,resizable=no' );
	winName.scrollTo( 0, 0 );
}

function printerFriendlyWin(winURL) {
	winName = window.open( winURL, 'printerWin', 'width=570,location=yes,scrollbars=yes,directories=yes,status=yes,menubar=yes,personalbar=no,resizable=yes');
}

// Generally, it's safe to amalgamate all Dreamweaver code down here

function createObject( n, d ) {
	// Object creation code
	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 = createObject( n, d.layers[i].document );
		}
	}
	return x;
}

function preloadImages() {
	var d = document;
	if( d.images ){
		if( !d.preloadArr ) {
			d.preloadArr = new Array();
			var i, j = d.preloadArr.length, a = preloadImages.arguments;
			for( i = 0; i < a.length; i++ ) {
				if ( a[i].indexOf( "#" ) != 0 ){
					d.preloadArr[j] = new Image; d.preloadArr[j++].src = a[i];
				}
			}
		}
	}
}

function swapImage() {
	var i, j = 0, x, a = swapImage.arguments;
	document.imageRestoreArr = new Array;
	for( i = 0; i < ( a.length - 2 ); i += 3 )
		if( ( x = createObject( a[i] ) ) != null ) {
			document.imageRestoreArr[j++] = x;
			if( !x.oSrc )
				x.oSrc = x.src;
				x.src = a[i + 2];
				}
}

function swapImageRestore() {
	var i, x, a = document.imageRestoreArr;
	for( i = 0; a && i < a.length && ( x = a[i] ) && x.oSrc; i++ ) {
		x.src = x.oSrc;
	}
}

// image path starts always from root directory
function openWinImg(imgPath)
{
	winURL = '/dispImg.asp?IMG=' + imgPath
	winName = window.open( winURL, 'imgWin', 'width=100,height=100,location=no,scrollbars=no,directories=no,status=no,menubar=no,personalbar=no,resizable=yes');
}

/* onLoad="preloadImages('images/navigation/home_over.gif')" */

/* onMouseOver="swapImage('aboutus','','image_over.file',1)" onfocus="swapImage('aboutus','','image_over.file',1)" onMouseOut="swapImageRestore()" onblur="swapImageRestore()" */


function go( winURL, winName ) {
	winName = window.open( winURL, winName, 'width=800,height=600,top=0,left=0,screenX=0,screenY=0,location=no,scrollbars=yes,directories=no,status=no,menubar=no,personalbar=no,resizable=yes' );
	winName.scrollTo( 0, 0 );
}

// Some exciting additional stuff for the people section

function toggleShowPersonDetails( objRef ) {
	if( document.getElementById ) {
		theDetailsElement = document.getElementById( "details_" + objRef ).style;
		
	} else {
		theDetailsElement = document.all[ "details_" + objRef ].style;
	}

	if( theDetailsElement.display == "none" || !theDetailsElement.display ) {
		theDetailsElement.display = "block";
	} else {
		theDetailsElement.display = "none";
	}

}




