/*

	Header Information------------------------------------[Do Not Remove This Header]--

	Title: OO Dom Image Rollover

	Description: This script makes it easy to add rollover/ mousedown 

  	effects to any image on the page, including image submit buttons. Automatically 

  	preloads images as well. Script works in all DOM capable browsers- IE5+, NS6+, 

  	Opera7+.

	

	Legal: Copyright 2005 Adam Smith

	Author Email Address: ibulwark@hotmail.com

	Date Created: June 6, 2005

	Website: Codevendor.com | eBadgeman.com

	Script featured on Dynamic Drive: http://www.dynamicdrive.com

	-----------------------------------------------------------------------------------

*/



function imageholderclass(){

	this.over=new Array();

	this.down=new Array();

	this.src=new Array();

	this.store=store;

	

	function store(src, down, over){

		var AL=this.src.length;

		this.src[AL]=new Image(); this.src[AL].src=src;

		this.over[AL]=new Image(); this.over[AL].src=over;

		this.down[AL]=new Image(); this.down[AL].src=down;

	}

}



var ih = new imageholderclass();

var mouseisdown=0;



function preloader(t){

	for(i=0;i<t.length;i++){

		if(t[i].getAttribute('srcover')||t[i].getAttribute('srcdown')){

			

			storeimages(t[i]);

			var checker='';

			checker=(t[i].getAttribute('srcover'))?checker+'A':checker+'';

			checker=(t[i].getAttribute('srcdown'))?checker+'B':checker+'';

			

			switch(checker){

			case 'A' : mouseover(t[i]);mouseout(t[i]); break;

			case 'B' : mousedown(t[i]); mouseup2(t[i]); break;

			case 'AB' : mouseover(t[i]);mouseout(t[i]); mousedown(t[i]); mouseup(t[i]); break;

			default : return;			

			}

			

			if(t[i].src){t[i].setAttribute("oldsrc",t[i].src);}

		}

	}

}

function mouseup(t){

	var newmouseup;

	if(t.onmouseup){

		t.oldmouseup=t.onmouseup;

		newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("srcover");this.oldmouseup();}



	}

	else{newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("srcover");}}

	t.onmouseup=newmouseup;

}



function mouseup2(t){

	var newmouseup;

	if(t.onmouseup){

		t.oldmouseup=t.onmouseup;

		newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("oldsrc");this.oldmouseup();}

		}

	else{newmouseup=function(){mouseisdown=0;this.src=this.getAttribute("oldsrc");}}

	t.onmouseup = newmouseup;

}



function mousedown(t){

	var newmousedown;

	if(t.onmousedown){

		t.oldmousedown=t.onmousedown;

		newmousedown=function(){if(mouseisdown==0){this.src=this.getAttribute("srcdown");this.oldmousedown();}}

	}

	else{newmousedown=function(){if(mouseisdown==0){this.src=this.getAttribute("srcdown");}}}

	t.onmousedown=newmousedown;

}



function mouseover(t){

	var newmouseover;

	if(t.onmouseover){

		t.oldmouseover=t.onmouseover;

		newmouseover=function(){this.src=this.getAttribute("srcover");this.oldmouseover();}

	}

	else{newmouseover=function(){this.src=this.getAttribute("srcover");}}

	t.onmouseover=newmouseover;

}



function mouseout(t){

	var newmouseout;

	if(t.onmouseout){

		t.oldmouseout=t.onmouseout;

		newmouseout=function(){this.src=this.getAttribute("oldsrc");this.oldmouseout();}

	}

	else{newmouseout=function(){this.src=this.getAttribute("oldsrc");}}

	t.onmouseout=newmouseout;

}



function storeimages(t){

	var s=(t.getAttribute('src'))?t.getAttribute('src'):'';

	var d=(t.getAttribute('srcdown'))?t.getAttribute('srcdown'):'';

	var o=(t.getAttribute('srcover'))?t.getAttribute('srcover'):'';

	ih.store(s,d,o);

}



function preloadimgsrc(){

	if(!document.getElementById) return;

	var it=document.getElementsByTagName('IMG');

	var it2=document.getElementsByTagName('INPUT');

	preloader(it);

	preloader(it2);

}



if(window.addEventListener){window.addEventListener("load", preloadimgsrc, false);} 

else{

	if(window.attachEvent){window.attachEvent("onload", preloadimgsrc);}

	else{if(document.getElementById){window.onload=preloadimgsrc;}}

}







function ahmetozhanaudio1() {

window.open( "../media/media/ahmetozhanaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function ahmetozhanvideo1() {

window.open( "../media/media/ahmetozhanvideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function ahirkapiaudio1() {

window.open( "media/media/ahirkapiaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function babaaudio1() {

window.open( "../media/media/babaaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function babaaudio2() {

window.open( "../media/media/babaaudio2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function babavideo1() {

window.open( "../media/media/babavideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function babavideo2() {

window.open( "../media/media/babavideo2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function babavideo3() {

window.open( "../media/media/babavideo3.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function basianiaudio1() {

window.open( "../media/media/basianiaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function basianiaudio2() {

window.open( "../media/media/basianiaudio2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function dervicheaudio1() {

window.open( "../media/media/dervicheaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function dervicheaudio2() {

window.open( "../media/media/dervicheaudio2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function dervichevideo1() {

window.open( "../media/media/dervichevideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function dervichevideo2() {

window.open( "../media/media/dervichevideo2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function dervichevideo3() {

window.open( "../media/media/dervichevideo3.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function fanfareaudio1() {

window.open( "../media/media/fanfareaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function fanfareaudio2() {

window.open( "../media/media/fanfareaudio2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function gospelaudio1() {

window.open( "../media/media/gospelaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function gospelaudio2() {

window.open( "../media/media/gospelaudio2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function gospelvideo1() {

window.open( "../media/media/gospelvideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function istanbulsazendeleriaudio1() {

window.open( "../media/media/istanbulsazendeleriaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function tesnimevideo1() {

window.open( "../media/media/tesnimevideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function nadiraaudio1() {

window.open( "../media/media/nadiraaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}


function tesnimeaudio1() {

window.open( "../media/media/tesnimeaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}


function tesnimeaudio2() {

window.open( "../media/media/tesnimeaudio2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function aksakaudio1() {

window.open( "../media/media/aksakaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function amrathussaintrioaudio1() {

window.open( "../media/media/amrathussaintrioaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function anurekhaghoshandcompanyvideo1() {

window.open( "../media/media/anurekhaghoshandcompanyvideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function balkanesaudio1() {

window.open( "../media/media/balkanesaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function faridaaudio1() {

window.open( "../media/media/faridaaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function jaipurmaharajabrassbandvideo1() {

window.open( "../media/media/jaipurmaharajabrassbandvideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function kocaniaudio1() {

window.open( "../media/media/kocaniaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function giorgobavideo1() {

window.open( "../media/media/giorgobavideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function giorgobavideo2() {

window.open( "../media/media/giorgobavideo2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function ahirkapivideo1() {

window.open( "../media/media/ahirkapivideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function ahirkapivideo2() {

window.open( "../media/media/ahirkapivideo2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function ahirkapivideo3() {

window.open( "../media/media/ahirkapivideo3.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function ahirkapivideo4() {

window.open( "../media/media/ahirkapivideo4.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function baulvideo1() {

window.open( "../media/media/baulvideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function triokhaledbenyahiavideo1() {

window.open( "../media/media/triokhaledbenyahiavideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function amineethamzaaudio1() {

window.open( "../media/media/amineethamzaaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function kocanivideo1() {

window.open( "../media/media/kocanivideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function amineethamzaaudio1() {

window.open( "../media/media/amineethamzaaudio1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function amrathussaintriovideo1() {

window.open( "../media/media/amrathussaintriovideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function basianivideo3() {

window.open( "../media/media/basianivideo3.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function AmineHamzavideo1() {

window.open( "../media/media/AmineHamzavideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function jaipurmaharajabrassbandvideo2() {

window.open( "../media/media/jaipurmaharajabrassbandvideo2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function kocanivideo1() {

window.open( "../media/media/kocanivideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function anupbaruavideo1() {

window.open( "../media/media/anupbaruavideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function lafirmalatinavideo1() {

window.open( "../media/media/lafirmalatinavideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function lafirmalatinavideo2() {

window.open( "../media/media/lafirmalatinavideo2.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function abirnasraouivideo1() {

window.open( "../media/media/abirnasraouivideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function goriwomenchoirvideo1() {

window.open( "../media/media/goriwomenchoirvideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}



function zabitnebizadevideo1() {

window.open( "../media/media/zabitnebizadevideo1.htm", "myWindow", 

"status = 1, height = 269, width = 292, resizable = 0" )

}
