function imageIn(id,img,div_id){
	var tempSrc = document.getElementById(id).src;
	var str = tempSrc.split("menu/");
	if ((img!=str[1])){
		document.getElementById(id).src="images/menu/"+img;
	}
	if (div_id){
		showMenu(div_id);
	}
}
function imageOut(id,img,div_id){
	var tempSrc = document.getElementById(id).src;
	var str = tempSrc.split("menu/");
	if ((img!=str[1])){
		document.getElementById(id).src="images/menu/"+img;
	}
	if (div_id){
		hideMenu(div_id);
	}
}
function showMenu(id){
	document.getElementById(id).style.visibility = "visible";
}
function hideMenu(id){
	document.getElementById(id).style.display = "";
}
function windowOpen(php_page,width,height){
	window.open(php_page,'popuppage','width='+width+',toolbar=1,resizable=1,scrollbars=yes,height='+height+',top=100,left=100');				
}
function checkBrowser(){
	var d,n,nua,str_pos,ie_ver,rv_pos,rv_full,moz_ver;
	d=document;
	n=navigator;
	nua=n.userAgent;
	/*For IE*/
	str_pos=nua.indexOf('MSIE');
	ie_ver = nua.substr((str_pos+5),3);
	if(ie_ver == '6.0'){
		alert("Version of Internet Explorer not compatible!!! Some Features may not be available... Please use version higher than IE 6.0 for better performance...");
	}
	/*For Mozilla*/
	rv_pos = nua.indexOf( 'Firefox' );
	rv_full = nua.substr( rv_pos + 8, 1 );
	if(rv_full<=1){
		alert("Version of Firefox not compatible!!! Some Features may not be available... Please use version higher than 1.0 for better performance...");
	}
}
function showme(){
	document.getElementById('draggable').style.visibility = "visible";
}
