//Function For Menu Header .... [Dropdown ....]
	headerMenu=function() { jQuery(".parent-menu, .parent-menu ul").hover(function() { if(jQuery(this).find("ul").css("marginLeft")=='-79px' && jQuery(this).find("ul").attr("class")=='large') {  jQuery(this).find("ul").css({margin:"35px 0 0 -103px"}); }; jQuery(this).find("ul").show().css({zindex:'3000'}); jQuery('.mugic_icon_png').css({zindex:'1'});  },function() { jQuery(this).find("ul").hide();}); jQuery('.lielm').hover(function() { jQuery(this).addClass('hover').removeClass('normal');  },function() { jQuery(this).addClass('normal').removeClass('hover');}); }
//Generate External Div ...
	externalFader=function() {
	DW=jQuery(document).width(); DH=jQuery(document).height(); WH=jQuery(window).height(); WW=jQuery(window).width(); jQuery('#externalFadeOut').css({width:DW+"px",height:DH+'px',left:"0px",top:"0px",position:"absolute",background:"#000",display:"block"}).addClass('setopasity'); }

//PIKCHAT JS ...
	___init_chat=function(LogedInStatus) {
	//Enable Chat ...
		if(LogedInStatus!='') { jQuery.pikchat(); }
	}



//Fix Center  Position ....
jQuery.fn.centerInClient = function(options) {
    var opt = { forceAbsolute: false,
                container: window,    // selector of element to center in
                completeHandler: null
              };
    jQuery.extend(opt, options);
   
    return this.each(function(i) {
        var el = jQuery(this);
        var jWin = jQuery(opt.container);
        var isWin = opt.container == window;

        // force to the top of document to ENSURE that 
        // document absolute positioning is available
        if (opt.forceAbsolute) {
            if (isWin)
                el.remove().appendTo("body");
            else
                el.remove().appendTo(jWin.get(0));
        }

        // have to make absolute
        el.css("position", "absolute");

        // height is off a bit so fudge it
        var heightFudge = isWin ? 2.0 : 1.8;
        var x = (isWin ? jWin.width() : jWin.outerWidth()) / 2 - el.outerWidth() / 2;
        var y = (isWin ? jWin.height() : jWin.outerHeight()) / heightFudge - el.outerHeight() / 2;	
        el.css("left", x + jWin.scrollLeft());
        el.css("top", y + jWin.scrollTop());

        // if specified make callback and pass element
        if (opt.completeHandler)
            opt.completeHandler(this);
    });
}
