/* Browser Check */
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	
	this.DOM = (document.getElementById) ? true : false;
	this.Opera = (navigator.userAgent.indexOf("Opera")!=-1);
	this.Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);
	this.IE = (this.b=="ie" && this.v>=4)
	this.IE4 = (this.version.indexOf('MSIE 4')>0)
	this.IE5 = (this.version.indexOf('MSIE 5.0')>0)
	this.IE55 = (this.version.indexOf('MSIE 5.5')>0)
	this.IE6 = (this.version.indexOf('MSIE 6.0')>0)
	this.NS = (this.b=="ns" && this.v>=4)
	this.NS4 = (this.b=="ns" && this.v==4)
	this.NS5 = (this.b=="ns" && this.v==5)
	this.NS6  = this.DOM && !this.IE && !this.Konqueror
	this.Mac = (navigator.appVersion.indexOf("Mac") != -1);
	this.IE4M = this.IE4 && this.Mac;
}
var is = new BrowserCheck()  // automatically create the "is" object
/* End Browser Check */

// ipemail('class','aClass','name','Me','title','Email Me','me','mydomain','com')
// mailto:me@mydomain.com 
function ipemail(){//v2.3
	var eclass=""; var email=""; var etitle=""; var ename=""; var div="@"; var qs="";
	for(var i=0; i<arguments.length; i++){
		switch(arguments[i].toLowerCase()){
			case "title":
				etitle = arguments[i+1];i++;
				break;
			case "name":
				ename = arguments[i+1];i++;
				break;
			case "class":
				eclass = arguments[i+1];i++;
				break;
			case "?":
				div="?";
				qs = div;
				break;
			default:
				if((div=="@")&&(email=="")){email += arguments[i];}
				else if((div=="?")||(div=="&")){qs += arguments[i];if(div=="?"){div="&";}}
				else{email += div + arguments[i];if(div=="@"){div=".";}}
			
		}
	}
	if(ename==""){ename = email;};
	document.write('<a href="mailto:' + email + qs + '" title="'+etitle+'" class="'+eclass+'">' + ename + '</a>');
}
function SlideNewWindow() {
	var a = SlideNewWindow.arguments;
	var wh = ""
	if (a[6] || a[7] || a[8] == true) wh=a[3]-125
	else wh = a[3]
	var wf = "";	
	wf = wf + "width=" + a[2];
	wf = wf + ",height=" + wh;
	wf = wf + ",resizable=" + (a[4] ? "yes" : "no");
	wf = wf + ",scrollbars=" + (a[5] ? "yes" : "no");
	wf = wf + ",menubar=" + (a[6] ? "yes" : "no");
	wf = wf + ",toolbar=" + (a[7] ? "yes" : "no");
	wf = wf + ",directories=" + (a[8] ? "yes" : "no");
	wf = wf + ",location=" + (a[9] ? "yes" : "no");
	wf = wf + ",status=" + (a[10] ? "yes" : "no");		
	if(is.v >=4) {
		var sw=screen.width-20;
		var sh=screen.height;
		var newwidth=a[2]; 
		var newheight=a[3];
		var positionleft=(sw-newwidth)/2;
		var positiontop=""
		if (a[6] || a[7] || a[8] == true) positiontop=(sh-newheight)/3;
		else positiontop=(sh-newheight)/2.5;
	}
	newwindow=window.open(a[0],a[1],wf); 
	newwindow.focus()	
	if(is.v >=4) {
		for(width1 = 1 ; width1 < positionleft ; width1 = width1 + 10)
		newwindow.moveTo(width1,positiontop)
	}
	return ClickReturn ();
}
function ClickReturn () {
	if (is.IE && is.Mac)
		return true; /* follow link */
	else return false; /* dont follow link */
}