//-------------------------------------------------------------
// doPopup
//---------
function Start(URL_s, WIDTH, HEIGHT, closetime) {
	windowprops = "left=10,top=200,width=" + WIDTH + ",height=" + HEIGHT + ",scrollbars=yes";
	preview = window.open(URL_s, "fun_win", windowprops);
	if (closetime) setTimeout("preview.close();", closetime*1000);
}
function doPopup(url, width, height) {
	delay = 0;	// time in seconds before popup opens
	closetime = 0;	// Close window after __ number of seconds?
			// 0 = do not close, anything else = number of seconds
	Start(url, width, height, closetime);
//	timer  = setTimeout("Start(url, width, height)", delay*1000);
}

//-------------------------------------------------------------
// Activate Cloaking Device
//---------
function bustOut()
{
	if (parent.frames.length!=0)
	 window.top.location.href="http://www.trapier.com";
   //  OnLoad="bustOut()"
}
// Deactivate Cloaking -->

//-------------------------------------------------------------
// Banner advertising
//---------
a = 6 // a=numbers of banners
var slump = Math.random();
var talet = Math.round(slump * (a-1))+1;

function create() {
this.code = ''
}
b = new Array()
for(var i=1; i<=a; i++) { b[i] = new create() }
b[1].code = '<a href="http://www.b-f.co.uk/recruitment/" target="_new"><img src="http://www.b-f.co.uk/links2u/BFL_recruitment.jpg"   width="468" height="56" ALT="" border="0"></a>'
b[2].code = '<a href="http://www.b-f.co.uk/project/internet.htm" target="_new"><img src="http://www.b-f.co.uk/links2u/BFL_GotaWEBsiteyet.gif"   width="468" height="56" ALT="" border="0"></a>'
b[3].code = '<a href="http://www.b-f.co.uk/support/security.htm" target="_new"><img src="http://www.b-f.co.uk/links2u/bfl_security_iynsfhB.gif" width="468" height="56" ALT="" border="0"></a>'
b[4].code = '<a href="http://www.b-f.co.uk/computer/fynd.htm" target="_new"><img src="http://www.b-f.co.uk/links2u/BFL_GotaDOCmngmtsysyetV1.jpg"   width="468" height="56" ALT="" border="0"></a>'
b[5].code = '<a href="http://www.b-f.co.uk/computer/buy.htm" target="_new"><img src="http://www.b-f.co.uk/links2u/BFL_ecommerce.jpg"   width="468" height="56" ALT="" border="0"></a>'
b[6].code = '<a href="http://www.etalks.co.uk" target="_new"><img src="http://www.b-f.co.uk/links2u/etalks_liberty-privacyV1.jpg" width="468" height="56" ALT="" border="0"></a>'
var visa = "";
visa += ' '+b[talet].code+' '

//-------------------------------------------------------------
// Stop source viewing
//--------------------
function click() {
if (event.button==2) {
alert('Click OK to carry on...');
 }
}
//-------------------------------------------------------------

//-------------------------------------------------------------
// Button Handling
//--------------------
	var oLastBtn=0;
	function RaiseButton(){
		window.event.cancelBubble=true;
		oBtn = window.event.srcElement;
		var bChosen = false;
		if(oLastBtn && oLastBtn != oBtn){
			HideButton();
		}
		if(oBtn.buttonType){
			oBtn.className = oBtn.buttonType + "Up";
			oLastBtn=oBtn;
			}
		else {
		oLastBtn = 0;
		}
	}
	function DepressButton(){
		window.event.cancelBubble=true;
		oBtn = window.event.srcElement;
		if(oBtn.buttonType){
			oBtn.className = oBtn.buttonType + "Down";
		}
	}
	function HideButton(){
		oLastBtn.className = oLastBtn.buttonType + "Off";
	}
//-------------------------------------------------------------

//-------------------------------------------------------------
window.status='Welcome to TraPier.com';
