/**
* The initial login / home page
*/

// Declare the namespace - this define the scope of the visiblity of these variables, similar to OOP inheirtance
Ext.namespace('Smart.Footer');

var nid = Intranet.request.nid;

if (nid == 4){
	str_html = 	
		'<div>'+
		'<div  style="float: left;" class="x-grid-empty">©' + new Date().format('Y') + ' Specific Media Inc. </div>'+
		'</div>';
}
else{
	str_html = 	
		'<div>'+
		'<div  style="float: left;" class="x-grid-empty">©' + new Date().format('Y') + ' Specific Media Inc. </div>'+	
		'<div  style="float: right;" ><a class="x-grid-empty" href="terms.pdf" target="_blank">Terms & conditions</a>&nbsp;|&nbsp;<a class="x-grid-empty" href="privacy.php" >Privacy policy</a></div>'+
		'</div>';
}

Smart.Footer = Ext.extend(Ext.Panel, {
	id:    'AdvertiserSmartFooter',
	region: 'south',
	height: 25,
	html: str_html

});
