// JavaScript Document
function showScreenshots(number)
{
	number = parseInt(number);
	var screenShotPath = "/img/screenshots/";
	Slimbox.open( [ [screenShotPath + "screenshot-gallery-1.jpg", ""], [screenShotPath + "screenshot-gallery-2.jpg", ""], [screenShotPath + "screenshot-gallery-3.jpg", ""], [screenShotPath + "screenshot-gallery-4.jpg", ""], [screenShotPath + "screenshot-gallery-5.jpg", ""],[screenShotPath + "screenshot-gallery-6.jpg", ""],[screenShotPath + "screenshot-gallery-7.jpg", ""],[screenShotPath + "screenshot-gallery-8.jpg", ""] ], number );
}
function showIndexScreenshots(number)
{
	number = parseInt(number);
	var screenShotPath = "/img/screenshots/";
	Slimbox.open( [ [screenShotPath + "screenshot-index-1.jpg", ""], [screenShotPath + "screenshot-index-2.jpg", ""], [screenShotPath + "screenshot-index-3.jpg", ""], [screenShotPath + "screenshot-index-4.jpg", ""] ], number  );
}
function showWallpapers(number)
{
	number = parseInt(number);
	var wallPaperPath = "/img/wallpapers/";
	Slimbox.open( [ [wallPaperPath + "wallpaper-1.jpg", ""],[wallPaperPath + "wallpaper-2.jpg", ""],[wallPaperPath + "wallpaper-3.jpg", ""],[wallPaperPath + "wallpaper-4.jpg", ""],[wallPaperPath + "wallpaper-5.jpg", ""],[wallPaperPath + "wallpaper-6.jpg", ""],[wallPaperPath + "wallpaper-7.jpg", ""],[wallPaperPath + "wallpaper-8.jpg", ""] ], number );
}
function submitEnter(e, form)
{
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;
	if (keycode == 13)
	{
		document.forms[form].submit();
		return false;
	}
	else
		return true;
}
function setCookie(name,value,expiredays) {
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
