var bookmarkMsg = '<table cellpadding=5 cellspacing=0 border=0 width=400 style=\"border:1px solid #C4CDD3; font-size:12px;\" bgcolor=#FFFFFF>';
	bookmarkMsg+='<tr bgcolor=\"#F6F6F6\"><td align=absmiddle>&nbsp;<span class="bld">Social Bookmarking</span></td><td align=\"right\"><a href=\"javascript:hide_bookmark();\" class="a1">X Close</a>&nbsp;</td></tr>';
	bookmarkMsg+='<tr><td align=center valign=top colspan=2><table cellpadding=2 cellsapcing=0 border=0 width=100% align=center style="font-size:12px;"><tr><td width=16><img src=\"images/delicious.gif\" width=16 height=16 border=0></td>';
	bookmarkMsg+='<td><a href=\"javascript:void(0);\" onclick=\"socialBookmark(\'Delicious\')\" class="a1">Delicious</a></td><td width=16><img src=\"images/digg.gif\" width=16 height=14 border=0></td>';
	bookmarkMsg+='<td><a href=\"javascript:void(0);\" onclick=\"socialBookmark(\'Digg\')\" class="a1">Digg</a></td><td width=16><img src=\"images/reddit.png\" width=16 height=16 border=0></td>';
	bookmarkMsg+='<td><a href=\"javascript:void(0);\" onclick=\"socialBookmark(\'reddit\')\" class="a1">reddit</a></td><td width=16><img src=\"images/facebook.gif\" width=16 height=16 border=0></td>';
	bookmarkMsg+='<td><a href=\"javascript:void(0);\" onclick=\"socialBookmark(\'Facebook\')\" class="a1">Facebook</a></td><td width=16><img src=\"images/stumble.gif\" width=16 height=16 border=0></td>';
	bookmarkMsg+='<td><a href=\"javascript:void(0);\" onclick=\"socialBookmark(\'StumbleUpon\')\" class="a1">StumbleUpon</a></td></tr></table></td></tr>';
	bookmarkMsg+='<tr><td colspan=2>&nbsp;<a href=\"javascript:createBookmarkLink()\" style=\"font-size:11px;\" class="a1"	>Standard Bookmarking</a></td></tr></table>';

	function socialBookmark(str) {
		if (str == 'Delicious') {
			var URL = "http://del.icio.us/post?url=" + window.location.href + "&title=" + document.title;
			window.open(URL, str, 'toolbar=no,width=800,height=450,resizable=yes,scrollbars=yes');
		}
		if (str == 'Digg') {
			var URL = "http://digg.com/submit?phase=2&url=" + window.location.href + "&title=" + +encodeURIComponent(document.title);
			window.open(URL, str, 'toolbar=no,width=800,height=450,resizable=yes,scrollbars=yes');
			//var URL = "http://digg.com/remote-submit?phase=2&url=" + window.location.href + "&title=" + document.title;
		}
		if (str == 'reddit') {
			var URL = "http://reddit.com/submit?url=" + window.location.href + "&title=" + document.title;
			window.open(URL, str, 'toolbar=no,width=800,height=450,resizable=yes,scrollbars=yes');
		}
		if (str == 'Facebook') {
			var URL = "http://www.facebook.com/sharer.php?u=" + window.location.href;
			window.open(URL, str, 'toolbar=no,width=800,height=450,resizable=yes,scrollbars=yes');
		}
		if (str == 'StumbleUpon') {
			var URL = "http://www.stumbleupon.com/submit?url=" + window.location.href + "&title=" + document.title;
			window.open(URL, str, 'toolbar=no,width=800,height=450,resizable=yes,scrollbars=yes');
		}
		return false;
	}

	function createBookmarkLink() 
	{
		var title = "Graduate Record Examination"; var url = window.location.href;
		if (window.sidebar) { // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); 
		}else if(window.opera && window.print) { // Opera Hotlist
		return true; 
		}
	}

	function show_bookmark(msg,alink,xpos,ypos)
	{
		var obj				= document.getElementById("book_mark_tips");
		obj.innerHTML   = "";
		var anc = jQuery('#'+alink);
		var cord = anc.offset();
		cord.top				= cord.top+ypos;
		cord.left				= cord.left+xpos;
		obj.style.top		= eval("'"+cord.top + "px'"); 
		obj.style.left		= eval("'"+cord.left + "px'"); 
		obj.style.visibility= "visible";
		obj.style.display	= "block"; // when show
		obj.style.zIndex	= "100000";
		obj.innerHTML   = msg;
	}
	function hide_bookmark()
	{
		var obj				= document.getElementById("book_mark_tips");
		obj.innerHTML   = "";
		obj.style.display	= "none"; 
	}

	/*
	$(document).ready(function(){
		$("#fminus").click(function(){

			cfsize = parseInt($('body').css("font-size"));
			if (cfsize >= 12)
			{
				$('.hd3').css({ fontSize:(parseInt($('.hd3').css("font-size"))-2)+"px" , lineHeight:(parseInt($('.hd3').css("line-height"))-2)+"px"});
				$('.hd2').css({ fontSize:(parseInt($('.hd2').css("font-size"))-2)+"px" , lineHeight:(parseInt($('.hd2').css("line-height"))-2)+"px"});
				$('.a1').css({ fontSize:(parseInt($('.a1').css("font-size"))-2)+"px" , lineHeight:(parseInt($('.a1').css("line-height"))-2)+"px"});
				$('h1').css({ fontSize:(parseInt($('h1').css("font-size"))-2)+"px" , lineHeight:(parseInt($('h1').css("line-height"))-2)+"px"});
				$('#faqs').css({ fontSize:(parseInt($('#faqs').css("font-size"))-2)+"px" , lineHeight:(parseInt($('#faqs').css("line-height"))-2)+"px"});
				$('.midleft, .midleft ul ul').css({ fontSize:(parseInt($('.midleft').css("font-size"))-2)+"px" , lineHeight:(parseInt($('.midleft').css("line-height"))-2)+"px"});
				$('.midright, .midright ul ul').css({ fontSize:(parseInt($('.midright').css("font-size"))-2)+"px" , lineHeight:(parseInt($('.midright').css("line-height"))-2)+"px"});
				$('.blackband').css({ fontSize:(parseInt($('.blackband').css("font-size"))-2)+"px" , lineHeight:(parseInt($('.blackband').css("line-height"))-2)+"px"});
				$('.blackcont').css({ fontSize:(parseInt($('.blackcont').css("font-size"))-1)+"px" , lineHeight:(parseInt($('.blackcont').css("line-height"))-1)+"px"});
				$('.header_bg').css({ fontSize:(parseInt($('.header_bg').css("font-size"))-2)+"px" , lineHeight:(parseInt($('.header_bg').css("line-height"))-2)+"px"});
				$('.box2 em, .box3 em').css({ fontSize:(parseInt($('.box2 em, .box3 em').css("font-size"))-2)+"px" , lineHeight:(parseInt($('.box2 em, .box3 em').css("line-height"))-2)+"px"});
				$('.nav').css({ fontSize:(parseInt($('.nav').css("font-size"))-2)+"px" , lineHeight:(parseInt($('.nav').css("line-height"))-2)+"px"});
				$('#ul_style1').css({ fontSize:(parseInt($('#ul_style1').css("font-size"))-1)+"px" , lineHeight:(parseInt($('#ul_style1').css("line-height"))-1)+"px"});

				lhight = parseInt($('body').css("line-height"));
				$('body').css({ fontSize:(cfsize-2)+"px" , lineHeight:(lhight-2)+"px"});

				cfsize = parseInt($('body').css("font-size"));
				if (cfsize<12)
				{
					$('.hd3').css({ fontSize:"18px" , lineHeight:"20px"});
					$('.hd2').css({ fontSize:"13px" , lineHeight:"20px"});
					$('.a1').css({ fontSize:"11px" , lineHeight:"14px"});
					$('h1').css({ fontSize:"22px" , lineHeight:"24px"});
					$('#faqs').css({ fontSize:"11px" , lineHeight:"16px"});
					$('.midleft, .midleft ul ul').css({ fontSize:"12px" , lineHeight:"16px"});
					$('.midright, .midright ul ul').css({ fontSize:"10px" , lineHeight:"12px"});
					$('.blackband').css({ fontSize:"11px" , lineHeight:"14px"});
					$('.blackcont').css({ fontSize:"11px" , lineHeight:"18px"});
					$('.header_bg').css({ fontSize:"11px" , lineHeight:"14px"});
					$('.box2 em, .box3 em').css({ fontSize:"16px" , lineHeight:"20px"});
					$('.blackband').css({ fontSize:"14px" , lineHeight:"16px"});
					$('.blackband').css({ fontSize:"14px" , lineHeight:"16px"});
					$('#ul_style1').css({ fontSize:"10px" , lineHeight:"14px"});

					$('body').css({ fontSize:"11px" , lineHeight:"14px"});
				}
			}
			return false;
		});
		$("#fplus").click(function(){
			cfsize = parseInt($('body').css("font-size"));
			if (cfsize < 17)
			{
				$('.hd3').css({ fontSize:(parseInt($('.hd3').css("font-size"))+2)+"px" , lineHeight:(parseInt($('.hd3').css("line-height"))+2)+"px"});
				$('.hd2').css({ fontSize:(parseInt($('.hd2').css("font-size"))+2)+"px" , lineHeight:(parseInt($('.hd2').css("line-height"))+2)+"px"});
				$('.a1').css({ fontSize:(parseInt($('.a1').css("font-size"))+2)+"px" , lineHeight:(parseInt($('.a1').css("line-height"))+2)+"px"});
				$('h1').css({ fontSize:(parseInt($('h1').css("font-size"))+2)+"px" , lineHeight:(parseInt($('h1').css("line-height"))+2)+"px"});
				$('#faqs').css({ fontSize:(parseInt($('#faqs').css("font-size"))+2)+"px" , lineHeight:(parseInt($('#faqs').css("line-height"))+2)+"px"});
				$('.midleft, .midleft ul ul').css({ fontSize:(parseInt($('.midleft, .midleft ul ul').css("font-size"))+2)+"px" , lineHeight:(parseInt($('.midleft, .midleft ul ul').css("line-height"))+2)+"px"});
				$('.midright, .midright ul ul').css({ fontSize:(parseInt($('.midright, .midright ul ul').css("font-size"))+2)+"px" , lineHeight:(parseInt($('.midright, .midright ul ul').css("line-height"))+2)+"px"});
				$('.blackband').css({ fontSize:(parseInt($('.blackband').css("font-size"))+2)+"px" , lineHeight:(parseInt($('.blackband').css("line-height"))+2)+"px"});
				$('.blackcont').css({ fontSize:(parseInt($('.blackcont').css("font-size"))+1)+"px" , lineHeight:(parseInt($('.blackcont').css("line-height"))+1)+"px"});
				$('.header_bg').css({ fontSize:(parseInt($('.header_bg').css("font-size"))+2)+"px" , lineHeight:(parseInt($('.header_bg').css("line-height"))+2)+"px"});
				$('.box2 em, .box3 em').css({ fontSize:(parseInt($('.box2 em, .box3 em').css("font-size"))+2)+"px" , lineHeight:(parseInt($('.box2 em, .box3 em').css("line-height"))+2)+"px"});
				$('.nav').css({ fontSize:(parseInt($('.nav').css("font-size"))+2)+"px" , lineHeight:(parseInt($('.nav').css("line-height"))+2)+"px"});
				$('#ul_style1').css({ fontSize:(parseInt($('#ul_style1').css("font-size"))+1)+"px" , lineHeight:(parseInt($('#ul_style1').css("line-height"))+1)+"px"});


				lhight = parseInt($('body').css("line-height"));
				$('body').css({ fontSize:(cfsize+2)+"px" , lineHeight:(lhight+2)+"px"});
			}
			return false;
		});
	});

	*/


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}