﻿// JavaScript Document

function basvuruk(sayfa,form_eleman,messaga){
    var form = jQuery(form_eleman);
    sc = form.formSerialize();
	   // $('#ekleniyor').html('<center><img src="../images/loadingAnimation.gif"></center>');
    $.ajax({
        type: "POST",
        url: "http://www.networkpol.com/ajax/" + sayfa,
        data: sc,
		cache: false,
        success: function(msg){  
    if (msg=='ok')   {
jQuery(form_eleman).resetForm();   

$("#msg_box_ok").show("fast");
$("#msg_box_owrite").addClass("uyari");
$("#msg_box_owrite").html(messaga);

	
}
else {
$("#msg_box_ok").hide("fast");
$("#msg_box_owrite").addClass("uyari");
$("#msg_box_owrite").html(msg);
}}})


;}







  






$(document).ready(function(){
						   
						   

$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
		//tab için 
		$('#menud').tabify();



		
		
		
	  var originalFontSize = $('.news_text p').css('font-size');
  $(".resetFont").click(function(){
  $('.news_text p').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
  	var currentFontSize = $('.news_text p').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
	$('.news_text p').css('font-size', newFontSize);
	return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
  	var currentFontSize = $('.news_text p').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
	$('.news_text p').css('font-size', newFontSize);
	return false;
  });
  
  
  



startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("menu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;









});









