function resimAc(src){
	var buyuk = src.replace('icerik/','icerik/buyuk/');
		buyuk = buyuk.replace('.gif','.jpg');
	openPictureWindow(buyuk,'RMK Marine');
}
	
	
function openPictureWindow(resimURL,resimALT) {
		newWindow = window.open("","newWindow","width=80,height=80,resizable=1,scrollbars=yes");
		newWindow.document.open();
		newWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//TR" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
		newWindow.document.write('<html xmlns="http://www.w3.org/1999/xhtml">');
		newWindow.document.write('<head><script language="javascript">function boyutlandir(alfa){genislik=eval(alfa.offsetWidth)+80;yukseklik=eval(alfa.offsetHeight)+200;if(yukseklik-200>eval(alfa.offsetHeight)){yukseklik = eval(alfa.offsetHeight-200)}else{yukseklik = eval(alfa.offsetHeight+210)} window.resizeTo(genislik+10,yukseklik);');
		newWindow.document.write('}</' + 'script>');
		newWindow.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />');
		newWindow.document.write('<title>RMK Marine </title>');
		newWindow.document.write('<style>');
		newWindow.document.write('body{margin:0px;padding:0px;width:100%;height:auto;background:#379CCC url(/marine/images/popup/arkaplan.gif) left top repeat-x ;}');
		newWindow.document.write('div#top{margin:0px;height:79px;padding-top:7px;width:100%;display:block;background:url(/marine/images/popup/logo_back.gif) left top repeat-x;}');
		newWindow.document.write('div#kapat{position:absolute;top:31px;right:13px;display:block;}');
		newWindow.document.write('div#logo{margin-left:14px;background:url(/marine/images/popup/logo.gif) left top no-repeat;width:147px;display:block;height:72px;}');
		newWindow.document.write('#picDiv{background:#fff;display:block;padding:5px 7px 5px 5px;margin:0 20px;width:auto;border:solid 3px #eee;}	');
		newWindow.document.write('</style>');
		newWindow.document.write('</head>');
		newWindow.document.write('<body>');
		newWindow.document.write('	<div id="top">');
		newWindow.document.write('    	<div id="logo"></div>');
		newWindow.document.write('        <div id="kapat"><a href="javascript:;" onclick="self.close();"><img src="/marine/images/popup/btn_kapat.gif" alt="" border="0"/></a></div>');
		newWindow.document.write('    </div>');
		newWindow.document.write('				<table id="picDiv"><tr><td>');
		newWindow.document.write('        	<img src="' + resimURL + '" id="resim" alt="'+ resimALT +'"   onload="boyutlandir(resim)" />');
		newWindow.document.write('        </td></tr></table>');
		newWindow.document.write('</body>');
		newWindow.document.write('</html>');
		newWindow.document.close();
		newWindow.focus();
	}
	
function footerFix()
{
	baskiBoyu = parseInt(document.body.offsetHeight);
	divBoyu = document.getElementById('alt').offsetHeight;
	divUst = document.getElementById('ust').offsetHeight;
	divOrta = document.getElementById('content').offsetHeight;
	Height = parseInt(divUst+divOrta+divBoyu);
	
	var sayfaEni = 0, sayfaBoyu = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    sayfaBoyu = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    sayfaBoyu = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    sayfaBoyu = document.body.clientHeight;
  }
 	
		if(sayfaBoyu>Height)
		{
			document.getElementById('alt').className = 'altAbsolute';
		}
		else
		{
			document.getElementById('alt').className = 'altNormal';
		}
	
			//alert(Height +"/"+ sayfaBoyu +"/"+ baskiBoyu);	
		

			
	window.onresize = function() {
		footerFix();
	}
	
	//alert(sayfaBoyu);

}

	window.onload = function() {
		footerFix();
		$('alt').innerHTML +='<div style="position:absolute;height:75px;width:100px;left:0px;margin-top:50px;cursor:pointer;" onclick="window.open(\'http://www.koc.com.tr\',\'_blank\');"></div>';
	}

/* --------------------------------------------------------------------------------------- */

function $(id)
{
	return document.getElementById(id);
}
function $v(id)
{
	return document.getElementById(id).value;
}
function $tag(tagname)
{
	return document.getElementsByTagName(tagname);
}
function cssC(id,tag,yenideger)
{
	satir = '$(id).style.'+tag+' = yenideger';
	eval(satir);
}

function $class(id,newclass)
{
	$(id).className = newclass;
}

function $focus(id)
{
		$(id).style.border = 'solid 2px #c00';
}

function $blur(id)
	{
		$(id).style.border = $sd();
	}


function $innerHTML(id,html)
{
	$(id).innerHTML += html;
}

function $a(href)
{
    window.location = (href);
}

function $ot(id)//open.toggle açılan menüler için
{
    if($(id).style.display=='none')
    {
        $(id).style.display='block';
    }
    else
    {
        $(id).style.display='none';
    }
}

function $open(id){
		$(id).style.display='block';
	}
function $close(id){
		if($(id).style.display == 'block')
		{
			$(id).style.display='none';
		}
	}


/* --------------------------------------------------------------------------------------- */


//var basinListesi = new Array("basin1","basin2","basin3","basin4","basin5","basin6","basin7","basin8","basin9","basin10","basin11","basin12");

function pressDisplay(id){
	i=1;
	while($('basin'+i)){
			var did = 'basin'+i;
			if(id == did && $(did).style.display=='none')
			{
			$open(did);
			checkme();
			}
			else 
			{
			$close(did);
			checkme();
			}
			i++;
		}
	}
/* ---------------------------------------------------------------------------------------- */	

function resimleriLinkle(){
		var resim = document.getElementsByTagName('img');
		for(i=0;i<resim.length;i++){
				if(resim[i].className == 'img250'){
				    resim[i].onclick = function(){ 
                        resimAc(this.src);
                        return true;
                    };
					resim[i].style.cursor = 'pointer';
				}
			}
				
	}