var d=document;
//if (top.frames.length != 0) parent.location.href='http://www.discoverstrandja.com/';
// ************************************* //
function isDef(obj){
	if( typeof(obj) == 'undefined' || obj == null) return false;
	else return true; 
}
// ************************************* //
function getObjSt(name){
	this.style = d.getElementById?d.getElementById(name).style:d.all(name).style;
}
// ************************************* //
function getObj(name){
	return d.getElementById?d.getElementById(name):d.all(name)
}
// ************************************* //
function stat(sMsg){
	if(stat.arguments.length){
		window.status=sMsg;
		return true;
	}
	else{
		window.status='';
		return true;
	}
}
// ************************************* //
function preload(){
	img=new Array();
	a=preload.arguments;
	for(i=0; i<a.length; i++){
		img[(a[i])]=new Image;
		img[(a[i])].src=a[i];
	}
}
// ************************************* //
function swap(n,i){
	try{
		if(!swap.arguments.length){
			d[r_n].src=r_s;
		}
		else{
			r_s=d[n].src;
			r_n=n;
			d[n].src=img[i].src
		}
	}catch(e){}
}
// ************************************* //
function setCookie(name, value, expires, path, domain, secure) {
 var curCookie = name + "=" + escape(value) +
  ((expires) ? "; expires=" + expires.toGMTString() : "") +
  ((path) ? "; path=" + path : "") +
  ((domain) ? "; domain=" + domain : "") +
  ((secure) ? "; secure" : "");
 document.cookie = curCookie;
}
/***********************************************************/
function newWindow(file,t,l,w,h){
	window.focus();
	if(typeof(msgWindow)=='object') msgWindow.close();
	msgWindow = open('','window1','scrollbars=1,resizable=0,status=1,left='+l+',top='+t+',width='+w+',height='+h);
	msgWindow.location.href = file;
	if(msgWindow.opener == null) msgWindow.opener = self;
	msgWindow.focus();
} 
function ActivateObjects(){
	return true;
	theObjects = document.getElementsByTagName("object"); 
	for (var i = 0; i < theObjects.length; i++) { 
		theObjects[i].outerHTML = theObjects[i].outerHTML; 
	}	
}


