/**
* 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.Header');

var image_path = "";
var links = "";

if (Intranet.request.page == 'Login' || Intranet.request.page == 'CreativeView') {
	image_path = "images/";
}
else {
	image_path = "../images/";
//	links = '<div style= "position:absolute; top:50px; right: 5px; color:white; "><br><a class="x-grid-empty" style= " color:white;" href="contact_adviva.php">Contact</a>&nbsp;|&nbsp;<a class="x-grid-empty" style= " color:white;" href="javascript: ' +
//			'if(confirm(\'This will close the current browser window, continue?\')) { window.close(); }	'+
//			'"><u>Logout</u></a></div>';
}

Smart.Header = Ext.extend(Ext.Panel, {
//	autoHeight:true,
	height: 98,
	id:    'AdvertiserSmartHeader',
	region: 'north',
//	layout:	'absolute',
//	style:	'z-index:50000',
//	layoutConfig: {
//		extraCls: 'z-index:15000'
//	},
//	applyTo : 'logout',
//	x:	0,
//	y:	0,
	defaults: {bodyStyle:'z-index:50000'},
	floating: true,
	shim: true,
	html:
		'<div style="float: left; position: absolute; top: 5px; left:5px;" ><img src="'+image_path+'specific_header.gif"/></div>'+
		'<div style="float: right; position: absolute; top: 5px; right:5px; "><img src="'+image_path+'sm_smart.gif"/></div><br><br>'+
		
		'<div style="background:url('+image_path+'bg_people.gif) repeat-x; height:56px; z-index:10;">'+
	
		links+
			
	//		'Ext.Msg.confirm(\'Logout\', \'This will close the current browser window, continue?\', function(btn, text){'+
	//			'if (btn == \'yes\'){'+
	//				'alert(\'close\');'+
	//				'parent.close();'+
	//			'}'+
	//		'},this);'+

				
	
		'</div>'

});

