
function openLink(link) {
	MyWindow = window.open(link);
	return false;
}

function openWindow(src, width, height) {
	if (width && height) {
		var Wind = window.open(src, 'window', 'width='+width+',height='+height+',resizable=yes,scrollbars=yes ');
	} else {
		var Wind = window.open(src,'window','resizable=yes,scrollbars=yes ');
	}
	Wind.focus();
	return false;
}

function openImage(src, width, height) {
	if (width && height) {
		var Wind = window.open(src, 'image', 'width='+width+',height='+height+' ');
	} else {
		var Wind = window.open(src,'image','resizable=yes');
	}
	Wind.focus();
	return false;
}


function changeHomepageAreas(divId,url,color) {
	element = document.getElementById(divId);
	element.style.backgroundColor = color;
	element.style.backgroundImage = "url('"+url+"')";
}
  



/*
function submitDBBrowserForm(id) {
	var form = document.getElementById(id);
	form.submit();
}

function submitDBBrowserFormClean(id, idEl) {
	document.getElementById(idEl).value = '';
	submitDBBrowserForm(id);
}
	
function submitOnEnterDBBrowserForm(event, id) {
	if(event.keyCode==13)
		submitDBBrowserForm(id);
} 
*/
function againBots2(val) {
	document.getElementById("captchavalue").value=val;
	document.getElementById("captchaBots").style.display = "none";
}


$(document).ready(function(){


	if ($(".lightbox").length>0) {
		$(".lightbox").lightbox();
	}
	
	if ($("#technetdiv").length>0) {
		$.get("/technetblog/", function(data){
		  	$("#technetdiv").html(data);
		   });
	}
   
   $('.top-usergroup').mouseover(function () {
		$('.top-usergroup-all').css('display','block');
		$('.menutopright').css('display','none');
   }).mouseout(function () {
		$('.top-usergroup-all').css('display','none');
		$('.menutopright').css('display','block');
   });
   

});















		