// JavaScript Document

		window.addEvent('domready',function() {


/*
			document.id('iframe1').addEvent('click',function() {
				Ilight = new LightFace.IFrame({ height:400, width:900, url: 'http://davidwalsh.name', title: 'David Walsh Blog 1' }).addButton('Close', function() { this.close(); },'blue').open();
			});

			document.id('iframe2').addEvent('click',function() {
				Ilight = new LightFace.IFrame({ height:400, width:900, url: 'http://davidwalsh.name', title: 'David Walsh Blog 2' }).addButton('Close', function() { this.close(); },'blue').open();
			});
*/
			var lang_param = gup( 'lang' );
			var lang_close = 'Close';
			if(lang_param=='ms')	lang_close = 'Tutup';

			document.id('emailustop').addEvent('click',function() {
				iframe0 = new LightFace.IFrame({ 
								height:360, 
								width:575, 
								url: document.getElementById('c_emailus').innerHTML, 
								title: document.getElementById('t_emailus').innerHTML }
						).addButton(lang_close, function() { this.close(); },'blue').open();
			});

			document.id('callus').addEvent('click',function() {
				iframe1 = new LightFace.IFrame({ 
								height:360, 
								width:575, 
								url: document.getElementById('c_callus').innerHTML, 
								title: document.getElementById('t_callus').innerHTML }
						).addButton(lang_close, function() { this.close(); },'blue').open();
			});
			
			document.id('findus').addEvent('click',function() {
				iframe2 = new LightFace.IFrame({ 
								height:510, 
								width:575, 
								url: document.getElementById('c_findus').innerHTML, 
								title: document.getElementById('t_findus').innerHTML }
						).addButton(lang_close, function() { this.close(); },'blue').open();
			});
			
			document.id('emailus').addEvent('click',function() {
				iframe3 = new LightFace.IFrame({ 
								height:360, 
								width:575, 
								url: document.getElementById('c_emailus').innerHTML, 
								title: document.getElementById('t_emailus').innerHTML }
						).addButton(lang_close, function() { this.close(); },'blue').open();
			});
			
		});


function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}
