function openWin(path,windowwidth,windowheight) {
	myWin= open(path,"","width="+windowwidth+",height="+windowheight+",status=no,toolbar=no,menubar=no");
}



function oc_header(divId) {
     
     var d = document.getElementById(divId);
          
     if(d.style.display == 'block') {
          
          d.style.display = 'none';

          return;
          }
          
     if(d.style.display == 'none') {
     
          d.style.display = 'block';
                    return;
          }
     
     }


/*****************************
**   PopupWindow
******************************/

function getDims(winWidth, winHeight){
	var dims = new Object();
	dims.widthStr = '';
	dims.heightStr = '';
	dims.scrollbars = false;
	if (winWidth){
		dims.width = winWidth;
		if (screen.width < dims.width + 50){
			dims.width = screen.width - 50;
			dims.scrollbars = true;
		}
		dims.widthStr = ',width=' + dims.width;
	}
	
	if (winHeight){
		dims.height = winHeight;
		if (screen.height < dims.height + 100){
			dims.height = screen.height - 100;
			dims.scrollbars = true;
		}
		dims.heightStr = ',height=' + dims.height;
	}
	dims.scrollbarsStr = (dims.scrollbars)? ',scrollbars=yes' : ',scrollbars=no';
	dims.posX = Math.round((screen.width - dims.width) / 2);
	dims.posY = Math.round((screen.height - winHeight) / 2);
	dims.posCode = (document.all)? ',left=' + dims.posX + ',top=' + dims.posY : ',screenX=' + dims.posX + ',screenY=' + dims.posY;
	return dims;
}

function popupImg(imgSrc, winName, imgWidth, imgHeight, winTitle){
	winWidth = (imgWidth)? imgWidth + 20 : null;
	winHeight = (imgHeight)? imgHeight + 20 : null;
	var dims = getDims(winWidth, winHeight);
	var popupwin = window.open('', winName, 'menubar=no,toolbar=no,resizable=yes,status=yes' + dims.scrollbarsStr + dims.widthStr + dims.heightStr + dims.posCode);
	popupwin.resizeTo(dims.width + 12, dims.height + 62)

if (popupwin){
		popupwin.document.open();
		popupwin.document.write('<html><head><title>' + winTitle + '</title></head><body bgcolor="white" style="margin: 10px 10px; padding: 0px;">')
		popupwin.document.write('<img src="' + imgSrc + '" width="' + imgWidth + '" height="' + imgHeight + '" />')
		popupwin.document.write('</body></html>')
		popupwin.document.close();
		popupwin.focus();
	}
	return false;
}


function context_help(block_id){




var mouse_pos_x = 0;
var mouse_pos_y = 0;
var browser_type = 0; 

this.getBrowserType = function() {
var ua = navigator.userAgent.toLowerCase();

isIE = ((ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1)); 
isOpera = (ua.indexOf("opera") != -1); 
isGecko = (ua.indexOf("gecko") != -1);
isSafari = (ua.indexOf("safari") != -1);
isKonqueror = (ua.indexOf("konqueror") != -1);

if (isIE) return 1;
if (isOpera) return 2;
if (isGecko) return 3;
if (isSafari) return 4;
if (isKonqueror) return 5;

return 0;
} 
var getMousePos = function(e) {
if (!e)
var e = window.event;

func_1 = function(e) {
if (browser_type == 3 || browser_type == 1)
return e.clientX + document.body.scrollLeft;

return null;
};
func_2 = function(e) {
if (browser_type == 3 || browser_type == 1)
return e.clientY + document.body.scrollTop;

return null;
};

mouse_pos_x = func_1(e);
mouse_pos_y = func_2(e);
}
browser_type = this.getBrowserType(); 
document.onmousemove = getMousePos; 



	var block = document.getElementById(block_id);

if (browser_type == 3 || browser_type == 1) {
	var y = document.body.scrollTop + 2300 + window.event.clientY;}
else {
	var y = document.body.scrollTop + window.event.clientY;}

	block.style.cssText = 'display: block; left: ' + event.x + 'px; top: ' + y + 'px;';
}

function context_hide(block_id){

	var block = document.getElementById(block_id);
	block.style.cssText = 'display: none;';
}