// Project: AdvantShop.NET
// Web site: http:\\www.advantshop.net

//window.onload = function(){
//	if (navigator.userAgent.indexOf("Opera 8.5")>1){
//		document.getElementById('r_form').style.marginRight='30px';
//	}
//	if ( (navigator.userAgent.indexOf("MSIE 6")>1) && !(navigator.userAgent.indexOf("Opera 8.5")>1) ){
//		var obj = document.getElementById('hat').style;
//		obj.left = '-3px';
//		obj.marginRight = '-3px';
//		obj = document.getElementById('content').style;
//		obj.left = '-3px';
//		obj.marginRight = '-3px';
//	}

//	if ( (navigator.userAgent.indexOf("MSIE 6")>1)){
//		var obj = document.getElementById('news').style;
//		obj.marginLeft = '-12px';
//	}
//}

function menu_on(obj) { obj.style.color = '#ced9f9'; }

function menu_out(obj) { obj.style.color = 'white'; }

function tab_on(obj) {
    document.getElementById(obj).className = 'MenuTabHover';    
}

function tab_out(obj) {
    document.getElementById(obj).className = 'MenuTabLink';
}

function HideModalPopup() {
    $find("ModalBehaviour").hide();
    $('select', 'object', 'embed').each(function(node) { node.style.visibility = 'visible' });
}

function HideModalPopup2() {
    $find("ModalBehaviour2").hide();
    $('select', 'object', 'embed').each(function(node) { node.style.visibility = 'visible' });
}

function open_printable_version(link) //opens new window
{
    var win = "menubar=no,location=no,resizable=yes,scrollbars=yes";
    newWin = window.open(link, 'perintableWin', win);
    newWin.focus();
}

//function ShowModalPopup() {
//    alert('asda');
//    $find('ModalBehaviour').show(); document.getElementById('ModalBehaviour_backgroundElement').onclick = HideModalPopup;
//    document.getElementById('<%= txtLogin.ClientID %>').focus();
//    document.getElementById('<%= txtLogin.ClientID %>').setAttribute("class", "")
//}

//function ShowModalPopup() {
//    $find("ModalBehaviour").show();
//    document.getElementById("ModalBehaviour_backgroundElement").onclick = HideModalPopup;
//}

