// JavaScript Document

function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function show_hide(faq,number)
{
		for (i=1;i<=number;i++)
		{ var temp = "q"+i; if (temp != faq)
  		{ document.getElementById("q"+i).style.display="none";
        document.getElementById("aq"+i).className="faqlink";
      }
    }

	if
		(document.getElementById(faq).style.display=="none") {
      document.getElementById(faq).style.display="";
      document.getElementById("a"+faq).className="faqsel";
    }

	else
		{ document.getElementById(faq).style.display="none";
      document.getElementById("a"+faq).className="faqlink";
    }

	return true;
}


function showhide(id){
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none"){
obj.style.display = "";
} else {
obj.style.display = "none";
}
}


}


function modalOpen (dialog) {
	dialog.overlay.fadeIn(300, function () {
		dialog.container.fadeIn(300, function () {
			dialog.data.hide().slideDown(300);
		});
	});
}
function displayBigPopup(id ) {

    $('#'+id).modal({onOpen: modalOpen,close: false,containerId: 'modalContainerPublic'});

    $('.closewin').click(function (e)
    {
    	$.modal.close();
    });
}