// akın ...

var renktercihno = -1;
var ieversiyon = 0; 

function myCssText(StyleSheet) {
	var text = '';
	if (typeof (StyleSheet.cssText) == 'string') {
		return StyleSheet.cssText;
	} else {
		for(var i = 0; i < StyleSheet.cssRules.length; i++) {
			text += StyleSheet.cssRules[i].cssText;
		}
	}
	return text;
}
// eg


	//var cssfile = (screen.width => 800)? "normal.css" :"screen800.css"; 
	//var cssfile = request.QueryString("cssrenk");
	//document.write("<link href="+cssfile+"type=""text/css"" rel=""stylesheet"">");
	
	
function gostergizle(elementid,baslikmi){
	if (baslikmi==1){
			kutulardegistirildi = true;
			var spanlar = document.getElementById(elementid).parentNode.getElementsByTagName("span");
			//var resim = document.getElementById(elementid).parentNode.firstChild.getElementsByTagName("img");
			var resim = spanlar[0].getElementsByTagName("img");
			// check to see if this is IE version 7 or lower
			//var brsVersion = 0;
			//if (parseInt(window.navigator.appVersion.charAt(0), 10) > 7 && window.navigator.userAgent.indexOf("MSIE") > -1) {
				//brsVersion =1;
				//}
			}
			
	
	if (document.getElementById(elementid).style.display == 'none'){ // modac kullanmadan önceki if hali
	//if (document.getElementById(elementid).parentNode.getAttribute("modac")="k"){
			document.getElementById(elementid).style.display = '';
			// mod_baslik lar (modül başlığı ve branş listesi span leri) gizlemede yukarı kayıyordu, düzeltmek için bu değerleri değiştirdim. araya başka child girerse rakamlar değişecek ...
			
			if (baslikmi==1){
					if (!(document.styleSheets[4].cssRules)) {           // mozilla-ie değişiklikler için kullandığım stylesheeti baz aldım, başkası da olurdu .. burası "not" olduğu için mozilla olmayan manasında...
						//alert(ieversiyon);
						
						if (ieversiyon == 8) {}
						else
							{
								spanlar[0].style.marginTop ="-32px"; 
								spanlar[1].style.marginTop ="-32px";
							}
						
						//spanlar[0].style.background="url(images/close.png) left no-repeat";
						
						}
					document.getElementById(elementid).parentNode.style.marginBottom="5px"; // kutu kapanınca ara çok kalıyordu...
					document.getElementById(elementid).parentNode.setAttribute("modac","a");
					//alert(document.getElementById(elementid).parentNode.getAttribute("modac"));
					resim[0].src="images/close.png";
					
			}
		
		} 
	else {
			document.getElementById(elementid).style.display = 'none';
			
			//alert(ieversiyon);

			if (baslikmi==1){
				if (!(document.styleSheets[4].cssRules) ) {           // mozilla-ie değişiklikler için kullandığım stylesheeti baz aldım, başkası da olurdu .. burası "not" olduğu için mozilla olmayan manasında...
						
						if (ieversiyon == 8) {}
						else
							{
								spanlar[0].style.marginTop ="0";
								spanlar[1].style.marginTop ="0";
							}
						//spanlar[0].style.background="url(images/open.png) left no-repeat";
					}
					
				if (document.getElementById("banner"+document.getElementById(elementid).parentNode.id)==null){
					document.getElementById(elementid).parentNode.style.marginBottom="-25px"; // kutu kapanınca ara çok kalıyordu...
					}
				document.getElementById(elementid).parentNode.setAttribute("modac","k");
				//alert(document.getElementById(elementid).parentNode.getAttribute("modac"));
				resim[0].src="images/open.png";
						
			}
		}
	
} 


function modulsecreset() {
	CollapsiblePanel1.close(); 
	return true;
	}

function branssecreset(branslistesi) {
	gostergizle(branslistesi,0);
	return true;
	}
	
	
function getViewportHeight() {
	if (window.innerHeight!=window.undefined) return window.innerHeight;
	//if (document.compatMode=='CSS1Compat') return document.documentElement.clientHeight;
	if (document.body) return document.body.clientHeight; 

	return window.undefined; 
}
function getViewportWidth() {
	var offset = 17;
	var width = null;
	if (window.innerWidth!=window.undefined) return window.innerWidth; 
	//if (document.compatMode=='CSS1Compat') return document.documentElement.clientWidth; 
	if (document.body) return document.body.clientWidth; 
}

function ikazuyeol(){
	var divseffaf = document.getElementById("seffafdiv");
	var divicerik = document.getElementById("enust");
	
	if (document.getElementsByName("e_mail").length>1){
			
			divseffaf.style.width = getViewportWidth()+"px";
			divseffaf.style.height = getViewportHeight()+"px";
		
			divicerik.style.left=(getViewportWidth()-300)/2+"px";
			
			divseffaf.style.zIndex=1;
			divseffaf.style.display="block";
			
			divicerik.style.zIndex=2;
			divicerik.style.display="block";
			
			return false;
		}
	
	else {
			divseffaf.style.zIndex=-1;
			divseffaf.style.display="none";
			
			divicerik.style.zIndex=-2;
			divicerik.style.display="none";
			
			return true;
	}
	}
	
function ikazuyeoliptal(){
	var divseffaf = document.getElementById("seffafdiv");
	var divicerik = document.getElementById("enust");
	
	
	divseffaf.style.zIndex=-1;
	divseffaf.style.display="none";
	
	divicerik.style.zIndex=-2;
	divicerik.style.display="none";
	}
	
function cokprofilgoster(){
	var divseffaf = document.getElementById("cokprofilseffafdiv");
	//var divicerik = document.getElementById("cokprofilenust");
	var divicerik = document.getElementById("ekle");
	var genislik = parseInt(divicerik.style.width.substr(0,divicerik.style.width.length-2));
	var yukseklik = parseInt(divicerik.style.height.substr(0,divicerik.style.height.length-2));
	
	divseffaf.style.width = getViewportWidth()+"px";
	divseffaf.style.height = getViewportHeight()+"px";
	
	divicerik.style.left=((document.documentElement.clientWidth-genislik)/2+"px");
	divicerik.style.top=((document.documentElement.clientHeight-yukseklik)/2+"px");
	
	divseffaf.style.zIndex=1;
	divseffaf.style.display="block";
	
	divicerik.style.zIndex=2;
	divicerik.style.display="block";
	}
	
function cokprofiliptal(){
	var divseffaf = document.getElementById("cokprofilseffafdiv");
	//var divicerik = document.getElementById("cokprofilenust");
	var divicerik = document.getElementById("ekle");
	
	
	divseffaf.style.zIndex=-1;
	divseffaf.style.display="none";
	
	divicerik.style.zIndex=-2;
	divicerik.style.display="none";
	}
	
	
	
function fotogoster(resimci,foto){
	if (foto!=""){
		document.getElementById(resimci).src="images/content_th/"+foto;
	}
	}
	
function cssgoster (kac){
	if (renktercihno != kac) {
		renktercihno = kac;
	if (kutulardegistirildi!=null) 
		{
			document.getElementById("inputrenkno").value=kac;
			kutulardegistirildi = true;
		}
	else {
			kutulardegistirildi = false;
			
		}
	
	var stil = document.styleSheets[4];
	var renkadi 			=	["gri",		"mavi",		"mor",		"pembe",	"turuncu",	"yesil"];
	var renkterciha 		=	["#666666",	"#006699",	"#935e9f",	"#e25981",	"#ff9000",	"#086908"];
	var renktercihahover 	= 	"#999999";
	var renktercih 			=	["#7a7a7a",	"#ffffff",	"#ffffff",	"#ffffff",	"#ffffff",	"#ffffff"];
	var renkterciharkaplan 	=	["#f7f8f0",	"#edf8fc",	"#f5eef8",	"#fdf5fb",	"#fcf9e7",	"#f7fec6"];
	var renktercihkenar 	=	["#d3d3d3",	"#3390c6",	"#60246e",	"#d01c4e",	"#ff9700",	"#74960c"];
	var renktercihcontentbg =	["#e5e5e5",	"#cae1ea",	"#e2d5e7",	"#f6d9e1",	"#f2e4c9",	"#d9e29e"];
	
	if (stil.cssRules) {           // mozilla
		
			stil.deleteRule(0); 
			stil.insertRule('a:link{color:'+renkterciha[kac]+';}',0);
				
			stil.deleteRule(1); 
			stil.insertRule('a:active {color:'+renkterciha[kac]+';}',1);
			
			stil.deleteRule(2); 
			stil.insertRule('a:visited {color:'+renkterciha[kac]+';}',2);
			
			
			stil.deleteRule(3); 
			stil.insertRule('.mod_baslik {color:'+renktercih[kac]+';}',3);
	
			stil.deleteRule(4); 
			stil.insertRule('.modul_mid {background-color:'+renkterciharkaplan[kac]+';border-right-color:'+renktercihkenar[kac]+';border-left-color:'+renktercihkenar[kac]+';}',4);
	
			stil.deleteRule(5); 
			stil.insertRule('.modul_bottom {background-image: url(images/'+renkadi[kac]+'_css/modul_bottom.jpg);}',5);
	
			stil.deleteRule(6); 
			stil.insertRule('.modul_mid_branslar {background-color:'+renkterciharkaplan[kac]+';border-right-color:'+renktercihkenar[kac]+';border-left-color:'+renktercihkenar[kac]+';}',6);
	
			stil.deleteRule(7); 
			stil.insertRule('.modul_mid_slideshow {background-color:'+renkterciharkaplan[kac]+';border-right-color:'+renktercihkenar[kac]+';border-left-color:'+renktercihkenar[kac]+';}',7);
	
			stil.deleteRule(8); 
			stil.insertRule('.home_top_modul_top {background-image: url(images/'+renkadi[kac]+'_css/home_top_modul_top.jpg);}',8);
												  
	
			stil.deleteRule(9); 
			stil.insertRule('.home_top_modul_mid {background-color:'+renkterciharkaplan[kac]+';border-right-color:'+renktercihkenar[kac]+';border-left-color:'+renktercihkenar[kac]+';}',9);
	
			stil.deleteRule(10); 
			stil.insertRule('.home_top_modul_bottom {background-image: url(images/'+renkadi[kac]+'_css/home_top_modul_bottom.jpg);}',10);
	
			stil.deleteRule(11); 
			stil.insertRule('.DragBox {background: url(images/'+renkadi[kac]+'_css/modul_top.jpg) no-repeat top left;}',11);
			
			stil.deleteRule(12); 
			stil.insertRule('.OverDragBox {background: url(images/'+renkadi[kac]+'_css/modul_top.jpg) no-repeat top left;}',12);
			
			stil.deleteRule(13); 
			stil.insertRule('.DragDragBox {background: url(images/'+renkadi[kac]+'_css/modul_top.jpg) no-repeat top left;}',13);
			
			stil.deleteRule(14); 
			stil.insertRule('.modul_baslik {color:'+renktercih[kac]+';}',14);
			
			stil.deleteRule(15); 
			stil.insertRule('.modul_top {background: url(images/'+renkadi[kac]+'_css/modul_top.jpg) no-repeat top left;}',15);
			
			stil.deleteRule(16); 
			stil.insertRule('.content_home_link {background-color:'+renktercihcontentbg[kac]+';padding: 0px;height: 106px;width: 319px;}',16);
			stil.deleteRule(17); 
			stil.insertRule('.modul_baslik a {color:'+renktercih[kac]+';}',17);
			
	
		} 
	else {                             // IE 
			
			//stil.addRule("a:link, a:active, a:visited ","color:"+renkterciha[kac]+";",0); çok selector verince ie hata veriyor, ayırmak lazım ...
			
			stil.removeRule(0); 
			stil.addRule("a:link","color:"+renkterciha[kac]+";",0); 
			
			stil.removeRule(1); 
			stil.addRule("a:active","color:"+renkterciha[kac]+";",1); 
			
			stil.removeRule(2); 
			stil.addRule("a:visited","color:"+renkterciha[kac]+";",2); 
			
			stil.removeRule(3); 
			stil.addRule(".mod_baslik","color:"+renktercih[kac]+";",3);
			
			
			stil.removeRule(4); 
			stil.addRule(".modul_mid ","background-color:"+renkterciharkaplan[kac]+";border-right-color:"+renktercihkenar[kac]+";border-left-color:"+renktercihkenar[kac]+";",4);
	
			stil.removeRule(5); 
			stil.addRule(".modul_bottom ","background-image: url(images/"+renkadi[kac]+"_css/modul_bottom.jpg);",5);
	
			stil.removeRule(6); 
			stil.addRule(".modul_mid_branslar ","background-color:"+renkterciharkaplan[kac]+";border-right-color:"+renktercihkenar[kac]+";border-left-color:"+renktercihkenar[kac]+";",6);
	
			stil.removeRule(7); 
			stil.addRule(".modul_mid_slideshow ","background-color:"+renkterciharkaplan[kac]+";border-right-color:"+renktercihkenar[kac]+";border-left-color:"+renktercihkenar[kac]+";",7);
	
			stil.removeRule(8); 
			stil.addRule(".home_top_modul_top ","background-image: url(images/"+renkadi[kac]+"_css/home_top_modul_top.jpg);",8);
	
			stil.removeRule(9); 
			stil.addRule(".home_top_modul_mid ","background-color:"+renkterciharkaplan[kac]+";border-right-color:"+renktercihkenar[kac]+";border-left-color:"+renktercihkenar[kac]+";",9);
	
			stil.removeRule(10); 
			stil.addRule(".home_top_modul_bottom ","background-image: url(images/"+renkadi[kac]+"_css/home_top_modul_bottom.jpg);",10);
	
			stil.removeRule(11); 
			stil.addRule(".DragBox ","background: url(images/"+renkadi[kac]+"_css/modul_top.jpg) no-repeat top left;",11);
			
			stil.removeRule(12); 
			stil.addRule(".OverDragBox ","background: url(images/"+renkadi[kac]+"_css/modul_top.jpg) no-repeat top left;",12);
			
			stil.removeRule(13); 
			stil.addRule(".DragDragBox ","background: url(images/"+renkadi[kac]+"_css/modul_top.jpg) no-repeat top left;",13);
			
			stil.removeRule(14); 
			stil.addRule(".modul_baslik","color:"+renktercih[kac]+";",14);
			
			stil.removeRule(15); 
			stil.addRule(".modul_top","background: url(images/"+renkadi[kac]+"_css/modul_top.jpg) no-repeat top left;",15);	
			
			stil.removeRule(16); 
			stil.addRule(".content_home_link", "background-color:"+renktercihcontentbg[kac]+";padding: 0px;height: 106px;width: 319px;",16);
			stil.removeRule(17); 
			stil.addRule(".modul_baslik a","color:"+renktercih[kac]+";",17);

		}
	}
	else {
		//alert("renk tercihi seçilen renge eşit ...");
		}
}

function cssgostericsayfa (kac){
	if (!kac){kac=0;}
	
	var stil = document.styleSheets[2];
	var renkadi 			=	["gri",		"mavi",		"mor",		"pembe",	"turuncu",	"yesil"];
	var renkterciha 		=	["#666666",	"#006699",	"#935e9f",	"#e25981",	"#ff9000",	"#086908"];
	var renktercihahover 	= 	"#999999";
	var renktercih 			=	["#7a7a7a",	"#ffffff",	"#ffffff",	"#ffffff",	"#ffffff",	"#ffffff"];
	var renkterciharkaplan 	=	["#f7f8f0",	"#edf8fc",	"#f5eef8",	"#fdf5fb",	"#fcf9e7",	"#f7fec6"];
	var renktercihkenar 	=	["#d3d3d3",	"#3390c6",	"#60246e",	"#d01c4e",	"#ff9700",	"#74960c"];
	var renktercihcontentbg =	["#e5e5e5",	"#cae1ea",	"#e2d5e7",	"#f6d9e1",	"#f2e4c9",	"#d9e29e"];
	
	//a:link{}
	//a:active{}
	//a:visited {}

	//.inner_modul_top {}
	//.inner_modul_mid {}
	//.inner_modul_bottom {}
	//.inner_modul_mid_top {}
	//.inner_modul_mid_mid {}
	//.inner_modul_mid_bottom {}

	//.baslik {}
	
	if (stil.cssRules) {           // mozilla
		
			//alert(stil.cssRules[0].selectorText.toLowerCase());
			
			stil.deleteRule(0); 
			stil.insertRule('a:link{color:'+renkterciha[kac]+';}',0);
				
			stil.deleteRule(1); 
			stil.insertRule('a:active {color:'+renkterciha[kac]+';}',1);
			
			stil.deleteRule(2); 
			stil.insertRule('a:visited {color:'+renkterciha[kac]+';}',2);
			
			stil.deleteRule(3); 
			stil.insertRule('.inner_modul_top {background: url(images/'+renkadi[kac]+'_css/inner_modul_top.jpg) no-repeat top left;}',3);
			
			stil.deleteRule(4); 
			stil.insertRule('.inner_modul_mid {background-color:'+renkterciharkaplan[kac]+';border-right-color:'+renktercihkenar[kac]+';border-left-color:'+renktercihkenar[kac]+';}',4);
	
			stil.deleteRule(5); 
			stil.insertRule('.inner_modul_bottom {background-image: url(images/'+renkadi[kac]+'_css/inner_modul_bottom.jpg);}',5);
	
			stil.deleteRule(6); 
			stil.insertRule('.inner_modul_mid_top {background: url(images/'+renkadi[kac]+'_css/inner_modul_mid_top.jpg) no-repeat top left;}',6);
			
			stil.deleteRule(7); 
			stil.insertRule('.inner_modul_mid_mid {background-color:'+renkterciharkaplan[kac]+';border-right-color:'+renktercihkenar[kac]+';border-left-color:'+renktercihkenar[kac]+';}',7);
	
			stil.deleteRule(8); 
			stil.insertRule('.inner_modul_mid_bottom {background-image: url(images/'+renkadi[kac]+'_css/inner_modul_mid_bottom.jpg);}',8);
	
			stil.deleteRule(9); 
			stil.insertRule('.modul_baslik {color:'+renktercih[kac]+';}',9);
			
			stil.deleteRule(10); 
			stil.insertRule('.inner_modul_midlarge_top {background: url(images/'+renkadi[kac]+'_css/inner_modul_midlarge_top.jpg) no-repeat top left;}',10);
			
			
			stil.deleteRule(11); 
			stil.insertRule('.inner_modul_midlarge_bottom {background-image: url(images/'+renkadi[kac]+'_css/inner_modul_midlarge_bottom.jpg);}',11);
			
			//stil.deleteRule(10); 
//			stil.insertRule('.baslik {color:'+renktercih[kac]+';}',10);
	
			
			
	
		} 
	else {                             // IE 
			
			//stil.addRule("a:link, a:active, a:visited ","color:"+renkterciha[kac]+";",0); çok selector verince ie hata veriyor, ayırmak lazım ...
			
			stil.removeRule(0); 
			stil.addRule('a:link','color:'+renkterciha[kac]+';',0); 
				
			stil.removeRule(1); 
			stil.addRule('a:active','color:'+renkterciha[kac]+';',1);
			
			stil.removeRule(2); 
			stil.addRule('a:visited','color:'+renkterciha[kac]+';',2);
			
			stil.removeRule(3); 
			stil.addRule('.inner_modul_top','background: url(images/'+renkadi[kac]+'_css/inner_modul_top.jpg) no-repeat top left;',3);
			
			stil.removeRule(4); 
			stil.addRule('.inner_modul_mid','background-color:'+renkterciharkaplan[kac]+';border-right-color:'+renktercihkenar[kac]+';border-left-color:'+renktercihkenar[kac]+';',4);
	
			stil.removeRule(5); 
			stil.addRule('.inner_modul_bottom','background-image: url(images/'+renkadi[kac]+'_css/inner_modul_bottom.jpg);',5);
	
			stil.removeRule(6); 
			stil.addRule('.inner_modul_mid_top','background: url(images/'+renkadi[kac]+'_css/inner_modul_mid_top.jpg) no-repeat top left;',6);
			
			stil.removeRule(7); 
			stil.addRule('.inner_modul_mid_mid','background-color:'+renkterciharkaplan[kac]+';border-right-color:'+renktercihkenar[kac]+';border-left-color:'+renktercihkenar[kac]+';',7);
	
			stil.removeRule(8); 
			stil.addRule('.inner_modul_mid_bottom','background-image: url(images/'+renkadi[kac]+'_css/inner_modul_mid_bottom.jpg);',8);
	
			stil.removeRule(9); 
			stil.addRule('.modul_baslik','color:'+renktercih[kac]+';',9);
			
			stil.removeRule(10); 
			stil.addRule('.inner_modul_midlarge_top','background: url(images/'+renkadi[kac]+'_css/inner_modul_midlarge_top.jpg) no-repeat top left;',10);
			
			stil.removeRule(11); 
			stil.addRule('.inner_modul_midlarge_bottom','background-image: url(images/'+renkadi[kac]+'_css/inner_modul_midlarge_bottom.jpg);',11);
			
			//stil.removeRule(10); 
//			stil.addRule('.baslik','color:'+renktercih[kac]+';',10);
			
			
		}
	
}

//coklu profille ilgili
function ikazet (numero,profiladi){
	
	if (profiladi!=""){profiladi="&proad="+profiladi}
	document.form_kipro.tur.value=numero;
	//document.form_kipro.submit();
	//alert("ki_pro_islem.asp?tur="+document.form_kipro.tur.value+profiladi)
	ajaxFunctioncokluprofil("ki_pro_islem.asp?tur="+document.form_kipro.tur.value+profiladi+"&profno="+profilno);
	//alert("ki_pro_islem.asp?tur="+document.form_kipro.tur.value+profiladi+"&profno="+profilno);
	cokprofilgoster();
	
	}

function ajaxFunctioncokluprofil(adresvedegerler){
	//alert(adresvedegerler)
	var xmlHttp;
	try  {  // Firefox, Opera 8.0+, Safari  
			xmlHttp=new XMLHttpRequest();  
		}
	catch (e)  {  // Internet Explorer  
		try {
				xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
			}
		catch (e) {    
			try {
					xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      
				}
			catch (e){      
						alert("Ýnternet gezgininiz AJAX desteklemiyor, güncelleyin veya baþka bir program deneyin!");      
						return false;      
					}    
			}  
	}  
	
	
	xmlHttp.onreadystatechange=function()
		{
			// serverdan bilgi gelseydi burada alacak ve iþleyecektik ...
			if(xmlHttp.readyState==4)
				{
					
					document.getElementById("ekle").innerHTML="<br />"+document.form_kipro.tur.value+"<br />"+xmlHttp.responseText;
					document.profilislemiyap.profnosu.value=profilno;
					//alert(xmlHttp.responseText); //içeriði göstermiyoruz :)
				}

		}
		
	xmlHttp.open("POST",adresvedegerler,true);
	
	xmlHttp.send("");
}
function islemayarla(kac){
	document.profilislemiyap.islem.value=kac;
	return true;
	}
	
/*
 * Author: Rob Reid
 * CreateDate: 20-Mar-09
 * Description: Little helper function to return details about IE 8 and its various compatibility settings either use as it is
 * or incorporate into a browser object. Remember browser sniffing is not the best way to detect user-settings as spoofing is
 * very common so use with caution.
*/
function IEVersion(){
	var _n=navigator,_w=window,_d=document;
	var version="NA";
	var na=_n.userAgent;
	var ieDocMode="NA";
	var ie8BrowserMode="NA";
	// Look for msie and make sure its not opera in disguise
	if(/msie/i.test(na) && (!_w.opera)){
		// also check for spoofers by checking known IE objects
		if(_w.attachEvent && _w.ActiveXObject){		
			// Get version displayed in UA although if its IE 8 running in 7 or compat mode it will appear as 7
			version = (na.match( /.+ie\s([\d.]+)/i ) || [])[1];
			// Its IE 8 pretending to be IE 7 or in compat mode
			
			ieversiyon = parseInt(version);
			//alert(ieversiyon);
			if(parseInt(version)==7){				
				// documentMode is only supported in IE 8 so we know if its here its really IE 8
				if(_d.documentMode){
					version = 8; //reset? change if you need to
					// IE in Compat mode will mention Trident in the useragent
					if(/trident\/\d/i.test(na)){
						ie8BrowserMode = "Compat Mode";
					// if it doesn't then its running in IE 7 mode
					}else{
						ie8BrowserMode = "IE 7 Mode";
					}
				}
			}else if(parseInt(version)==8){
				// IE 8 will always have documentMode available
				if(_d.documentMode){ ie8BrowserMode = "IE 8 Mode";}
			}
			// If we are in IE 8 (any mode) or previous versions of IE we check for the documentMode or compatMode for pre 8 versions			
			ieDocMode = (_d.documentMode) ? _d.documentMode : (_d.compatMode && _d.compatMode=="CSS1Compat") ? 7 : 5;//default to quirks mode IE5				   			
		}
	}
	//ieversiyon = version; 7 ye uygun davranıyorsan sorun yok, 8 olarak davranıyorsa bizim sorunları çözmemiz lazım, o yüzden burda değil yukarda atama yapıyoruz değişkene ...
	//return {
		//"UserAgent" : na,
		//"Version" : version,
		//"BrowserMode" : ie8BrowserMode,
		//"DocMode": ieDocMode
	//}			
}

