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>';

var _gaq = _gaq || [];

  _gaq.push(['_setAccount', 'UA-19793137-1']);

  _gaq.push(['_trackPageview']);

 

  (function() {

    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

  })();

	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 >= 13)
			{
				$('.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 < 15)
			{
				$('.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 expandmenulist(nos,id)
{
	var noofitems = nos;
	for(i=1;i<=noofitems;i++)
	{
		if (i!=id)
		{
			$('#menu'+i).removeClass('active');
			$('#menu'+i).addClass('blocks');
			$('#submenu'+i).hide();
			$('#more'+i).show();
		}
	}
	if (document.getElementById('submenu'+id).style.display =='block')
	{
		$('#menu'+id).removeClass('active');
		$('#menu'+id).addClass('blocks');
		$('#submenu'+id).hide();
		$('#more'+id).show();

	}
	else
	{
		$('#menu'+id).removeClass('blocks');
		$('#menu'+id).addClass('active');
		$('#submenu'+id).show();
		$('#more'+id).hide();
	}
}
