// Form Caption
function switchText(object, baseText, eventName){
	if (eventName == "blur"){
		if (object.value == ""){
			object.value = baseText;
		}
	}else{
		if (object.value == baseText){
			object.value = "";
		}
	}
}
// Tablo
var arrayOfRolloverClasses = new Array();
var arrayOfClickClasses = new Array();
var activeRow = false;
var activeRowClickArray = new Array();

function highlightTableRow()
{
	var tableObj = this.parentNode;
	if(tableObj.tagName!='TABLE')tableObj = tableObj.parentNode;

	if(this!=activeRow){
		this.setAttribute('origCl',this.className);
		this.origCl = this.className;
	}
	this.className = arrayOfRolloverClasses[tableObj.id];
	
	activeRow = this;
	
}

function clickOnTableRow()
{
	var tableObj = this.parentNode;
	if(tableObj.tagName!='TABLE')tableObj = tableObj.parentNode;		
	
	if(activeRowClickArray[tableObj.id] && this!=activeRowClickArray[tableObj.id]){
		activeRowClickArray[tableObj.id].className='';
	}
	this.className = arrayOfClickClasses[tableObj.id];
	
	activeRowClickArray[tableObj.id] = this;
	
	//alert(this);
			
}

function resetRowStyle()
{
	var tableObj = this.parentNode;
	if(tableObj.tagName!='TABLE')tableObj = tableObj.parentNode;

	if(activeRowClickArray[tableObj.id] && this==activeRowClickArray[tableObj.id]){
		this.className = arrayOfClickClasses[tableObj.id];
		return;	
	}
	
	var origCl = this.getAttribute('origCl');
	if(!origCl)origCl = this.origCl;
	this.className=origCl;
	
}
	
function addTableRolloverEffect(tableId,whichClass,whichClassOnClick)
{
	arrayOfRolloverClasses[tableId] = whichClass;
	arrayOfClickClasses[tableId] = whichClassOnClick;
	
	var tableObj = document.getElementById(tableId);
	var tBody = tableObj.getElementsByTagName('TBODY');
	if(tBody){
		var rows = tBody[0].getElementsByTagName('TR');
	}else{
		var rows = tableObj.getElementsByTagName('TR');
	}
	for(var no=0;no<rows.length;no++){
		rows[no].onmouseover = highlightTableRow;
		rows[no].onmouseout = resetRowStyle;
		
		if(whichClassOnClick){
			rows[no].onclick = clickOnTableRow;
		}
	}
	
}
//Tablo


jQuery.noConflict();
<!--MARQUEE-->
jQuery(function() {
	jQuery(".newsticker-jcarousellite").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:5000,
		speed:1000
	});
	jQuery(".referanslar-jcarousellite").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:2000,
		speed:500
	});
	jQuery(".iletisim-jcarousellite").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:2000,
		speed:1000
	});
	jQuery(".products-jcarousellite").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:2000,
		speed:1000
	});
	//main tabs
	var tabContainers = jQuery('div.tabs > div');
	tabContainers.hide().filter(':first').show();	
	jQuery('div.tabs ul.tabNavigation a').click(function () {
		tabContainers.hide();
		tabContainers.filter(this.hash).show();
		jQuery('div.tabs ul.tabNavigation a').removeClass('selected');
		jQuery(this).addClass('selected');
		return false;
	}).filter(':first').click();
});
<!--Colorbox-->
jQuery(document).ready(function(){
	jQuery("a[rel='firma_resimleri']").colorbox({transition:"false", width:"80%", height:"80%"});
	jQuery(".genel_sayfa").colorbox({width:"800px",height:"500px",iframe:true});
	jQuery(".google_map_colorbox").colorbox({width:"830px", height:"665px", iframe:true});	
	jQuery("a[rel='urun_resimleri']").colorbox();
	//ürünler tabs
	jQuery(".tab_content").hide(); //Hide all content
	jQuery("ul.tabs li:first").addClass("active").show(); //Activate first tab
	jQuery(".tab_content:first").show(); //Show first tab content	
	jQuery("ul.tabs li").click(function() {
		jQuery("ul.tabs li").removeClass("active"); //Remove any "active" class
		jQuery(this).addClass("active"); //Add "active" class to selected tab
		jQuery(".tab_content").hide(); //Hide all tab content
		var activeTab = jQuery(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		jQuery(activeTab).fadeIn(); //Fade in the active content
		return false;
	});
	//scroll
	jQuery("#back-top").hide();// hide #back-top first
	jQuery(function () {// fade in #back-top
		jQuery(window).scroll(function () {
			if (jQuery(this).scrollTop() > 100) {
				jQuery('#back-top').fadeIn();
			} else {
				jQuery('#back-top').fadeOut();
			}
		});
		jQuery('#back-top a').click(function () {// scroll body to 0px on click
			jQuery('body,html').animate({
				scrollTop: 0
			}, 800);
			return false;
		});
	});
});
<!--E-Mail Listesi-->
function email_ekle(relativeslash){
	var email_adres  = document.getElementById('email_adres').value;
	var sc = 'email_adres='+ email_adres;
	JXP(1, "sonuc", ""+relativeslash+"class/email_ekle.php", sc, relativeslash);
}
<!--Yükseklik Eşitle-->
function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = jQuery(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
jQuery(document).ready(function() {
	equalHeight(jQuery(".column"));
});
<!--Yükseklik Eşitle-->
<!--Ürün Detay Sayfası Ürün Resimleri-->
function resim_goster(resim1,resim2,aciklama,relativeslash){	
	document.getElementById("resim1").href = ''+relativeslash+'ftp_urunler/'+resim1+'';
	document.getElementById("resim2").src = ''+relativeslash+'ftp_urunler/'+resim2+'';	
	document.getElementById("aciklama").innerHTML = aciklama;
}
<!--Ürün Detay Sayfası Ürün Resimleri-->

