var globalErr=1;var SearchType="partial";var searchDisplayDivId=(searchDisplayType=="overlay")?"search_dropdown":"content";var pager1=new Pager('overlaySearchResultId',3);jQuery(document).ready(function()
{jQuery(".submit").click(function(){validateForm();});jQuery(".submenu>ul>li>ul>li").each(function(){if(jQuery(this).children("ul").length!=0){jQuery(this).addClass("parent");}});var prev='';if(document.getElementById("gallery_right"))
{jQuery("#gallery_right").css({height:"144px",width:"194px"});}
if(jQuery("#left_menu").attr("class")=="left_menu")
{document.getElementById('content').style.marginLeft=184+"px";jQuery("#content").css({width:"547px"});}
if(document.getElementById("notulen_list"))
{jQuery('#notulen_list').Accordion({active:'div.selected',header:'div.notulen_inner',alwaysOpen:false,animated:true,showSpeed:400,hideSpeed:800});}
if(document.getElementById("faq_list"))
{jQuery('#faq_list').Accordion({active:'div.selected',header:'div.faq_q',alwaysOpen:false,animated:true,showSpeed:400,hideSpeed:800});}
if(document.getElementById("header_images"))
{if(jQuery("#header_images .header_image").length>1)
{jQuery('#header_images').cycle({fx:'fade',timeout:4000,delay:-2000,speed:3000,random:true});}}
if(document.getElementById("news_images"))
{if(jQuery("#news_images img").length>1)
{jQuery('#news_images').cycle({fx:'fade',timeout:5000,delay:-2000,speed:5000,random:true});}}
jQuery.jFastMenu(".submenu");});jQuery.jFastMenu=function(id)
{$(id).find('ul').find('li').hover(function()
{var parent=$(this);var sub_ul=parent.find('ul:first');clearTimeout(parent.data('jQueryMenu'));if(sub_ul!="undefined")
{sub_ul.animate({height:'show'},'fast');sizes=new Array();sub_ul.children().each(function(i)
{sizes.push($(this).width());});sizes.sort();var new_size=sizes[sizes.length+20];sub_ul.css({'width':''+new_size+'px'});sub_ul.children().each(function()
{var padding=(parseFloat($(this).children().css("paddingLeft"))+parseFloat($(this).children().css("paddingRight")));$(this).css({'width':''+new_size+'px'});$(this).children().css({'width':''+(new_size-padding)+'px'});});if(parent.parent().is('.horizontal')==false)
{var parent_width=parent.width();sub_ul.css({'left':''+parent_width+'px'});}}},function()
{var parent=$(this);var timer=setTimeout(function()
{parent.find('ul:first').animate({height:'hide',opacity:'hide'},'fast');},100);parent.data('jQueryMenu',timer);});}
function showform(id)
{document.getElementById(id).style.display="block";}
function hideform(id)
{document.getElementById(id).style.display="none";}
function showLanguageDropdown()
{if(!jQuery("#language_dropdown").hasClass('show'))
{jQuery("#language_dropdown").removeClass("hide");jQuery("#language_dropdown").addClass("show");}}
function hideLanguageDropdown()
{if(!jQuery("#language_dropdown").hasClass('hide'))
{jQuery("#language_dropdown").removeClass("show");jQuery("#language_dropdown").addClass("hide");}}
function validateForm()
{email=jQuery(".login_email").val();password=jQuery(".login_password").val();if(password==''||email=='')
{jQuery(".error_message").css("display","block").text('Fields required');}
else
{var val=jQuery("#login_form").serialize();jQuery.ajax({url:"user_login.php",type:"post",data:val,success:function(msg){if(msg>0){jQuery(".error_message").css("display","none");window.location=siteURL+'user_page/';}else{jQuery(".error_message").css("display","block").text('Check email id and password');jQuery('#login_form')[0].reset();}}});}}
jQuery(document).ready(function()
{pageTitle=jQuery(this).attr('title');found=pageTitle.search('Page Not Found');if(found!=-1)
{newTitle=pageTitle.replace("Page Not Found"," ");document.title=newTitle;}
jQuery("#login_form")[0].reset();var totalHeight=document.documentElement.scrollHeight;jQuery(".overlay_bg").css({'height':totalHeight+"px"});jQuery('a.login_button').click(function()
{jQuery("#overlay_vpb").fadeIn(700);});jQuery(".overlay_bg").click(function()
{jQuery("#overlay_vpb").fadeOut(700);});jQuery('.close_btn').click(function()
{jQuery("#overlay_vpb").fadeOut(700);});jQuery('.logout_button').click(function(){jQuery.ajax({url:"user_login.php",type:"post",success:function(msg){window.location=siteURL;}});});});Cufon.set('fontFamily','AvenirRoman').replace('.submenu ul li a.cufon',{hover:true});Cufon.set('fontFamily','AvenirLight').replace('.left_container h1,.left_container h2,.right_container h1')('.left_container h2,.right_container h2,.right_container h4,.right_container h5');Cufon.set('fontFamily','Avenir').replace('#header_images h1',{textShadow:'1px 1px #111'});Cufon.now();
