/*
 * nyroModal - jQuery Plugin
 * http://nyromodal.nyrodev.com
 *
 * Copyright (c) 2008 Cedric Nirousset (nyrodev.com)
 * Licensed under the MIT license
 *
 * Include this file AFTER nyroModal if you want absolutely no animation with nyroModal
 *
 * $Date: 2008-11-29 (Sat, 29 Nov 2008) $
 * $version: 1.3.1
 */
jQuery(function($){
	$.fn.nyroModal.settings.hideBackground=function(elts,settings,callback){elts.bg.hide();callback();};
	$.fn.nyroModal.settings.hideContent=function(elts,settings,callback){news(1);elts.contentWrapper.hide();callback();};
	$.fn.nyroModal.settings.hideLoading=function(elts,settings,callback){elts.loading.hide();callback();};
	$.fn.nyroModal.settings.hideTransition=function(elts,settings,callback){elts.contentWrapper.css({width: settings.width+'px',marginLeft: settings.marginLeft+'px',height: settings.height+'px',marginTop: settings.marginTop+'px'}).show();elts.loading.hide();callback();};
	$.fn.activateNyro=function(){
		$(this).click(function(e){
			news(0);
			if(isIE6){
				$.nyroModalSettings({width:1050,height:412,minWidth:800,minHeight:412});
			}else{
				$.nyroModalSettings({width:1050,height:412,minWidth:800,minHeight:412,css:{bg:{zIndex:100,position:'fixed',top:0,left:0,height:'100%',width:'100%'},wrapper:{zIndex:101,position:'absolute',top:'300px',left:'48%'},wrapper2:{},content:{overflow:'auto'},loading:{zIndex:102,position:'absolute',top:'300px',left:'48%',marginTop:'-50px',marginLeft:'-50px'}}});
			}
			$.nyroModalManual({bgColor:'#665b56',url:this.href});
			return false;
		});
	};
	$.fn.startNyro=function(){
		$(this).click();
	};
});

