//begin script


window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}


function nunet_openBrWindow(theURL,winName,features) { //v2.0
 window.open(theURL,winName,features);
}

function nunet_findObj(n, d) { //v4.01
  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=nunet_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function nunet_swapImage() { //v3.0
  var i,j=0,x,a=nunet_swapImage.arguments; document.nunet_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=nunet_findObj(a[i]))!=null){document.nunet_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function nunet_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.nunet_p) d.nunet_p=new Array();
    var i,j=d.nunet_p.length,a=nunet_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.nunet_p[j]=new Image; d.nunet_p[j++].src=a[i];}}
}

function nunet_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function nunet_swapImgRestore() { //v3.0
  var i,x,a=document.nunet_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function nunet_initTimelines() {
    var ns = navigator.appName == "Netscape";
    document.nunet_Time = new Array(1);
    document.nunet_Time[0] = new Array(0);
    document.nunet_Time["Timeline1"] = document.nunet_Time[0];
    document.nunet_Time[0].nunet_Name = "Timeline1";
    document.nunet_Time[0].fps = 8;
    document.nunet_Time[0].lastFrame = 0;
    for (i=0; i<document.nunet_Time.length; i++) {
        document.nunet_Time[i].ID = null;
        document.nunet_Time[i].curFrame = 0;
        document.nunet_Time[i].delay = 1000/document.nunet_Time[i].fps;
    }
}








function launchSite() {
    launchwindow=window.open ('sniffer.html', 'htmlwindow', config='left=5,top=30,height=500,width=780,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no')
var str =navigator.userAgent;
if (str.indexOf('MSIE 5',0) != -1)  // ie5 
    {            
    launchwindow.focus(); }
}

if (navigator.appName == "Netscape") {
	vBrowser="ns";
	layerRef="document";
	visibleVar="show";
	hideVar="hide";
	styleSwitch="";
	imgRef="document.";
	divRef="document."; }
else {
	vBrowser="ie";
	layerRef="document.all";
	visibleVar="visible";
	hideVar="hidden";
	styleSwitch=".style";
	imgRef="document.all.";
	divRef=""; }

function init()	{
	if (vBrowser == "ie") {
		//scroll A
		parentA = designer;
		parentheightA = parentA.offsetHeight;
		childA = designer.all.designerfull;
		childheightA = childA.offsetHeight;
		difHeightA = childheightA - parentheightA;
        designer.all.designerfull.top=0;       }
	else {
		//scroll A
		parentA = document.designer;
		parentheightA = parentA.clip.height;
		childA = document.designer.document.designerfull;
		childheightA = childA.clip.height;
		difHeightA = childheightA-parentheightA;
        document.designer.document.designerfull.top = 0;     }
        
    movedives('designer','designerfull');
	if (difHeightA > 0) {
		eval(layerRef+'.designerscroll'+styleSwitch+'.visibility="'+visibleVar+'"'); } }

function up(divA, divB, child) {
	if (vBrowser == "ie") {
		eval('childtop=' + divA + '.all.' + divB + '.offsetTop')	}
	else {
		eval('childtop=document.' + divA + '.document.' + divB + '.top') 	}
	if (scrollActive) {
		if (childtop < 0) {
			if (vBrowser == "ie") {
				eval(divA + '.all.' + divB + '.style.top=' + divA + '.all.' + divB + '.offsetTop+15') 			}
			else {
				eval(child + '.moveBy(0,15)') 		}
			divA = "'" + divA + "'"
			divB = "'" + divB + "'"
			child = "'" + child + "'"
			eval('setTimeout("up(' + divA + ', ' + divB + ', ' + child + ')",15)'); } 	} }

function down(divA, divB, child, difHeight) {
	if (vBrowser == "ie") {
		eval('childtop=' + divA + '.all.' + divB + '.offsetTop')	}
	else {
		eval('childtop=document.' + divA + '.document.' + divB + '.top') 	}
	if (scrollActive) {
		if (childtop > -difHeight) {
			if (vBrowser == "ie") {
				eval(divA + '.all.' + divB + '.style.top=' + divA + '.all.' + divB + '.offsetTop-15') 			}
			else {
				eval(child + '.moveBy(0,-15)') 			}
			divA = "'" + divA + "'"
			divB = "'" + divB + "'"
			child = "'" + child + "'"
			difHeight = "'" + difHeight + "'"
			eval('setTimeout("down(' + divA + ', ' + divB + ', ' + child + ', ' + difHeight + ')",15)'); 		}	} }

function movedives(divA, divB) {
	if (vBrowser == "ie") {
//		divtop=eval(divA + '.all.' + divB + '.offsetTop')
		eval(divA + '.all.' + divB + '.style.top=0 ') 	}
	else {
		divtop=eval('document.' + divA + '.document.' + divB + '.top')
		child1top=eval('document.' + divA + '.document.' + divB + '.top')
		jumptop= divtop + child1top
		childA.moveBy(0,-jumptop) 	}
	focus() }

function mousedown(what, divA, divB, child, difHeight){
	scrollActive=true
	if (what == "down"){
		eval('down("' + divA + '", "' + divB + '","' + child + '","' + difHeight + '")');	}
	else {
		eval('up("' + divA + '", "' + divB + '","' + child + '")');	}}

function mouseup(){
	focus();
	scrollActive=false ; }

function showThis() {
	this.focus(); }





function movedown() {
	if (window.moveupvar) clearTimeout(moveupvar)
	if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
	crossobj.style.top=parseInt(crossobj.style.top)-speed
	else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
	crossobj.top-=speed
	movedownvar=setTimeout("movedown()",100)
}

function moveup() {
	if (window.movedownvar) clearTimeout(movedownvar)
		if (iens6&&parseInt(crossobj.style.top)<=0)
	crossobj.style.top=parseInt(crossobj.style.top)+speed
	else if (ns4&&crossobj.top<=0)
	crossobj.top+=speed
	moveupvar=setTimeout("moveup()",100)
}

function stopscroll() {
if (window.moveupvar) clearTimeout(moveupvar)
if (window.movedownvar) clearTimeout(movedownvar)
}

function movetop() {
	stopscroll()
	if (iens6)
	crossobj.style.top=0
	else if (ns4)
	crossobj.top=0
}

function getcontent_height() {
	if (iens6)
	contentheight=crossobj.offsetHeight
	else if (ns4)
	document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height




// end script
