// JavaScript Document
// Copyright (c) 2007 Cantovation Ltd

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function DoBookmark() {
if (false) { 
	window.sidebar.addPanel(document.title, location.href,"");
} 
else if( window.external ) {
	window.external.AddFavorite(location.href,document.title); 
	};
}

function DispBookmarks(pageurl, pagetitle) {

pageurl = encodeURIComponent(pageurl);
pagetitle = encodeURIComponent(pagetitle);
pagedescr =  '';// encodeURIComponent(document.meta.description);
imageurl = 'http://www.singandsee.com/images/BM/';

document.write('<a href="http://del.icio.us/post?url='+pageurl+'&amp;title='+pagetitle+'&amp;notes='+pagedescr+'" title="Add to Del.icio.us" target="_blank" ><img class="bm" src="'+imageurl+'delicious.png" title="Add to Del.icio.us" alt="Add to Del.icio.us" /></a>');
document.write('<a href="http://digg.com/submit?phase=2&amp;url='+pageurl+'&amp;title='+pagetitle+'" title="Add to digg" target="_blank"><img class="bm" src="'+imageurl+'digg.png" title="Add to digg" alt="Add to digg" /></a>');
document.write('<a href="http://www.facebook.com/sharer.php?u='+pageurl+'&amp;title='+pagetitle+'" title="Add to Facebook" target="_blank"><img class="bm" src="'+imageurl+'facebook.png" title="Add to Facebook" alt="Add to Facebook" /></a>');
document.write('<a href="http://www.stumbleupon.com/submit.php?url='+pageurl+'&amp;title='+pagetitle+'" title="Add to Stumble Upon" target="_blank"><img class="bm" src="'+imageurl+'stumbleupon.png" title="Add to Stumble Upon" alt="Add to Stumble Upon" /></a>');
document.write('<br/>');
document.write('<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk='+pageurl+'&amp;title='+pagetitle+'" title="Add to Google Bookmarks" target="_blank"><img class="bm" src="'+imageurl+'google.png" title="Add to Google Bookmarks" alt="Add to Google Bookmarks" /></a>');
document.write('<a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+pageurl+'&amp;t='+pagetitle+'" title="Add to Yahoo My Web" target="_blank"><img class="bm" src="'+imageurl+'yahoo.png" title="Add to Yahoo My Web" alt="Add to Yahoo My Web" /></a>');
document.write('<a href="http://reddit.com/submit?url='+pageurl+'&amp;title='+pagetitle+'" title="Add to reddit" target="_blank"><img class="bm" src="'+imageurl+'reddit.png" title="Add to reddit" alt="Add to reddit" /></a>');
document.write('<a href="http://www.squidoo.com/lensmaster/bookmark?'+pageurl+'"  title="Add to Squidoo" target="_blank"> <img  class="bm" alt="Add to Squidoo" title="Add to Squidoo" src="'+imageurl+'squidoo.gif" /></a>');

}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menu-community-menu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace (" over", "");
				}
			}
		}
	}
}
window.onload=startList;



function OpenNewWindow(url,winwidth,winheight) 
{
NewWindow=window.open(url,'descr','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,scrollbars=no,resizable=no,copyhistory=no,width='+545+',height='+270)
}

//JQuery
/*  $(document).ready(function() {
        $("#modalDiv").dialog({
            modal: true,
            autoOpen: false,
            height: '820',
            width: '920',
            draggable: true,
            resizeable: true,   
            title: 'IFrame Modal Dialog'
        });
        $('#goToUserVoicePage').click(
                        function() {
                            url = 'http://singandsee.uservoice.com/forums/7674-feedback-and-suggestions';
                            $("#modalDiv").dialog("open");
                            $("#modalIFrame").attr('src',url);
                            return false;
                    });  
                    
  });
  function OpenModalFrame(url) {
	  $("#modalDiv").dialog("open");
	  $("#modalIFrame").attr('src',url);
	  return false;
	}

*/
