/*---------------Fonts - cufons----------------------*/
Cufon.replace('', { hover:true, fontFamily: 'Gotham-light' });
Cufon.replace('h1, h5, .footer_left span em.nrm', {hover:true, fontFamily: 'Gotham-Book' });
Cufon.replace('h2, h2 a, .item1, .item0, .footer_right span, h7, .footer_left span em.bld', { hover:true, hoverables: { a: true, h2: true }, fontFamily: 'Gotham-Bold' });
Cufon.replace('.form-rows h4, .form-row h4, .galDiv h4, .col h4 span, .w190 h4, .w207 h4, .sub-nav-bord li a, h3, .footer_right ul, .lightbox-content h4, .lightbox-content h2, slider - bottom left, .g-search h4, h4 a.photographer_anchor', { hover:true, hoverables: { a: true, h3: true, h4: true }, fontFamily: 'Gotham-Medium' });
Cufon.replace('.ideal-attributes, .g-search label, .name-times', { hover:true, fontFamily: 'Times-Roman' });
Cufon.replace('ul.nav > li ul > li > a',{'fontFamily' : 'Times-Roman','hover':true});
Cufon.replace('', { hover:true, fontFamily: 'Gotham-Medium' });
Cufon.replace('.level4 .wrapper li .photo-credit span em:first-child',{'fontFamily':'Times-Roman','textTransform':'capitalise'});
Cufon.replace('.style-3', { fontFamily: 'Times-Italic' });
Cufon.replace('.galery-nav li h4 a', { hover: true, fontFamily: 'Gotham-Medium' });
Cufon.replace('.galery-nav li h2', { hover: true, fontFamily: 'Gotham-Bold' });
Cufon.replace('#photographer-credits span:first-child',{'fontFamily':'Times-Roman'});
$(document).ready(function(){
  Cufon.replace($('ul.nav').children().children('a'), { hover:true, fontFamily: 'Gotham-Bold' });
  Cufon.replace($('h2').children().children('a'), { hover:true });
  $(".footer_right ul li:last-child").addClass("last-child");
  var count = $(".grid-mag-holder").length;
});

function formrule(field) {
  if (field.defaultValue == field.value) field.value = "";
}

function formrule2(field) {
  document.getElementById("HidValue").value = field;
}

function GoPage(url){
  if(url == "Mitzvahs" || url == "mitzvahs") {
    window.location="Mitzvahs";
  } else if(url == "Children" || url == "children") {
    window.location="ChildrenFamilies";
  } else if(url == "Parties and Family Photos" || url == "parties and family photos") {
    window.location="ChildrenFamilies";
  } else if(url == "Maternity" || url == "maternity") {
    window.location="ChildrenFamilies";
  } else if(url == "Corporate" || url == "corporate") {
    window.location="Corporate";
  } else if(url == "Schools" || url == "schools") {
    window.location="Schools";
  } else if(url == "Social" || url == "social") {
    window.location="Social";
  } else {
    alert("Enter Proper Keyword");
  }
}

