/*		   by Marcus Kynman		http://www.mindray.com		  Copyright (C) 2006*/
is_com=window.location.toString().search(new RegExp('mindray.com','i'))
if(is_com>0) window.location='http://www.mindray.se/new_domain_name.html';

function reloadpage(init) {   if (init==true) onresize= reloadpage;   else location.reload();}reloadpage(true);
function windowopen(URL,w,h) { 	window.open(URL,'_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + w + ',height=' + h);}function close_me(){	if (window.opener!=null) close();	else document.location='../';}function visibility (layer,state,xoffset,yoffset) {	var doc_width=0;	var doc_height=0;	if (document.all) {		doc_width=document.body.clientWidth;		doc_height=document.body.clientHeight;		document.all[layer].style.left=doc_width/2+xoffset;		document.all[layer].style.top=doc_height/2+yoffset;		document.all[layer].style.visibility=state;	}	else if (document.getElementById) {		doc_width=window.innerWidth;		doc_height=window.innerHeight;		document.getElementById(layer).style.left=doc_width/2+xoffset;			document.getElementById(layer).style.top=doc_height/2+yoffset;		document.getElementById(layer).style.visibility=state;	}	else if (document.layers) {		doc_width=window.innerWidth;		doc_height=window.innerHeight;		document.layers[layer].left=doc_width/2+xoffset;		document.layers[layer].top=doc_height/2+yoffset;		document.layers[layer].visibility=state;	}	return false;}// ----------------------------------------------------------------------------function hidelayer (hide_me) {	if (document.all) document.all[hide_me].style.visibility='hidden';	else if (document.getElementById) document.getElementById(hide_me).style.visibility='hidden';	else if (document.layers) document.layers[hide_me].visibility='hidden';	return false;}// ----------------------------------------------------------------------------function showlayer (hide_me) {	if (document.all) document.all[hide_me].style.visibility='visible';	else if (document.getElementById) document.getElementById(hide_me).style.visibility='visible';	else if (document.layers) document.layers[hide_me].visibility='visible';	return false;}
