﻿// JavaScript Document
var lastSSSID=0;

function openTab(id) {
	var cont = false;
	{
		document.getElementById("tabData").innerHTML = document.getElementById("tabData" + id).innerHTML;
		cont = true;
	}
	for (var i=1;i<=10;i++) {
		if (document.getElementById('option'+i)) {
			document.getElementById('option'+i).style.backgroundPosition = '0% 0px';
			document.getElementById('option'+i).getElementsByTagName('span')[0].style.backgroundPosition = '100% 0px';
		}
	}
	if (cont) {
		document.getElementById('option'+id).style.backgroundPosition = '0% -42px';
		document.getElementById('option'+id).getElementsByTagName('span')[0].style.backgroundPosition = '100% -42px';
	}
}

function flash(w,h,u,t) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+w+"' height='"+h+"'><param name='movie' value='"+u+"'><param name='quality' value='high'>");
	if(t=="y"){
		document.write("<param name='wmode' value='transparent'>");
	}
	document.write("<embed src='"+u+"' quality='high' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed></object>");	
}

function trFix (string) {
	string = string.replace(/ý/g,'ı');
	string = string.replace(/þ/g,'ş');
	string = string.replace(/ð/g,'ğ');	
	return string;
}

function sssOpen(ID) {
	if (lastSSSID) {
		document.getElementById('sss_cevap_'+lastSSSID).style.display = 'none'; 
		document.getElementById('sss_image_'+lastSSSID).src='images/sss_close.gif';
	}
	if (lastSSSID != ID) {
		document.getElementById('sss_cevap_'+ID).style.display = 'block';
		document.getElementById('sss_image_'+ID).src = 'images/sss_open.gif';
		lastSSSID=ID;
	}
	else lastSSSID=0;
	
}

function fc(obj) {
	obj.innerHTML = obj.innerHTML + '<input type="submit" style="display:none" id="sb">';
	document.getElementById('sb').click();
}

function pencereAc(url,en,boy) {
	window.open(url,null,"height="+boy+",width="+en+",status=no,toolbar=no,menubar=no,location=no");
}