// JavaScript Document
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) 
    { 
		obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; 
	}
		obj.visibility=v;   
    
    }
}

SPECIAL_handle = new Object;
SPECIAL_ID = 0;

function SPECIAL() {
SPECIAL_handle = window.open("pop_up/hot-special.html","SPECIAL",",,,,,scrollbars,,width=580,height=390,top=20,left=20");
SPECIAL_handle.focus(); 
}

EXPANDED_handle = new Object;
EXPANDED_ID = 0;

function EXPANDED() {
EXPANDED_handle = window.open("pop_up/expanded.html","EXPANDED",",,,,,scrollbars,,width=580,height=420,top=20,left=20");
EXPANDED_handle.focus(); 
}

Virtual_LinkPoint_handle = new Object;
Virtual_LinkPoint_ID = 0;

function Virtual_LinkPoint() {
Virtual_LinkPoint_handle = window.open("pop_up/linkpoint.html","Virtual_LinkPoint",",,,,,scrollbars,,width=600,height=400,top=10,left=10");
Virtual_LinkPoint_handle.focus(); 
}

LinkPoint_HTML_handle = new Object;
LinkPoint_HTML_ID = 0;

function LinkPoint_HTML() {
LinkPoint_HTML_handle = window.open("pop_up/linkpoint_html.html","LinkPoint_HTML",",,,,,scrollbars,,width=600,height=400,top=10,left=10");
LinkPoint_HTML_handle.focus(); 
}

LinkPoint_API_handle = new Object;
LinkPoint_API_ID = 0;

function LinkPoint_API() {
LinkPoint_API_handle = window.open("pop_up/linkpoint_api.html","LinkPoint_API",",,,,,scrollbars,,width=600,height=400,top=10,left=10");
LinkPoint_API_handle.focus(); 
}

function doSomething(e)
{
	if (!e) var e = window.event;
	var tg = (window.event) ? e.srcElement : e.target;
	if (tg.nodeName != 'DIV') return;
	var reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement;
	while (reltg != tg && reltg.nodeName != 'BODY')
		reltg= reltg.parentNode
	if (reltg== tg) return;
	// Mouseout took place when mouse actually left layer
	// Handle event
}
	
	
	
	
function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

	
	
function moveDiv(layer, h)
{
  var the_style = getStyleObject(layer);
  var the_left = parseInt(the_style.left);
  var the_top = parseInt(the_style.top);
  
  
  
	var x, y;

	// for all except Explorer
	if (self.innerHeight) {
	x = self.innerWidth;
	y = self.innerHeight;

	// Explorer 6 Strict Mode
	} else if (document.documentElement
	&& document.documentElement.clientHeight) {
	x = document.documentElement.clientWidth;
	y = document.documentElement.clientHeight;

	// other Explorers
	} else if (document.body) {
	x = document.body.clientWidth;
	y = document.body.clientHeight;
	}  
  
    
  
  // alert (x);
  
  // the_style = getStyleObject(layer);
  
  if (document.layers)
  {
    the_style.left = x/6;
    alert (the_style.left);
    //the_style.top = h;
  }
  else 
  {
    the_style.left = x/6;
    alert (the_style.left);
    //the_style.top = h;  
  }
  
  
  
  
  
}


	