﻿function my_alertik(){
    alert('OK');
}

function HoverMainMenuItem(menuItem, h_cssstyle){
    menuItem.previousSibling.style.display = "block";
    menuItem.nextSibling.style.display = "block";
    menuItem.className = h_cssstyle;//"h_but_m";
    menuItem.onmouseout = function(){
                                        menuItem.previousSibling.style.display = "none";
                                        menuItem.nextSibling.style.display = "none";
                                        menuItem.className = "normal";
                                        
                                    };
}

function HideAndShow(id_tohide, id_toshow){
	toshow = document.getElementById(id_toshow);
	tohide = document.getElementById(id_tohide);
	
	tohide.style.display = "none";
	toshow.style.display = "block";
}

function SwitchClass (itemId, classToSwitchTo) {
	document.getElementById(itemId).className = classToSwitchTo;
}

function CurrentNews(){
	ddl = document.getElementById('ctl00_plcMain_param1');
	if(ddl.selectedIndex == 1){
		window.location="http://venture.seriously-testing.com/about-us/news.aspx";
	}
}

function NoEnterKey(event){
	//alert(event.keyCode);
//	if (event.keyCode == 13) 
//	{
//		alert('fuck');
//		//event.cancelBubble = true;
//		event.returnValue = false;
//		return false;
//	}
	return false;
}
                        
