/* -----------------------------------------------------------------



	ATTACH MOCHA LINK EVENTS

	Notes: Here is where you define your windows and the events that open them.

	If you are not using links to run Mocha methods you can remove this function.

	

	If you need to add link events to links within windows you are creating, do

	it in the onContentLoaded function of the new window.



   ----------------------------------------------------------------- */





function attachMochaLinkEvents(){





	

	if ($('wbl')){

		$('wbl').addEvent('click', function(e){	

			new Event(e).stop();

			document.mochaUI.newWindow({

				id: 'wbid',

				title: 'Website Builder Demo',

				loadMethod: 'iframe',

				contentURL: 'http://sitebuilder.websitewelcome.com/Wizard?resellerId=18276',

				width: 1024,

				height: 768,

				headerStartColor:  [59,148,135],  // Header gradient's top color - RGB

				headerStopColor:   [59,118,135],

				scrollbars: true,

				paddingVertical: 0,

				paddingHorizontal: 0,

				y: 600

			});

		});

	}	



	if ($('ssl')){

		$('ssl').addEvent('click', function(e){	

			new Event(e).stop();

			document.mochaUI.newWindow({

				id: 'ssid',

				title: 'SiteStudio Demo',

				loadMethod: 'iframe',

				contentURL: 'http://sitestudio.websitewelcome.com:8080/demo/psoft.masonry.Builder',

				width: 1024,

				height: 768,

				headerStartColor:  [59,148,135],  // Header gradient's top color - RGB

				headerStopColor:   [59,118,135],

				scrollbars: true,

				paddingVertical: 0,

				paddingHorizontal: 0,

				y: 1000

			});

		});

	}

	

		if ($('ssl2')){

		$('ssl2').addEvent('click', function(e){	

			new Event(e).stop();

			document.mochaUI.newWindow({

				id: 'ssid2',

				title: 'SiteStudio Sabloni',

				loadMethod: 'iframe',

				contentURL: 'http://www.psoft.net/SS/previewer/',

				width: 1024,

				height: 768,

				headerStartColor:  [59,148,135],  // Header gradient's top color - RGB

				headerStopColor:   [59,118,135],

				scrollbars: true,

				paddingVertical: 0,

				paddingHorizontal: 0,

				y: 1000

			});

		});

	}



	if ($('tml')){

		$('tml').addEvent('click', function(e){	

			new Event(e).stop();

			document.mochaUI.newWindow({

				id: 'tmid',

				title: 'Profesionalni Sabloni',

				loadMethod: 'iframe',

				contentURL: 'http://templates.hostgator.com',

				width: 800,

				height: 600,

				headerStartColor:  [59,148,135],  // Header gradient's top color - RGB

				headerStopColor:   [59,118,135],
				scrollbars: true,

				paddingVertical: 200,

				paddingHorizontal: 0,

				y: 900

			});

		});

	}



	

	if ($('cplink')){

		$('cplink').addEvent('click', function(e){	

			new Event(e).stop();

			document.mochaUI.newWindow({

				id: 'cpid',

				title: 'cPanel Demo',

				loadMethod: 'iframe',

				contentURL: 'http://67.18.39.34:2082/login?user=demo&pass=demo',

				width: 800,

				height: 600,

				headerStartColor:  [59,148,135],  // Header gradient's top color - RGB

				headerStopColor:   [59,118,135],

				scrollbars: true,

				paddingVertical: 0,

				paddingHorizontal: 0,

				y: 1200

			});

		});

	}

	if ($('cplink2')){

		$('cplink2').addEvent('click', function(e){	

			new Event(e).stop();

			document.mochaUI.newWindow({

				id: 'cpid2',

				title: 'cPanel Demo',

				loadMethod: 'iframe',

				contentURL: 'http://67.18.39.34:2082/login?user=demo&pass=demo',

				width: 800,

				height: 600,

					headerStartColor:  [59,148,135],  // Header gradient's top color - RGB

				headerStopColor:   [59,118,135],

				scrollbars: true,

				paddingVertical: 0,

				paddingHorizontal: 0,

				y: 1200

			});

		});

	}



	// Deactivate menu header links

	$$('a.returnFalse').each(function(el){

		el.addEvent('click', function(e){

			new Event(e).stop();

		});

	});

	

}
