/**
 * mivune Javascript stuff.
 * @author NOSE
 * 
 * @version 1.0.0 initial version
 *
 */
var mivune = {

	/**
	 * Initialize.
	 */
	initialize : function(){
		// init all
		mivune.initPopUps();
		mivune.initModal();
		mivune.initPrintLinks();
	
	},
	
	/**
	* Initializes the popups.
	*/
	initPopUps: function() {
		
		// demo
		jQuery(".popupDemo").popupWindow("http://www.mivune.ch/de/mivune_demo/index.html", {width:"800", height:"600",left:"50",top:"50"});
	},
	
	/**
	 * Initialize the modal.
	 */
	initModal: function(ctx){
		jQuery(".modal",ctx).nyroModal({
			bgColor:'#000000',
			addImageDivTitle: false,
			minHeight:'100',
			hideContent:function hideModal(elts, settings, callback) {
			  elts.wrapper.hide().animate({opacity: 0}, {complete: callback, duration: 80}); 
			}
		});
	},
	
	/**
	* Initializes the print stuff.
	*/
	initPrintLinks: function() {
		jQuery(".printLink").click(function(){window.print();});
	}
}
jQuery(document).ready(function(){
	mivune.initialize();
});



