var startTime = $time();
function startList(){
	//code only for IE
	if(!document.body.currentStyle) return;
	var subs = document.getElementsByName('submenu');
	for(var i=0; i<subs.length; i++) {
		var xx = subs[i].parentNode;
		if(xx && xx.lastChild.style) {
			xx.onmouseover = function() {
				this.lastChild.style.visibility = 'visible';
			}
			xx.onmouseout = function() {
				this.lastChild.style.visibility = 'hidden';
			}
		}
	}
}
function getObject(obj) {
  var theObj;
  if(document.all) {
    if(typeof obj=="string") {
      return document.all(obj);
    } else {
      return obj.style;
    }
  }
  if(document.getElementById) {
    if(typeof obj=="string") {
      return document.getElementById(obj);
    } else {
      return obj.style;
    }
  }
  return null;
}

function wSize(){
var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
getObject("govde").style.height = (myHeight-76)+'px' ;
}
// moo kaydırma :)
window.addEvent('domready', function(){
			Fx.Morph = Fx.Styles.extend({
			
				start: function(className){
					var to = {};
					
					$each(document.styleSheets, function(style){
						var rules = style.rules || style.cssRules;
						$each(rules, function(rule){
							if (!rule.selectorText.test('\.' + className + '$')) return;
							Fx.CSS.Styles.each(function(style){
								if (!rule.style || !rule.style[style]) return;
								var ruleStyle = rule.style[style];
								to[style] = (style.test(/color/i) && ruleStyle.test(/^rgb/)) ? ruleStyle.rgbToHex() : ruleStyle;
							});
						});
					});
					return this.parent(to);
				}
				
			});
			
			Fx.CSS.Styles = ["backgroundColor", "backgroundposition", "color", "width", "height", "left", "top", "bottom", "right", "fontSize", "letterSpacing", "lineHeight", "textIndent", "opacity"];
			
			Fx.CSS.Styles.extend(Element.Styles.padding);
			Fx.CSS.Styles.extend(Element.Styles.margin);
			
			Element.Styles.border.each(function(border){
				['Width', 'Color'].each(function(property){
					Fx.CSS.Styles.push(border + property);
				});
			});
		}); 		
function icerikAc(sayfa) {
    var myMorph = new Fx.Morph('x9', {wait: false});
    myMorph.start('morph2');
    getObject('x9').style.background = '#222 url(resimler/loader.gif) no-repeat center center;';
    getObject('sayfaGoster').src = sayfa;
    //getObject('x9').style.overflow= 'auto';
  }
function yuklendi(){
try{
//getObject('header').style.display='block';
getObject('govde').style.display='block';
getObject('yukleniyor').style.display='none';
getObject('footer').style.display='block';
getObject('bar').style.display='block';
}
catch(err){
//Handle errors here
}
}
window.addEvent('load', function() {
	var total = $time() - startTime;
	yuklendi();
});

function startList(){

	//code only for IE
	if(!document.body.currentStyle) return;
	var subs = document.getElementsByName('submenu');
	for(var i=0; i<subs.length; i++) {
		var xx = subs[i].parentNode;
		if(xx && xx.lastChild.style) {
			xx.onmouseover = function() {
				this.lastChild.style.visibility = 'visible';
			}
			xx.onmouseout = function() {
				this.lastChild.style.visibility = 'hidden';
			}
		}
	}
}