
Ext.ns('EmreDAGLI');

function bodyOnLoad() {
	if (!(Ext.isIE7 || (navigator.userAgent.indexOf("Firefox")!=-1)))
	{
		alert("If your browser other than Firefox or IE7.0, page may not be rendered properly.");
	}
}


var panelLeft;
var panelCenter;

EmreDAGLI.Homepage = function(){

	
	panelCenter = {
		id: 'panelCenter',
		//region: 'center', // this is what makes this panel into a region within the containing layout
		layout: 'card',
		//margins: '0 0 0 0',
		activeItem: 0,
		border: false,
	
		//style: 'background-color:rgb(255,255,255)',
		items: [{
			xtype:'panel',
			id: 'generalInfoPanel',
			bodyStyle: 'background: url("img/gradient_kisa.gif") repeat-x;',
			boder: false,
			frame:false,
			layout:'border',
			defaults: {
				collapsible: true,
				split: false
				//bodyStyle: 'padding:15px'
			},			
			//width: 400,
			//height:300,
			items:[{
				region:'center',
			    xtype:'panel',
				autoScroll: true,
			    style: 'padding-left:10px;padding-top:10px;',
			    bodyStyle : "background-color: transparent;",
			    border:false,
			    html: '<div class="divText">Yavrumuz 10 Mart 2009 19:30\'da dunyaya geldi. Anne de oglumuz Ozan da saglikli. <br/>Dogum sezeryanla <a href="http://www.kenthospital.com/kenthastanesi/default.asp">Izmir Kent Hastanesinde</a> gerceklesti. <br/>Doguma doktorumuz <a href="http://www.doktorsitesi.com/profile/?id=185930">Ibrahim Yanik</a>\'in izniyle ben de girdim.<br/>Dogum kilomuz 3.370 kg, boy 50 cm.<br/>Fotograflari gormek icin <a href="fotoGalery.aspx?OzanFoto=true"><blink>tiklayin</blink></a>. Videolari gormek icin ise burayi <a href="fotoGalery.aspx?OzanVideo=true"><blink>tiklayin</blink></a>.  <img src="img/nazar.gif"/> <br/><br/>Our little son (Ozan) was born on 10 March 2009. Mother and son are both healty.<br/><a href="fotoGalery.aspx?OzanFoto=true">Click here</a> to see photos. And <a href="fotoGalery.aspx?OzanVideo=true">videos</a>. <br/><br/>I am a computer engineer. <br/>I graduated from Middle East Technical University at 2001.<br/><br/>' +
			        'I worked various projects in different companies.<br/>' +
			        'Main interests are:<br/><br/></div>' +
			        '<div class="divListItem">WEB Development</div>' +
			        '<div class="divSubListItem">ASP.NET, WEB Services, C#, .NET Framework 3.5 (MCPD Certified from 2008)</div>' +
                    '<div class="divSubListItem">Javascript</div>' +
                    '<div class="divSubListItem">CSS, Photoshop</div>' +
  			        '<div class="divSubListItem"><a href="http://www.extjs.com">ExtJS 2.0 Library</a></div>' +
  			        '<div class="divSubListItem">MS SQL Server</div>' +
  			        '<div class="divListItem">Optimization</div>' +
			        '<div class="divSubListItem">Vehicle Routing Problems</div>' +
			        '<div class="divSubListItem">Using Maps Google API for visualization of VRP results.</div>' +
			        '<div class="divSubListItem">Master in The Institute of Applied Mathematics (IAM) Scientific Computation Program in METU (2003-2006)</div>' +
  			        '<div class="divListItem">Modeling and Simulation</div>' +
			        '<div class="divSubListItem">Aircraft Flight Simulations</div>' +
                    '<div class="divSubListItem">Missile Flight Simulations</div>' +
                    '<div class="divSubListItem">Naval Simulations</div>' +
                    '<div class="divSubListItem">Jammers Simulations, Chaff, Flare, Decoys</div>' +
                    '<div class="divSubListItem">MATLAB 7.0</div>' +
                    '<div class="divSubListItem">C, C++, Fortran implemantations</div>' +
			        '<div class="divListItem">Physcis</div>'+
			        '<div class="divSubListItem">I participated The 27th International Physics Olympiad (IPhO) in Oslo-Norway. (Honourable Mention Price)</div>'+
			        '<div class="divSubListItem">Giving cources in TUBITAK Physics Olympiad Camps.</div>'+
			        '<div class="divSubListItem">Minor Program in Physics (METU-Physics 1998-2001).</div>'
			/*'<iframe src ="http://docs.google.com/Doc?id=dg98fcf9_0d88c5df7" width="100%" height="100%">' +
                    '<p>Your browser does not support iframes.</p>'+
                    '</iframe>'
                    */
			},{
				region:'east',
				title:'Links',
				//split:true,
				width:162,
				xtype:'panel',
				bodyStyle : "background-color: transparent;",
				collapsible: true,
				border:false,
				items:[{
					xtype:'panel',
					bodyStyle : "background-color: transparent;",
					border:false,
					html:"<a href='http://www.extjs.com'><img src='img/extjs.gif'/></a><br/><div class='divText'>ExtJS is used in this site.</div><br/>"
				},{
					xtype:'panel',
					bodyStyle : "background-color: transparent;",
					border:false,
					contentEl: 'visitorDiv'
				}]
				//style: 'padding-left:' + (Math.floor(0.45 * Ext.getBody().getViewSize().width)) + 'px;',
				//header:'Visitor',

			},{
				region:'west',
				xtype:'panel',
				bodyStyle : "background-color: transparent;",
				collapsible: false,
				width:320-6-28,
				style:'padding-top:10px;',
				//style: 'padding-left:' + (Math.floor(0.45 * Ext.getBody().getViewSize().width)) + 'px;',
				//header:'Visitor',
				border: false,
				items:[{
				    xtype: 'panel',
				    border: false,
					html:'<img style="height:400px" src="img/emre.jpg" />'
				}]
			}]
		}]
	};

	
	return {

		init: function(){
		    setInterval('blinkIt()',500);
		}
	};
};

