function sizeChange(id,size)
{
	document.getElementById(id).style.fontSize = size + 'px';
}


function fullwindow(x,y,url)
{
	okno = 'width=' + x + ',height=' + y + ',toolbar=no,left='+(screen.availWidth-x)/2+',top='+(screen.availHeight-y)/2+',status=1,scrollbars=1';
	with(window.open(url, '', okno))
	{
	focus();
	}
}

function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function show_hide(panel) 
{
  $(document).ready(function(){
    $("#showHidePanel"+panel).toggle("slow");
  });
}

function setHomepage(page)
{
	if (document.all)
	{
		//For IE
		document.body.style.behavior='url(#default#homepage)';
		document.body.setHomePage(page);
	}
	else if (window.sidebar)
	{
		if(window.netscape)
		{
			try
			{
				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
			}
			catch(e)
			{
	//			alert("this action was aviod by your browserif you want to enable please enter about:config in your address line,and change the value of signed.applets.codebase_principal_support to true");
			}
		}
		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
		prefs.setCharPref('browser.startup.homepage',page);
	}
}

