var d = document;

function new_window(url, win_name){
	//alert(url);
	win_name=window.open(url,win_name,'toolbar=no,scrollbars=yes,resizable=yes,width=530,height=400,status=no,left=100,top=100,screenX=100,screenY=100');
	win_name.focus();
}

function pic_win(url,wintitle){
	picwin=window.open('image.php?pic='+url+'&name='+wintitle,'picwin','toolbar=no,scrollbars=no,width=620,height=500,left=100,top=100,screenX=100,screenY=100,status=no');
	picwin.focus();
}

function pic_win1(url,wintitle){
	picwin=window.open('image1.php?pic='+url+'&name='+wintitle,'picwin','toolbar=no,scrollbars=no,width=620,height=500,left=100,top=100,screenX=100,screenY=100,status=no');
	picwin.focus();
}

function print_window(url){
	printwin=window.open(url,'printwin','toolbar=no,scrollbars=yes,width=600,height=500')
	printwin.focus()
}

function rateOver() {
	var rating = $('map#rating area').index($(this)) + 1;
	var rateImage = document.getElementById('ratingstars');
	if(rateImage){
		rateImage.src = design + rating + '-stars.gif';
	}
}

function rateOut() {
	var rateImage = document.getElementById('ratingstars');
	if(rateImage){
		rateImage.src = design + userRating + '-stars.gif';
	}
}

function rateProduct() {
   $.get(this.href,function(data) {
		var results = data.split(';');
        var rank = results[0];
        var votes = results[1];
        userRating = rank;
	    rateOut();
		document.getElementById("ratingstars").src = design + Math.round(parseFloat(rank)) + '-stars.gif';
		$("#votes").html(votes);
		$("a#rate").html(Math.round(parseFloat(rank)));
   });
   return false;
}

var al=0;
var ali=new Array();

function anecNext(){
	ali++;
	if(ali==al.length)ali=0;
	$('#iaf p:visible').fadeOut(function(){$(document.getElementById(al[ali])).fadeIn();});
}

function anecPrev(){
	ali--;
	if(ali<0)ali=al.length-1;
	$('#iaf p:visible').fadeOut(function(){$(document.getElementById(al[ali])).fadeIn();});	
}

var nli=0;
var nl=new Array();

function imageNext(){
	nli++;
	if(nli==nl.length)nli=0;
	$('#imf div:visible').fadeOut();
	$(document.getElementById(nl[nli])).fadeIn();
}

function imagePrev(){
	nli--;
	if(nli<0)nli=nl.length-1;
	$('#imf div:visible').fadeOut();
	$(document.getElementById(nl[nli])).fadeIn();
}

var nlv=0;
var nv=new Array()
function imageNextv(){
	nlv++;
	if(nlv==nv.length)nlv=0;
	$('#imv div:visible').fadeOut();
	$(document.getElementById(nv[nlv])).fadeIn();
}

function imagePrevv(){
	nlv--;
	if(nlv<0)nlv=nv.length-1;
	$('#imv div:visible').fadeOut();
	$(document.getElementById(nv[nlv])).fadeIn();
}
function hide_flash(){
	$('#flashdiv').fadeOut(
		function(){
			$('#interview').fadeIn();
		}
	);
}

function mycarousel_initCallback(carousel) {
    $('div.gallery a.gfwr').bind('click', function() {
        carousel.next();
        return false;
    });
    $('div.gallery a.gback').bind('click', function() {
        carousel.prev();
        return false;
    });

    $('div.imgcp a.slide').click(function(){
    	
    	if(slideshow){
    		clearInterval(slideshow);
    		slideshow = null;
    		$(this).removeClass('stop');
    	}
    	else{
	    	$('div.img_block > a').fadeOut();

    		$(this).addClass('stop');
	    	
	    	var img = new Image();
	    	var $i = $('div.picture img');
	    	
	    	var gal = $('.gallery ul li img').get();
	    	im = $('.gallery ul li img').index($('.gallery ul li.on img')) + 1;
	    	slideshow = setInterval(function(){
	    		//$('#debug').html($('#debug').html() + '<br />' + im + ' ' + img.src + ' ' + $(gal[im]).attr('src'));
	    		img.src = $(gal[im]).attr('src').replace('_120X90.jpg','_xx.jpg');
	    		//alert(img.src);
	    		var text = $(gal[im]).attr('alt');
	    		$(img).ready(function(){
	    			$($i).fadeOut(function(){
						$($i).attr('src',img.src);
						$($i).fadeIn();
						im ++;

						var ims = im;
						if (ims<10) ims = '0'+ims;
						$('#imnum').html(ims);

						if(carousel){
							p = Math.max(Math.min(im-2,gal.length-4),0);
							carousel.scroll(p);
						}

						$('.gallery ul li').removeClass('on');
						$($('.gallery ul li').get(im-1)).addClass('on');
						$('div.picture div').html('<p>'+text+'</p>');
						
						if(im==gal.length){
							im=0;
						}

					});
	    		});
	    		
	    	},5000);
	    	
		}    	
    	return false;
    });
	
};

function changeNews(panels,container){
   	$(panels[$.rotateNews.ni]).fadeOut('fast',function(){
		$.rotateNews.ni++;
		if ($.rotateNews.ni==panels.length) $.rotateNews.ni = 0;
		
		$('ol.newsblock li', container).hide();
	    $(panels[$.rotateNews.ni]).fadeIn('fast');
	
		$('ol.newsrotator li span', container).removeClass('on');
		$($('ol.newsrotator li span', container).get($.rotateNews.ni)).addClass('on');
	
		var pos = $.rotateNews.iw*($.rotateNews.ni-1);
		if (pos < 0) pos = 0;
		if (pos > $.rotateNews.cw - (3*$.rotateNews.iw)) pos = $.rotateNews.cw-(3*$.rotateNews.iw);
		
		$('ol.newsrotator', container).css({'left':'-' + pos + 'px'});
	});
}

$.fn.rotateNews = function() {
	return this.each(function() {

        // remember wrapper for later
        var container = this;
        var panels = $('ol.newsblock li', container);

		$.rotateNews.iw = $('ol.newsrotator li:first-child', container).width();

		$('ol.newsrotator', container).css('width', ( panels.length * $.rotateNews.iw ) + 'px');

		$.rotateNews.cw = $('ol.newsrotator', container).width();

		
        $.rotateNews.nri = setInterval(function(){
			changeNews(panels,container);
		},$.rotateNews.interval);
        
        $('a.nrbut',container).click(function(){
			clearInterval($.rotateNews.nri);
        	changeNews(panels,container);
	        $.rotateNews.nri = setInterval(function(){
				changeNews(panels,container);
			},$.rotateNews.interval);
        	return false;
        });
        
        $('a.nlbut',container).click(function(){
			clearInterval($.rotateNews.nri);
			$.rotateNews.ni = $.rotateNews.ni - 2;
			if ($.rotateNews.ni<0) $.rotateNews.ni = panels.length + $.rotateNews.ni;
        	changeNews(panels,container);
	        $.rotateNews.nri = setInterval(function(){
				changeNews(panels,container);
			},$.rotateNews.interval);
        	return false;
        });
        
		var ti = false;

		$('ol.newsblock', container).hover(
			function(){
				clearTimeout(ti);
				ti = setTimeout(function(){
					clearInterval($.rotateNews.nri);
				},500);
			},
			function(){

				if(ti){
					clearTimeout(ti);
		        }
		        ti = setTimeout(function(){
		        	changeNews(panels,container);
		        	if($.rotateNews.nri){
			        	clearInterval($.rotateNews.nri);
			        }
			        $.rotateNews.nri = setInterval(function(){
			
			        	changeNews(panels,container);
						
					},$.rotateNews.interval);
				}, 500);
			}
		);
		
		$('ol.newsrotator li', container).hover(
			function(){
				
				var el = this;
				
				clearTimeout(ti);
				
				ti = setTimeout(function(){
				
					clearInterval($.rotateNews.nri);
					
					var i = $($(el.parentNode).children()).index(el);
					
					$.rotateNews.ni = i;
					
					//$('#debug').html($('#debug').html() + '<br />' + i + ' ' + $(el.parentNode).children().length + ' ' + el.nodeName + ' ' + el.parentNode.nodeName+ ' ' + el.parentNode.getAttribute('class'));
					
		        	$('ol.newsblock li', container).hide();
	        		$(panels[$.rotateNews.ni]).show();
	
					$('ol.newsrotator li span', container).removeClass('on');
					$($('ol.newsrotator li span', container).get($.rotateNews.ni)).addClass('on');
	
		        }, 500);

			},
			function(){
				
				if(ti){
				
					clearTimeout(ti);
	
		        }
		        ti = setTimeout(function(){

		        	changeNews(panels,container);
		        	
		        	if($.rotateNews.nri){
			        	clearInterval($.rotateNews.nri);
			        }

			        $.rotateNews.nri = setInterval(function(){
			
			        	changeNews(panels,container);
						
			        },$.rotateNews.interval);
				}, 500);
			}
		);
		
	});
}

function rotateNewsClear(){
	clearInterval($.rotateNews.nri);
	$('ol.newsrotator').css({'left':'0px'});
	$('ol.newsblock li').hide();
	$('ol.newsblock li:first-child').show();
	$('ol.newsrotator li span').removeClass('on');
	$('ol.newsrotator li:first-child span').addClass('on');
	$.rotateNews.ni = 0;
}

function gallery_initCallback(carousel) {
	$('div.categblock a.vfwr').bind('click', function() {
        carousel.next();
        return false;
    });
    $('div.categblock a.vback').bind('click', function() {
        carousel.prev();
        return false;
    });
}

var debug = false;

var im = 0;
var slideshow = null;

$(document).ready(function(){
	$.extend({
	    rotateNews: {
	        ni: 0,
	        cw: 0,
	        iw:0,
	        nri: null,
	        interval: 5000
	    }
	});
	
	if(debug){
		$('body').append('<div style="position:absolute;top:0;left:0;width:200;background:#fff;border:2px solid red;z-index:1000;" id="debug"></div>');
	}
	$('map#rating area').click(rateProduct);
	$('map#rating area').hover(rateOver,rateOut);
	$('div.rateComment a').click(function(){
		$.get(this.href,function(data) {
			var results = data.split(';');
	        var count = results[0];
	        var rate = results[1];
	        var id = results[2];
	    	$("span.op" + id + " span").html(count + '&nbsp;гласа');
			$("span.oprate" + id).html('оценка&nbsp;' + rate);
			$("a.ne" + id).hide();
			$("a.po" + id).hide();
			$("span.op" + id + " span").css('border-right','1px solid #7EB9D9');
		});
		return false;
	});
	
	$('#commentContainer ul.tabs li a').click(function(){
		$('#commentContainer ul li a').removeClass('on');
		$(this).addClass('on');
		$('#commentContainer div.tab').hide();
		$(this.hash).fadeIn();
		return false;
	});
	
	$('#mostContainer ul.tabs li a').click(function(){
		$('#mostContainer ul li a').removeClass('on');
		$(this).addClass('on');
		$('#mostContainer div.tab').hide();
		$(this.hash).fadeIn();
		return false;
	});

	if($('#programright div.tab').length>0){
		$('#programright div.tab').hide();
		$($('#programright div.tab').get(0)).show();
	}
	
	$('#programright ul.tabs li a').click(function(){
		$('#programright ul.tabs li a').removeClass('on');
		$(this).addClass('on');
		$('#programright div.tab').hide();
		$(this.hash).fadeIn();
		return false;
	});
	
	$('#gallerymainright ul.tabs li a').click(function(){
		$('#gallerymainright ul.tabs li a').removeClass('on');
		$(this).addClass('on');
		$('#gallerymainright div.tab').hide();
		$(this.hash).fadeIn();
		return false;
	});
	
	$('ul.tabs li a').click(function(){
		var a = this;
		var link = this.hash;
		if($('div' + link).css('display')=='none'){
			$('ul.tabs li a').removeClass('on');
			$('div.headnews:visible').fadeOut(function(){
				$('div' + link).fadeIn(function(){
					rotateNewsClear();
					$('div' + link).rotateNews();
				});
				$(a).addClass('on');
			});
			//$(link).fadeIn();
		}
		return false;
	});
	
	$('div.headnews:visible').rotateNews();

	if($('div.gallery ul').size()>0){
		$('div.gallery ul').jcarousel({
	        scroll: 1,
	        start: jcs,
	       // itemLoadCallback: mycarousel_itemLoadCallback,
	        initCallback: mycarousel_initCallback,
	        // This tells jCarousel NOT to autobuild prev/next buttons
	        buttonNextHTML: null,
	        buttonPrevHTML: null
	        // Uncomment the following option if you want items
	        // which are outside the visible range to be removed
	        // from the DOM.
	        // Useful for carousels with MANY items.

	        // itemVisibleOutCallback: {onAfterAnimation: function(carousel, item, i, state, evt) { carousel.remove(i); }},
	    });
	}
	
	if($('div.video1 ul').size()>0){
		$('div.video1 ul').jcarousel({
	        start: jcs,
	        scroll: 1,
	        initCallback: mycarousel_initCallback,
	        // This tells jCarousel NOT to autobuild prev/next buttons
	        buttonNextHTML: null,
	        buttonPrevHTML: null
	    });
	}

	
	$('div#anecButtons a.bw').click(function(){
		anecNext();
		return false;
	});

	setTimeout(anecNext,50);
	
	$('div#picButtons a.fw').click(function(){
		imageNext();
		return false;
	});
	$('div#picButtons a.bw').click(function(){
		imagePrev();
		return false;
	});
	setTimeout(imageNext,50);

	$('div#viButtons a.fw').click(function(){
		imageNextv();
		return false;
	});
	$('div#viButtons a.bw').click(function(){
		imagePrevv();
		return false;
	});
	setTimeout(imageNextv,50);

	$('div#voteButtons button').click(function(){
		var a = $('#voteLeft input:checked').val();
		var d = {a_id:a};
		var url = $('#voteForm').attr('action');
		//alert(url);
		$.post(url, d, function(data, textStatus){$('#voteLeft').html(data);});	
		
		return false;
	});
	$('div#voteButtons a.fw').click(function(){
		$('#voteLeft').load(this.href);
		return false;
	});
	
	$('div#clButtons a.fw').click(function(){
		imageNext();
		return false;
	});
	$('div#clButtons a.bw').click(function(){
		imagePrev();
		return false;
	});
	setTimeout(imageNext,50);
	
	$('a.font').click(function(){
		var sign = this.hash;
		var newsize = 1.1;
		$('a.font').removeClass('line');
//		var newsize = (sign=='#+')?parseInt($('.article').css('font-size')) + 1:parseInt($('.article').css('font-size')) - 1;
//		if(newsize>20){newsize=20;}
//		if(newsize<9){newsize=9;}
		if(sign=='#0.9'){newsize=0.9;$(this).addClass('line');}
		if(sign=='#1.1'){newsize=1.1;$(this).addClass('line');}
		if(sign=='#1.3'){newsize=1.3;$(this).addClass('line');}
		$('div.article p').css('font-size',newsize + 'em');
//		alert(newsize);
		return false;
	});

	$('a.print').click(function(){
		print_window(this.href);
		return false;
	});
	
	$('a.send, a.facebook, a.svejo').click(function(){
		new_window(this.href);
		return false;
	});
	
	$('a.morecomment').click(function(){
		var ids = this.id;
		//alert('#mnenia span#more' + ids);
		$(this).hide();
		//$('#mnenia span#more' + ids).hide();
		$(this.hash).show();
		return false;
	});
	
	$('#CheckboxAll').click(function(){
		$("ul li.rubs input[type='checkbox']").attr('checked', $('#CheckboxAll').is(':checked'));   
   	});
	
	$('input.mainrub').click(function(){
		$('#sub'+this.id+' input[type=checkbox]').attr('checked', $(this).is(':checked'));
	});

/* stepcarousel */		
	$('a#hidebar').click(function(){
		$('div.top_news').hide();
		$('div.smalnews').show();
	});
	
	$('a#showbar').click(function(){
		$('div.top_news').show();
		$('div.smalnews').hide();
	});
	
	$('div#carousel a.fwrd').click(function(){
		stepcarousel.stepBy('carousel', 1);
		return false;
	});
	$('div#carousel a.back').click(function(){
		stepcarousel.stepBy('carousel', -1);
		return false;
	});
	//$('div#carousel1 a.fwrd').click(function(){
	//	stepcarousel.stepBy('carousel1', 1);
	//	return false;
	//});
	$('div#carousel1 a.back').click(function(){
		stepcarousel.stepBy('carousel1', 1);
		return false;
	});
	
	$('div#morecat a.nav_next').click(function(){
			stepcarousel.stepBy('morecat', 2);
			return false;
  	});
  	
	  $('div#morecat a.nav_back').click(function(){
  		stepcarousel.stepBy('morecat', -2);
  		return false;
  	});
/* stepcarousel */

	stepcarousel.setup({
		galleryid: 'carousel', //id of carousel DIV
		beltclass: 'carousel', //class of inner "carousel" DIV containing all the panel DIVs
		panelclass: 'image', //class of panel DIVs each holding content
		//autostep: {enable:true, moveby:1, pause:10000},
		panelbehavior: {speed:500, wraparound:false, persist:false},
		defaultbuttons: {enable: false},
		statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
		contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
	});
		
	stepcarousel.setup({
		galleryid: 'carousel1', //id of carousel DIV
		beltclass: 'carousel1', //class of inner "carousel" DIV containing all the panel DIVs
		panelclass: 'image1', //class of panel DIVs each holding content
		autostep: {enable:true, moveby:1, pause:10000},
		panelbehavior: {speed:500, wraparound:false, persist:false},
		defaultbuttons: {enable: false},
		statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
		contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
	});
	
	stepcarousel.setup({
		galleryid: 'morecat', //id of carousel DIV
		beltclass: 'morecat', //class of inner "carousel" DIV containing all the panel DIVs
		panelclass: 'morenews', //class of panel DIVs each holding content
		//autostep: {enable:true, moveby:2, pause:10000},
		panelbehavior: {speed:500, wraparound:false, persist:false},
		defaultbuttons: {enable: false},
		statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
		contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
	});
	
	
	$('#daypic #imlist').mousemove(function(e){

		var posx = 0;
		var posy = 0;
		if (!e) var e = window.event;
		if (e.pageX || e.pageY) 	{
			posx = e.pageX;
			posy = e.pageY;
		}
		else if (e.clientX || e.clientY) 	{
			posx = e.clientX + document.body.scrollLeft
				+ document.documentElement.scrollLeft;
			posy = e.clientY + document.body.scrollTop
				+ document.documentElement.scrollTop;
		}
		
		var ch = $('#daypic #imlist').height();
		var eh = $('#daypic #imlist ul').height();
		var y = posy - $('#daypic #imlist').offset().top;
		var ultop = $('#daypic #imlist ul').offset().top - $('#daypic #imlist').offset().top;
		
		//$('#debug').html($('#debug').html()  + '<br>' + y + ' ' + ultop + ' ' + dir);

		if(y < ch/3 && ultop < 0){
			dir = 5;
			if (!tg) tg = setInterval(moveGals,80);
		}
		else if (y > 2*ch/3 && ultop > ch - eh){
			dir = - 5;
			if (!tg) tg = setInterval(moveGals,80);
		}
		else {
			dir = 0;
			clearInterval(tg);
			tg = false;
		}

		//$('#debug').html($('#debug').html()  + '<br>' + y  + ' ' + $('#daypic #imlist ul').offset().top + ' ' + ultop + ' ' + dir + ' ' + ch  + ' ' + $('#daypic #imlist ul').height());
		
		return false;
		
	});

	$('#daypic #imlist').mouseout(function(e){
		if(tg){
			//clearInterval(an);
		}
	});
	/*
	$('#daypic #imlist ul li a.news_img').click(function(){
		var href = this.href;
		var src = $($(this).children('img')[0]).attr('src');
		
		var i = $('#bigimg');
		
		$($(i).children('img')[0]).attr('src',src.replace('_90X70.jpg','_310X236.jpg'));
		$(i).attr('href',href);
		
		return false;
	});
	*/
	
	$("#commentsForm input#name").focus(function() {
		if($("#name").val()=='Анонимен'){
		 	$("#name").val('');
		 }
	});
	$("#commentsForm input#name").blur(function() {
	 	if($("#name").val()==''){
		 	$("#name").val('Анонимен');
		 }
	});
	
	
	
	$("#search input#tursi").focus(function() {
		if($("#tursi").val()=='Търси в Новинар'){
		 	$("#tursi").val('');
		 }
	});
	$("#search input#tursi").blur(function() {
	 	if($("#tursi").val()==''){
		 	$("#tursi").val('Търси в Новинар');
		 }
	});
	
	$("#footer_search input#bottom_serch").focus(function() {
		if($("#bottom_serch").val()=='Търси в Новинар'){
		 	$("#bottom_serch").val('');
		 }
	});
	$("#footer_search input#bottom_serch").blur(function() {
	 	if($("#bottom_serch").val()==''){
		 	$("#bottom_serch").val('Търси в Новинар');
		 }
	});
	
	$("#towns").click(function() {
	 	$("div#weathertown").show();
	});
	$('div.pageBox a.next').click(function(){
		var images = $('div.imgblock div.imgs');
		$(images[im]).hide();
		im++;
		if (im >= images.length) im=0;
		$(images[im]).fadeIn();
		ims = (im<9)?'0'+(im+1):(im+1);
		$('div.imgblock div.pageBox  span').html(ims);
	});
	$('div.pageBox a.prev').click(function(){
		var images = $('div.imgblock div.imgs');
		$(images[im]).hide();
		im--;
		if (im < 0) im=images.length-1;
		$(images[im]).fadeIn();
		ims = (im<9)?'0'+(im+1):(im+1);
		$('div.imgblock div.pageBox  span').html(ims);
	});
	
	$("select#typenews").change(function() {
		if($("select#typenews").selectedValues()=='n' || $("select#typenews").selectedValues()=='f'){
			$("div#attachment").show();
		 }
		else{
			$("div#attachment").hide();
		}
	});
	$('#closelb').click(function(){
//      document.cookie =  'survey=noema2; expires=Thu, 2 Aug 2011 20:47:11 UTC; path=/';
      Set_Cookie('survey','noema2',5,'','','');
      $('#lb').hide();
    });
  $('#linklb').click(function(){
      //document.cookie =  'survey=noema2; expires=Thu, 2 Aug 2011 20:47:11 UTC; path=/';
      Set_Cookie('survey','noema2',5,'','','');
      window.open('http://noema-ltd.social-networks.sgizmo.com','_blank');
      $('#lb').hide();
    });    
});
function Set_Cookie( name, value, expires, path, domain, secure )
{
// set time, it's in milliseconds
var today = new Date();
today.setTime( today.getTime() );

/*
if the expires variable is set, make the correct
expires time, the current script below will set
it for x number of days, to make it for hours,
delete * 24, for minutes, delete * 60 * 24
*/
if ( expires )
{
expires = expires * 1000 *  60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
    
function moveGals(){
	//var ultop = $('#topGalleries ul').offset().top - $('#topGalleries').offset().top;
	var ultop = $('#daypic #imlist ul').offset().top - $('#daypic #imlist').offset().top;
	//$('#debug').html($('#debug').html() + '<br>' + ultop + ' ' + dir);
	if(ultop + dir < 1 && ultop + dir >= $('#daypic #imlist').height()-$('#daypic #imlist ul').height()){
		$('#daypic #imlist ul').css({'top':(ultop + dir) + 'px'});
	}
	else{
		if(tg){
			clearInterval(tg);
			tg = false;
		}
	}
}
var tg = false;
var dir = 0;

function Bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  	window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}

