window.onload = function() {
	var a = document.getElementsByTagName("a");
    for(var i=0;i<a.length;i++) if(a[i].href == document.location.href) {
    	a[i].href = "javascript:void(0);";
//    	a[i].style = "cursor: default;";
    }
}
function prel(){
	var bg = new Image();
	bg.scr = "images/bg_main_1.jpg";
	var bg2 = new Image();
	bg2.scr = "images/bg_main_2.jpg";
	var bg3 = new Image();
	bg3.scr = "images/bg_main_3.jpg";
	var bg4 = new Image();
	bg4.scr = "images/bg_main_4.jpg";
}

function AdvShower(divId) {
	if ($('#' + divId).css('display') == 'none') $('#' + divId).css('display', 'block');
	else $('#' + divId).css('display', 'none');
	$('#'+divId).parent().toggleClass('activ');
}

function bg_on(id){document.getElementById('page').style.backgroundImage="url(images/bg_" + id + ".jpg)";}

function bg_off(){document.getElementById('page').style.backgroundImage="url(images/bg_main_1.jpg)";}

/********** Show block **********/
function show(id) {
	if (document.getElementById(id).style.display == 'block')
		{document.getElementById(id).style.display = 'none'}
	else
		{document.getElementById(id).style.display = 'block'}
}

/********** min width 
var d = document;
var winIE = (navigator.userAgent.indexOf("Opera")==-1 && (d.getElementById && d.documentElement.behaviorUrns)) ? true : false;
function bodySize()
{
	if(winIE && d.documentElement.clientWidth) 
	{
		sObj = d.getElementsByTagName("body")[0].style;
		sObj.width = (d.documentElement.clientWidth<890) ? "890px" : "auto";
		
	}
 }

 function init()
 {
	if(winIE) { bodySize(); }
 }
 onload = init;
 if(winIE) { onresize = bodySize; }
************/