function sdpShowBlock(id)
{
	$(id).show();
}

function sdpHideBlock(id)
{
	$(id).hide();
}

function ShowGalleryBlock(idDiv, zIndex, idImg)
{
	$(idDiv).style.zIndex = zIndex;
	$(idImg).show();
}

function HideGalleryBlock(idDiv, zIndex, idImg)
{
	$(idDiv).style.zIndex = zIndex;
	$(idImg).hide();
}

function sdpDisplayDate(lang)
{
	// get date properties
	var dtNow 	= new Date(); // declare date object
	var dtDate	= dtNow.getDate(); // get date
	var dtDay 	= dtNow.getDay(); // get day (in numeric)
	var dtMonth = dtNow.getMonth(); // get month (in numeric)
	var dtYear 	= dtNow.getFullYear(); // get full year representation
	
	// define language codes
	var langs = new Array();
	langs[0] = 0; // en
	langs[1] = 1; // id
	
	// set to default language code, if inputted value is prohibited
	if((lang != langs[0]) && (lang != langs[1]))
		{ lang = langs[0]; }
	
	// define names for months according to codes
	var months 	 	= new Array(2);
	months[0]  	  = new Array(12);
	months[0][0]  = 'January';
	months[0][1]  = 'February';
	months[0][2]  = 'March';
	months[0][3]  = 'April';
	months[0][4]  = 'May';
	months[0][5]  = 'June';
	months[0][6]  = 'July';
	months[0][7]  = 'August';
	months[0][8]  = 'September';
	months[0][9]  = 'October';
	months[0][10] = 'November';
	months[0][11] = 'December';
	months[1]  	  = new Array(12);
	months[1][0]  = 'Januari';
	months[1][1]  = 'Februari';
	months[1][2]  = 'Maret';
	months[1][3]  = 'April';
	months[1][4]  = 'Mei';
	months[1][5]  = 'Juni';
	months[1][6]  = 'Juli';
	months[1][7]  = 'Agustus';
	months[1][8]  = 'September';
	months[1][9]  = 'Oktober';
	months[1][10] = 'November';
	months[1][11] = 'Desember';
		
	// define names for days according to codes
	var days 	 = new Array(2);
	days[0]		 = new Array(7);
	days[0][0] = 'Sunday';
	days[0][1] = 'Monday';
	days[0][2] = 'Tuesday';
	days[0][3] = 'Wednesday';
	days[0][4] = 'Thursday';
	days[0][5] = 'Friday';
	days[0][6] = 'Saturday';
	days[1]		 = new Array(7);
	days[1][0] = 'Minggu';
	days[1][1] = 'Senin';
	days[1][2] = 'Selasa';
	days[1][3] = 'Rabu';
	days[1][4] = 'Kamis';
	days[1][5] = 'Jumat';
	days[1][6] = 'Sabtu';
	
	// get current day and month representation
	var dtMonthNow = months[lang][dtMonth];
	var dtDayNow	 = days[lang][dtDay];

	// display full date representation on browser
	if(lang == 1)
		{ document.write(dtDayNow + ', ' + dtDate + ' ' + dtMonthNow + ' ' + dtYear); }
	else
		{ document.write(dtDayNow + ', ' + dtMonthNow + ' ' + dtDate + ', ' + dtYear); }
}

function sdpGetBrowserInfo()
{
	var browser = new Array();
	browser[0] = navigator.appCodeName;
	browser[1] = navigator.appName;
	browser[2] = navigator.userAgent;
	browser[3] = navigator.platform;
	
	return browser;
}