var J = jQuery.noConflict();

J(document).ready(function(){


   // POPUPSLIDE
//    var COOKIE_NAME = 'cp';
 //   var ADDITIONAL_COOKIE_NAME = 'additional';
//    var options = { path: '/', expires: 2 };

  var popupFade = 0;
  pophtml = J('#popupcnt').html();
  //alert(J.cookie(COOKIE_NAME));
  if(pophtml!=null && pophtml.length!=0) {
    J("#poplayer").fadeIn(2000);
    J("#poplayer").css("display","inline-block");
    J("#popupcnt").fadeIn(2000);
    popupfade = 0;
    J("#popupcnt").css("left",(J("body").width()/2)-(J("#popupcnt").width()/2)+"px");
    var top = (J("#popupcnt").height()/2);
    var newtop = parseInt(top) + 434;
    //J("#popupcnt").animate({"top": "+="+(J("body").height()/2)-(J("#popupcnt").height()/2)+"px"}, "fast");
    J("#popupcnt").animate({"top": "+="+newtop+"px"}, 1000);

    J(document).click(function(){
      J("#poplayer").fadeOut(1000);
      J("#popupcnt").fadeOut(1000);
      popupfade = 0;
    });

  }

//  J.cookie(COOKIE_NAME, 'visit', options);
 						  						
})





