
function show_email(em, cm)
{
	if (cm == 0) 
		em2 = em;
	else
		em2 = cm;
	document.write("<a href=\"mailto:"+em+"?subject=>>\">"+em2+"</a>");
}
/*
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
	var chasm = screen.availWidth;
	var mount = screen.availHeight;
	width = screen.availWidth -10;
	height = screen.availHeight -30;
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  lf=((chasm - left - 10) * 0.5);
  tp=((mount - top - 30) * 0.5);
  window_handle = window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	window_handle.focus();

}
*/

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
	var chasm = screen.availWidth;
	var mount = screen.availHeight;
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  lf=((chasm - left - 10) * 0.5);
  tp=((mount - top - 30) * 0.5);
  window_handle = window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	window_handle.focus();

}


function bookmark(url, description)
{
//***---This text will be shown to the visitor if it has Netscape.
netscape="First push OK and then hit CTRL+D to add a bookmark to this site."

if (navigator.appName=='Microsoft Internet Explorer')
{
window.external.AddFavorite(url, description);
}
else if (navigator.appName=='Netscape')
{
alert(netscape);
}
}

//<script language="javascript">
var xs_bv=0;
var xs_pTop=-211;//used to be 91
var xs_pHeight=211;
var xs_updown=1;
var xs_endpt=0;
var xs_ranonce=0;
var xs_pDivSeen=0;
var xs_pTuck=0;
var ua=navigator.userAgent.toLowerCase()
function xsGetCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function xsGetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return xsGetCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break; }
return null;
}
function xsSetCookie (name,value,expires,path,domain,secure) {
document.cookie = name + "=" + escape (value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}
//var xs_exp = new Date(); xs_exp.setTime(xs_exp.getTime()+(60));
var xs_exp = new Date(); 
xs_exp.setTime(xs_exp.getTime()+(48*60*60*1000));
if ( (ua.indexOf("opera")==-1)&&((ua.indexOf("msie")!=-1)&&(ua.indexOf("windows")!=-1))||((ua.indexOf("msie 5")!=-1)&&(ua.indexOf("mac")!=-1)) ) {xs_bv=1}
function xs_pdEx(){
var xs_popval = xsGetCookie('seenexp');
if ((xs_popval == null) || (xs_popval != "8")) {
xs_popval=8;
xsSetCookie('seenexp', xs_popval, xs_exp, "/");
var xs_ctest = (xsGetCookie('seenexp')=="8");
}
if((xs_bv)&&(!xs_ranonce)&&(xs_ctest!=null)){
// if((xs_bv)&&(!xs_ranonce)){
xs_pDiv2.style.left=xs_pDiv.style.left=((document.body.offsetWidth/2)-200)
xs_pd();
}
else{
if(xs_pTuck == 1){
if (xs_pDivSeen != 1){
xs_pDiv.style.clip="rect(0,320,211,0)";
xs_pDiv.style.display="";
xs_pDiv.style.top=-211;//used to be 31
}
xs_endpt=(document.body.offsetWidth/2)-200;
xs_tuck();
}
}
}
function xs_pd(){
xs_ranonce=1;
if (((xs_pHeight<211)&&(xs_updown==0)) || ((xs_pHeight>3)&&(xs_updown==1))) {
if(xs_pHeight==211){xs_pDiv.style.display=""}
(xs_updown==0)?xs_pHeight+=3:xs_pHeight-=3;
(xs_updown==0)?xs_pTop-=3:xs_pTop+=3;
xs_pDiv.style.clip="rect(" + xs_pHeight + ",320,211,0)";
xs_pDiv.style.top=xs_pTop;
setTimeout("xs_pd();",20);
}
else{
if (xs_updown==1){
xs_pDiv.style.clip="rect(0,320,211,0)";//width of actual drop down
xs_pDiv.style.top=0;//this is the space from the top of the page to the top of the banner
xs_updown=0;
xs_pDiv2.style.display='';
setTimeout("xs_pd();",4500);
}
else{
xs_pDiv.style.display='none';
xs_pDivSeen = 1;
xs_endpt=(document.body.offsetWidth/2)-200;
xs_tuck();
}
}
}
function xs_tuck(){
if(xs_endpt<(document.body.offsetWidth-355)){
xs_endpt+=5;
xs_pDiv2.style.left=xs_endpt;
setTimeout("xs_tuck();",20);
}
else{xs_pTuck = 1}
}
//</script>
//<script language="javascript">
//	<!--

	winPop = null;
	
	/*if (parent==self) {		
	    location.replace("gallery.php?CID=0&startat=" + escape(location.href)) 
	  }
	  */
     /* function go2(strGo) {
         if (parent!=self){
            if (String(parent.fraOptions.location).indexOf(strGo) < 0){
               parent.fraOptions.location.replace(strGo)
            }//end if
         }//end if
      }//end function
*/
		function openpopDealInfo(){
			popDealInfo = window.open("http://www.logictechnologies.net","popDealInfo",'status=no,toolbar=no,scrollbars=yes,resizable=no,width=800,height=550,left=1,top=1')
			if (window.focus) 
		         popDealInfo.focus()
		}
		function openpopDealInfo2(){
			location.replace("http://www.logictechnologies.net" ) 
		}
//-->
	//</script>
