function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",10)
}

function low(which2){
theobject=which2
fading=setInterval("fadeit(theobject)",10)
}

function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}

function fadeit(cur2){
if (cur2.filters.alpha.opacity>50)
cur2.filters.alpha.opacity-=5
else if (window.fading)
clearInterval(fading)
}

//sdelat' domashnei stranitsei 
function home(p){
p.style.behavior='url(#default#homepage)';
p.setHomePage(window.location);
}

//dobavit' v izbrannoe
function favorite(){
window.external.addFavorite(window.location, "Anton's Russian Introductions");
}

//loadding. wait please...
var ID=null;
function wait(){
  clearTimeout(ID);
  document.all.load.innerText += ' .';
  ID = setTimeout('wait()',500);
}

function check(p){
if (location.href == p) return false;
if (!event.shiftKey) {
	document.body.scrollTop = 0;
	document.all.main.innerHTML='<h3 align="left" valign="top" id="load">Loading. <br> Please wait . . .</h3>';
	wait();
}
return true;
}

//gostevaya kniga
function add(){
if(window.screen.width<=800) new_win = window.open("/include/guestbook/addtobook.html","new_win","toolbar=0, width=500, height=400, left=150, top=100");
else new_win = window.open("/include/guestbook/addtobook.html","new_win","toolbar=0, width=500, height=400, left=262, top=183");
}

var site_name = "www.a-russian-bride.net";
var cgi = "myengine.pl";

function new_lady(month, year){
var str = "http://" + site_name + "/cgi-bin/" + cgi + "?previewLines=10&month_option=" + month + "&year_option=" + year + "&month_option1=" + month + "&year_option1=" + year + "&neWindow=0";
new_window = window.open(str);
}

function show_lady(id){
var str = "http://" + site_name + "/cgi-bin/" + cgi + "?show=" + id;
new_window = window.open(str);
}

function send_letter(id){
var str = "http://" + site_name + "/cgi-bin/mailgate.pl" + "?lady=" + id;
new_window = window.open(str);
}

