﻿$(document).ready(function(){ 
	
		//alert("MSIE : " + $.browser.msie + " - Version: " + $.browser.version);

		//var triggers = $('<div id="overlayPopup" style="background-color:#fff; display:none; overflow:hidden; width:667px; height: 300px; text-align:left; border:1px solid #333; opacity:1; -moz-border-radius:6px; -webkit-border-radius:6px; -moz-box-shadow: 0 0 30px #ccc; -webkit-box-shadow: 0 0 30px #ccc;"><a href="http://www.ozelturkkoleji.com/elt/elt9.html" style="float: left; display: block; width: 677px; height: 300px; left:0px; top:-428px; z-index:100; background: transparent url(/resources/images/popup.jpg) no-repeat scroll top left; text-decoration: none;">&nbsp;</a><a href="http://www.ozelturkkoleji.com/elt/elt9.html" style="display: block; width: 667px; height: 300px; background: transparent url(/resources/images/popup.jpg) no-repeat scroll top right; float:left; text-decoration: none;">&nbsp;</a><div class=clear/></div>')
		//var triggers = $('<div id="overlayPopup" style="background-color:#fff; display:none; overflow:hidden; width:601px; height: 401px; padding:15px; text-align:left; border:2px solid #333; opacity:1; -moz-border-radius:6px; -webkit-border-radius:6px;border-radius:6px; -moz-box-shadow: 0 0 50px #ccc;box-shadow: 0 0 50px #ccc; -webkit-box-shadow: 0 0 50px #ccc;"><!--<a href="http://www.ozelturkkoleji.com/kurumsal/sayfalar/duyurudetay.aspx?kim=22" style="display: block; width: 500px; height: 500px; background: transparent url(/popup/murat_dokur.jpg) no-repeat scroll top left; text-decoration: none;">&nbsp;</a><div class=clear/></div>')
	
	    //var triggers = $('<div id="overlayPopup" style="background-color:#ABABA9; display:none; overflow:hidden; width:740px; height: 541px; padding:15px; text-align:left; border:2px solid #333; opacity:1; -moz-border-radius:6px; -webkit-border-radius:6px;border-radius:6px; -moz-box-shadow: 0 0 50px #ccc;box-shadow: 0 0 50px #ccc; -webkit-box-shadow: 0 0 50px #ccc;"><a style="display: block; width: 740px; height: 541px; background: transparent url(/popup/ogretmenler.jpg) no-repeat scroll top left; text-decoration: none;">&nbsp;</a><div class=clear/></div>')

			//.click(function(){
			//	triggers.eq(0).overlay().close();
			//	window.location = 'http://www.ozelturkkoleji.com/kurumsal/sayfalar/duyurudetay.aspx?kim=29';
			//})
			
			.appendTo(document.body);
			
		//triggers.children("a").css("opacity", 0.1);
	
		if($.browser.msie && $.browser.version < 7){
			$("<table id=dBodyTable width=900><tr><td id=dBodyTableTD1 width=240></td><td id=dBodyTableTD2 height=660></td></tr></table>")
				.appendTo("#dContainer #dBody");
			$("#dContainer #dBody #dBodyLeft").appendTo("#dContainer #dBody #dBodyTable #dBodyTableTD1");
			$("#dContainer #dBody #dBodyRight").appendTo("#dContainer #dBody #dBodyTable #dBodyTableTD2");
			$("#dContainer #dBody div[class=clear]").remove();	
		}
		
		if(window.location.pathname.substring(0,10) == '/kurumsal/'){
			$('#dContainer #dBody #dBodyLeft .cLeftMenuHeader')
				.css({cursor:'pointer'})
				.attr("title", "Kurumsal Sayfası")
				.click(function(){window.location = '/kurumsal/';});
		}
		else if(window.location.pathname.substring(0,7) == '/basin/'){
			$('#dContainer #dBody #dBodyLeft .cLeftMenuHeader')
				.css({cursor:'pointer'})
				.attr("title", "Basında İTK")
				.click(function(){window.location = '/basin/';});
		}
		$("#overlayPopup").overlay({

					// custom top position
					top: 100,
				
					// some mask tweaks suitable for facebox-looking dialogs
					mask: {
				
						// you might also consider a "transparent" color for the mask
						color: '#000',
				
						// load mask a little faster
						loadSpeed: 200,
				
						// very transparent
						opacity: 0.5
					},
				
					// disable this for modal dialog-type of overlays
					closeOnClick: true,
				
					// load it immediately after the construction
					load: true
				
				});		
	});

