var login = document.getElementsByName("login");
var Join = document.getElementsByName("Join");
var updates = document.getElementsByName("updates");
var Galleries = document.getElementsByName("Galleries");
var Films = document.getElementsByName("Films");
var OurModels = document.getElementsByName("OurModels");
var Mobile = document.getElementsByName("Mobile");
var ArtTech = document.getElementsByName("ArtTech");
var DVD = document.getElementsByName("DVD");
var Book = document.getElementsByName("Book");
var Prints = document.getElementsByName("Prints");
var Posters = document.getElementsByName("Posters");
var OrigArt = document.getElementsByName("OrigArt");
var subscribe = document.getElementsByName("subscribe");
var nab = document.getElementsByName("nab");
var nab1 = document.getElementsByName("nab1");
var nab2 = document.getElementsByName("nab2");
var nab3 = document.getElementsByName("nab3");
var nab4 = document.getElementsByName("nab4");
var nab5 = document.getElementsByName("nab5");
var nab6 = document.getElementsByName("nab6");
var nab7 = document.getElementsByName("nab7");
var hj = document.getElementsByName("hj");
var hjf = document.getElementsByName("hjf");
var base = document.getElementsByName("base");
var Join6 = document.getElementsByName("Join6");
var Join6r = document.getElementsByName("Join6r");
var Join6rb = document.getElementsByName("Join6rb");
var Join2 = document.getElementsByName("Join2");
var Totalar = document.getElementsByName("Totalar");
var Totalal = document.getElementsByName("Totalal");
var Films = document.getElementsByName("Films");
var Subscribe6r = document.getElementsByName("Subscribe6r");
var Goshopr = document.getElementsByName("Goshopr");
var Goshopl = document.getElementsByName("Goshopl");
var button = document.getElementsByName("button");
var plate = document.getElementsByName("plate");
var cart = document.getElementsByName("cart");
var dish = document.getElementsByName("dish");
var mso1 = document.getElementsByName("mso1");
var artcy = document.getElementsByName("artcy");
var chekrt = document.getElementsByName("chekrt");
var cheklt = document.getElementsByName("cheklt");
var chekrb = document.getElementsByName("chekrb");
var cheklb = document.getElementsByName("cheklb");
var mart = document.getElementsByName("mart");
var malt = document.getElementsByName("malt");
var marb = document.getElementsByName("marb");
var malb = document.getElementsByName("malb");
var tw = document.getElementsByName("tw");
var fb = document.getElementsByName("fb");
var email = document.getElementsByName("email");
var twr = document.getElementsByName("twr");
var fbr = document.getElementsByName("fbr");
var emailr = document.getElementsByName("emailr");
var email_btm = document.getElementsByName("email_btm");
var rss = document.getElementsByName("rss");
var gplus = document.getElementsByName("gplus");
var odpfs = document.getElementsByName("odpfs");
var feo = document.getElementsByName("feo");
var p_dvd3 = document.getElementsByName("p_dvd3");
var ptc = document.getElementsByName("ptc");
var pg1 = document.getElementsByName("pg1");
var pg2 = document.getElementsByName("pg2");
var pg3 = document.getElementsByName("pg3");
var pg4 = document.getElementsByName("pg4");
var pg5 = document.getElementsByName("pg5");
var pg1b = document.getElementsByName("pg1b");
var pg2b = document.getElementsByName("pg2b");
var pg3b = document.getElementsByName("pg3b");
var pg4b = document.getElementsByName("pg4b");
var pg5b = document.getElementsByName("pg5b");
var gal1 = document.getElementsByName("gal1");
var gal2 = document.getElementsByName("gal2");
var gal3 = document.getElementsByName("gal3");
var gal4 = document.getElementsByName("gal4");
var gal5 = document.getElementsByName("gal5");
var gal6 = document.getElementsByName("gal6");
var gal7 = document.getElementsByName("gal7");
var gal8 = document.getElementsByName("gal8");
var gal9 = document.getElementsByName("gal9");
var gal10 = document.getElementsByName("gal10");
var sk1 = document.getElementsByName("sk1");
var sk2 = document.getElementsByName("sk2");
var sk3 = document.getElementsByName("sk3");
var sk4 = document.getElementsByName("sk4");
var sk5 = document.getElementsByName("sk5");
var sk6 = document.getElementsByName("sk6");
var sk7 = document.getElementsByName("sk7");
var sk8 = document.getElementsByName("sk8");
var sk9 = document.getElementsByName("sk9");
var sk10 = document.getElementsByName("sk10");
var bn1a = document.getElementsByName("bn1a");
var bn1b = document.getElementsByName("bn1b");
var bn1c = document.getElementsByName("bn1c");
var bn2a = document.getElementsByName("bn2a");
var bn2b = document.getElementsByName("bn2b");
var bn2c = document.getElementsByName("bn2c");
var bn3a = document.getElementsByName("bn3a");
var bn3b = document.getElementsByName("bn3b");
var bn3c = document.getElementsByName("bn3c");
var bn4a = document.getElementsByName("bn4a");
var bn4b = document.getElementsByName("bn4b");
var bn4c = document.getElementsByName("bn4c");
var bn5a = document.getElementsByName("bn5a");
var bn5b = document.getElementsByName("bn5b");
var bn5c = document.getElementsByName("bn5c");
var bn6a = document.getElementsByName("bn6a");
var bn6b = document.getElementsByName("bn6b");
var bn6c = document.getElementsByName("bn6c");
var bn7a = document.getElementsByName("bn7a");
var bn7b = document.getElementsByName("bn7b");
var bn7c = document.getElementsByName("bn7c");
var bn8a = document.getElementsByName("bn8a");
var bn8b = document.getElementsByName("bn8b");
var bn8c = document.getElementsByName("bn8c");
var bn9a = document.getElementsByName("bn9a");
var bn9b = document.getElementsByName("bn9b");
var bn9c = document.getElementsByName("bn9c");
var bn10a = document.getElementsByName("bn10a");
var bn10b = document.getElementsByName("bn10b");
var bn10c = document.getElementsByName("bn10c");
var bn11a = document.getElementsByName("bn11a");
var bn11b = document.getElementsByName("bn11b");
var bn11c = document.getElementsByName("bn11c");
var bn12a = document.getElementsByName("bn12a");
var bn12b = document.getElementsByName("bn12b");
var bn12c = document.getElementsByName("bn12c");
var bn13a = document.getElementsByName("bn13a");
var bn13b = document.getElementsByName("bn13b");
var bn13c = document.getElementsByName("bn13c");
var bn14a = document.getElementsByName("bn14a");
var bn14b = document.getElementsByName("bn14b");
var bn14c = document.getElementsByName("bn14c");
var bn15a = document.getElementsByName("bn15a");
var bn15b = document.getElementsByName("bn15b");
var bn15c = document.getElementsByName("bn15c");

// begin security popups
function mcssl(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=425,height=430');");
}

function verisign(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=545,height=520');");
}

function mcafee(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=575,height=920');");
}
// end security popups

for(i = 0; i < login.length; i++) {
	login[i].onmouseover = function() { MM_swapImage('bl_login','','/images/bl_login_on.gif',1); }
	login[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Join.length; i++) {
	Join[i].onmouseover = function() { MM_swapImage('br_join','','/images/br_join_on.gif',1); }
	Join[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < updates.length; i++) {
	updates[i].onmouseover = function() { MM_swapImage('m_updates','','/images/menu2_m_updates_on.gif',1); }
	updates[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Galleries.length; i++) {
	Galleries[i].onmouseover = function() { MM_swapImage('M_Galleries','','/images/menu2_m_galleries_on.gif',1); }
	Galleries[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Films.length; i++) {
	Films[i].onmouseover = function() { MM_swapImage('M_Films','','/images/menu2_m_films_on.gif',1); }
	Films[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < OurModels.length; i++) {
	OurModels[i].onmouseover = function() { MM_swapImage('M_OurModels','','/images/menu2_m_ourmodels_on.gif',1); }
	OurModels[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Mobile.length; i++) {
	Mobile[i].onmouseover = function() { MM_swapImage('M_Mobile','','/images/menu2_m_mobile_on.gif',1); }
	Mobile[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < ArtTech.length; i++) {
	ArtTech[i].onmouseover = function() { MM_swapImage('M_ArtTech','','/images/menu2_m_art_on.gif',1); }
	ArtTech[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < DVD.length; i++) {
	DVD[i].onmouseover = function() { MM_swapImage('M_DVD','','/images/menu2_m_dvd_on.gif',1); }
	DVD[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Book.length; i++) {
	Book[i].onmouseover = function() { MM_swapImage('M_Book','','/images/menu2_m_book_on.gif',1); }
	Book[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Prints.length; i++) {
	Prints[i].onmouseover = function() { MM_swapImage('M_Prints','','/images/menu2_m_prints_on.gif',1); }
	Prints[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Posters.length; i++) {
	Posters[i].onmouseover = function() { MM_swapImage('M_Posters','','/images/menu2_m_posters_on.gif',1); }
	Posters[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < OrigArt.length; i++) {
	OrigArt[i].onmouseover = function() { MM_swapImage('M_OrigArt','','/images/menu2_m_originals_on.gif',1); }
	OrigArt[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < subscribe.length; i++) {
	subscribe[i].onmouseover = function() { MM_swapImage('subscribe_f','','/web_2.0/subscribe_on.gif',1); }
	subscribe[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < nab1.length; i++) {
	nab1[i].onmouseover = function() { MM_swapImage('na','','/Upload/banners/horizbanner_1_on.jpg',1); }
	nab1[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < nab.length; i++) {
	nab[i].onmouseover = function() { MM_swapImage('na','','/Upload/banners/horizbanner_8_on.jpg',1); }
	nab[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < nab2.length; i++) {
	nab2[i].onmouseover = function() { MM_swapImage('na','','/Upload/banners/horizbanner_2_on.jpg',1); }
	nab2[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < nab3.length; i++) {
	nab3[i].onmouseover = function() { MM_swapImage('na','','/Upload/banners/horizbanner_3_on.jpg',1); }
	nab3[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < nab4.length; i++) {
	nab4[i].onmouseover = function() { MM_swapImage('na','','/Upload/banners/horizbanner_4_on.jpg',1); }
	nab4[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < nab5.length; i++) {
	nab5[i].onmouseover = function() { MM_swapImage('na','','/Upload/banners/horizbanner_5_on.jpg',1); }
	nab5[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < nab6.length; i++) {
	nab6[i].onmouseover = function() { MM_swapImage('na','','/Upload/banners/horizbanner_6_on.jpg',1); }
	nab6[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < nab7.length; i++) {
	nab7[i].onmouseover = function() { MM_swapImage('na','','/Upload/banners/horizbanner_7_on.jpg',1); }
	nab7[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < hj.length; i++) {
	hj[i].onmouseover = function() { MM_swapImage('headerjoin','','/images/headere_on.gif',1); }
	hj[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < hjf.length; i++) {
	hjf[i].onmouseover = function() { MM_swapImage('headerjoin','','/images/headerj_on.gif',1); }
	hjf[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < base.length; i++) {
	base[i].onmouseover = function() { MM_swapImage('bse','','/images/base_on.gif',1); }
	base[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Join6.length; i++) {
	Join6[i].onmouseover = function() { MM_swapImage('jn6','','/images/join6_on.gif',1); }
	Join6[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Join6r.length; i++) {
	Join6r[i].onmouseover = function() { MM_swapImage('jn6r','','/images/join6_on.gif',1); }
	Join6r[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Join6rb.length; i++) {
	Join6rb[i].onmouseover = function() { MM_swapImage('jn6rb','','/images/join6_on.gif',1); }
	Join6rb[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Join2.length; i++) {
	Join2[i].onmouseover = function() { MM_swapImage('jn2','','/images/join2_on.gif',1); }
	Join2[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Totalar.length; i++) {
	Totalar[i].onmouseover = function() { MM_swapImage('tar','','/images/ta_on.gif',1); }
	Totalar[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Totalal.length; i++) {
	Totalal[i].onmouseover = function() { MM_swapImage('tal','','/images/ta_on.gif',1); }
	Totalal[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Films.length; i++) {
	Films[i].onmouseover = function() { MM_swapImage('mfilms','','/images/films_on.gif',1); }
	Films[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Subscribe6r.length; i++) {
	Subscribe6r[i].onmouseover = function() { MM_swapImage('sn6r','','/images/subscribe6_on.gif',1); }
	Subscribe6r[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Goshopr.length; i++) {
	Goshopr[i].onmouseover = function() { MM_swapImage('gsr','','/images/gsr_on.gif',1); }
	Goshopr[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < Goshopl.length; i++) {
	Goshopl[i].onmouseover = function() { MM_swapImage('gsl','','/images/gsl_on.gif',1); }
	Goshopl[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < button.length; i++) {
	button[i].onmouseover = function() { MM_swapImage('log_rb','','/images/rb_login_on.gif',1); }
	button[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < plate.length; i++) {
	plate[i].onmouseover = function() { MM_swapImage('tplate','','/images/plate_on.jpg',1); }
	plate[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < cart.length; i++) {
	cart[i].onmouseover = function() { MM_swapImage('bl_cart','','/images/bl_cart_on.gif',1); }
	cart[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < dish.length; i++) {
	dish[i].onmouseover = function() { MM_swapImage('dn','','/images/dish_on.gif',1); }
	dish[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < mso1.length; i++) {
	mso1[i].onmouseover = function() { MM_swapImage('mso','','/Upload/banners/mso_on.jpg',1); }
	mso1[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < artcy.length; i++) {
	artcy[i].onmouseover = function() { MM_swapImage('artc','','/Upload/friends/artcyclopedia_on.gif',1); }
	artcy[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < chekrb.length; i++) {
	chekrb[i].onmouseover = function() { MM_swapImage('chekrb_on','','/images/ch_on.gif',1); }
	chekrb[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < cheklb.length; i++) {
	cheklb[i].onmouseover = function() { MM_swapImage('cheklb_on','','/images/ch_on.gif',1); }
	cheklb[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < chekrt.length; i++) {
	chekrt[i].onmouseover = function() { MM_swapImage('chekrt_on','','/images/ch_on.gif',1); }
	chekrt[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < cheklt.length; i++) {
	cheklt[i].onmouseover = function() { MM_swapImage('cheklt_on','','/images/ch_on.gif',1); }
	cheklt[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < marb.length; i++) {
	marb[i].onmouseover = function() { MM_swapImage('marb_on','','/images/ma_on.gif',1); }
	marb[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < malb.length; i++) {
	malb[i].onmouseover = function() { MM_swapImage('malb_on','','/images/ma_on.gif',1); }
	malb[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < mart.length; i++) {
	mart[i].onmouseover = function() { MM_swapImage('mart_on','','/images/ma_on.gif',1); }
	mart[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < malt.length; i++) {
	malt[i].onmouseover = function() { MM_swapImage('malt_on','','/images/ma_on.gif',1); }
	malt[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < tw.length; i++) {
	tw[i].onmouseover = function() { MM_swapImage('tw_on','','/images/tw_f_on.gif',1); }
	tw[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < fb.length; i++) {
	fb[i].onmouseover = function() { MM_swapImage('fb_on','','/images/fb_f_on.gif',1); }
	fb[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < email.length; i++) {
	email[i].onmouseover = function() { MM_swapImage('email_on','','/images/newsl_on.gif',1); }
	email[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < twr.length; i++) {
	twr[i].onmouseover = function() { MM_swapImage('tw_r_on','','/images/tw_f_on.gif',1); }
	twr[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < fbr.length; i++) {
	fbr[i].onmouseover = function() { MM_swapImage('fb_r_on','','/images/fb_f_on.gif',1); }
	fbr[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < emailr.length; i++) {
	emailr[i].onmouseover = function() { MM_swapImage('email_r_on','','/images/newsl_on.gif',1); }
	emailr[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < email_btm.length; i++) {
	email_btm[i].onmouseover = function() { MM_swapImage('email_btm_on','','/images/email_on.gif',1); }
	email_btm[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < rss.length; i++) {
	rss[i].onmouseover = function() { MM_swapImage('rss_on','','/images/rss_on.gif',1); }
	rss[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < gplus.length; i++) {
	gplus[i].onmouseover = function() { MM_swapImage('gplus_on','','/images/gplus-32_on.png',1); }
	gplus[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < odpfs.length; i++) {
	odpfs[i].onmouseover = function() { MM_swapImage('odpfs_on','','/images/odpfs_2_on.gif',1); }
	odpfs[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < feo.length; i++) {
	feo[i].onmouseover = function() { MM_swapImage('feo_on','','/images/feo_on.gif',1); }
	feo[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < p_dvd3.length; i++) {
	p_dvd3[i].onmouseover = function() { MM_swapImage('p_dvd3_on','','/images/p_dvd3_on.gif',1); }
	p_dvd3[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < ptc.length; i++) {
	ptc[i].onmouseover = function() { MM_swapImage('ptc_on','','/images/ptc_on.gif',1); }
	ptc[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < pg1.length; i++) {
	pg1[i].onmouseover = function() { MM_swapImage('pg1_on','','/images/pg1_on.gif',1); }
	pg1[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < pg2.length; i++) {
	pg2[i].onmouseover = function() { MM_swapImage('pg2_on','','/images/pg2_on.gif',1); }
	pg2[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < pg3.length; i++) {
	pg3[i].onmouseover = function() { MM_swapImage('pg3_on','','/images/pg3_on.gif',1); }
	pg3[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < pg4.length; i++) {
	pg4[i].onmouseover = function() { MM_swapImage('pg4_on','','/images/pg4_on.gif',1); }
	pg4[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < pg5.length; i++) {
	pg5[i].onmouseover = function() { MM_swapImage('pg5_on','','/images/pg5_on.gif',1); }
	pg5[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < pg1b.length; i++) {
	pg1b[i].onmouseover = function() { MM_swapImage('pg1b_on','','/images/pg1_on.gif',1); }
	pg1b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < pg2b.length; i++) {
	pg2b[i].onmouseover = function() { MM_swapImage('pg2b_on','','/images/pg2_on.gif',1); }
	pg2b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < pg3b.length; i++) {
	pg3b[i].onmouseover = function() { MM_swapImage('pg3b_on','','/images/pg3_on.gif',1); }
	pg3b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < pg4b.length; i++) {
	pg4b[i].onmouseover = function() { MM_swapImage('pg4b_on','','/images/pg4_on.gif',1); }
	pg4b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < pg5b.length; i++) {
	pg5b[i].onmouseover = function() { MM_swapImage('pg5b_on','','/images/pg5_on.gif',1); }
	pg5b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < gal1.length; i++) {
	gal1[i].onmouseover = function() { MM_swapImage('gal1_on','','/images/gal1_on.gif',1); }
	gal1[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < gal2.length; i++) {
	gal2[i].onmouseover = function() { MM_swapImage('gal2_on','','/images/gal2_on.gif',1); }
	gal2[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < gal3.length; i++) {
	gal3[i].onmouseover = function() { MM_swapImage('gal3_on','','/images/gal3_on.gif',1); }
	gal3[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < gal4.length; i++) {
	gal4[i].onmouseover = function() { MM_swapImage('gal4_on','','/images/gal4_on.gif',1); }
	gal4[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < gal5.length; i++) {
	gal5[i].onmouseover = function() { MM_swapImage('gal5_on','','/images/gal5_on.gif',1); }
	gal5[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < gal6.length; i++) {
	gal6[i].onmouseover = function() { MM_swapImage('gal6_on','','/images/gal6_on.gif',1); }
	gal6[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < gal7.length; i++) {
	gal7[i].onmouseover = function() { MM_swapImage('gal7_on','','/images/gal7_on.gif',1); }
	gal7[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < gal8.length; i++) {
	gal8[i].onmouseover = function() { MM_swapImage('gal8_on','','/images/gal8_on.gif',1); }
	gal8[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < gal9.length; i++) {
	gal9[i].onmouseover = function() { MM_swapImage('gal9_on','','/images/gal9_on.gif',1); }
	gal9[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < gal10.length; i++) {
	gal10[i].onmouseover = function() { MM_swapImage('gal10_on','','/images/gal10_on.gif',1); }
	gal10[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < sk1.length; i++) {
	sk1[i].onmouseover = function() { MM_swapImage('sk1_on','','/images/sk1_on.gif',1); }
	sk1[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < sk2.length; i++) {
	sk2[i].onmouseover = function() { MM_swapImage('sk2_on','','/images/sk2_on.gif',1); }
	sk2[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < sk3.length; i++) {
	sk3[i].onmouseover = function() { MM_swapImage('sk3_on','','/images/sk3_on.gif',1); }
	sk3[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < sk4.length; i++) {
	sk4[i].onmouseover = function() { MM_swapImage('sk4_on','','/images/sk4_on.gif',1); }
	sk4[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < sk5.length; i++) {
	sk5[i].onmouseover = function() { MM_swapImage('sk5_on','','/images/sk5_on.gif',1); }
	sk5[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < sk6.length; i++) {
	sk6[i].onmouseover = function() { MM_swapImage('sk6_on','','/images/sk6_on.gif',1); }
	sk6[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < sk7.length; i++) {
	sk7[i].onmouseover = function() { MM_swapImage('sk7_on','','/images/sk7_on.gif',1); }
	sk7[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < sk8.length; i++) {
	sk8[i].onmouseover = function() { MM_swapImage('sk8_on','','/images/sk8_on.gif',1); }
	sk8[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < sk9.length; i++) {
	sk9[i].onmouseover = function() { MM_swapImage('sk1_on','','/images/sk9_on.gif',1); }
	sk9[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < sk10.length; i++) {
	sk10[i].onmouseover = function() { MM_swapImage('sk10_on','','/images/sk10_on.gif',1); }
	sk10[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn1a.length; i++) {
	bn1a[i].onmouseover = function() { MM_swapImage('bn1a_on','','/images/bn_on.gif',1); }
	bn1a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn1b.length; i++) {
	bn1b[i].onmouseover = function() { MM_swapImage('bn1b_on','','/images/bn_on.gif',1); }
	bn1b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn1c.length; i++) {
	bn1c[i].onmouseover = function() { MM_swapImage('bn1c_on','','/images/bn_on.gif',1); }
	bn1c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn2a.length; i++) {
	bn2a[i].onmouseover = function() { MM_swapImage('bn2a_on','','/images/bn_on.gif',1); }
	bn2a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn2b.length; i++) {
	bn2b[i].onmouseover = function() { MM_swapImage('bn2b_on','','/images/bn_on.gif',1); }
	bn2b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn2c.length; i++) {
	bn2c[i].onmouseover = function() { MM_swapImage('bn2c_on','','/images/bn_on.gif',1); }
	bn2c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn3a.length; i++) {
	bn3a[i].onmouseover = function() { MM_swapImage('bn3a_on','','/images/bn_on.gif',1); }
	bn3a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn3b.length; i++) {
	bn3b[i].onmouseover = function() { MM_swapImage('bn3b_on','','/images/bn_on.gif',1); }
	bn3b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn3c.length; i++) {
	bn3c[i].onmouseover = function() { MM_swapImage('bn3c_on','','/images/bn_on.gif',1); }
	bn3c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn4a.length; i++) {
	bn4a[i].onmouseover = function() { MM_swapImage('bn4a_on','','/images/bn_on.gif',1); }
	bn4a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn4b.length; i++) {
	bn4b[i].onmouseover = function() { MM_swapImage('bn4b_on','','/images/bn_on.gif',1); }
	bn4b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn4c.length; i++) {
	bn4c[i].onmouseover = function() { MM_swapImage('bn4c_on','','/images/bn_on.gif',1); }
	bn4c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn5a.length; i++) {
	bn5a[i].onmouseover = function() { MM_swapImage('bn5a_on','','/images/bn_on.gif',1); }
	bn5a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn5b.length; i++) {
	bn5b[i].onmouseover = function() { MM_swapImage('bn5b_on','','/images/bn_on.gif',1); }
	bn5b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn5c.length; i++) {
	bn5c[i].onmouseover = function() { MM_swapImage('bn5c_on','','/images/bn_on.gif',1); }
	bn5c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn6a.length; i++) {
	bn6a[i].onmouseover = function() { MM_swapImage('bn6a_on','','/images/bn_on.gif',1); }
	bn6a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn6b.length; i++) {
	bn6b[i].onmouseover = function() { MM_swapImage('bn6b_on','','/images/bn_on.gif',1); }
	bn6b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn6c.length; i++) {
	bn6c[i].onmouseover = function() { MM_swapImage('bn6c_on','','/images/bn_on.gif',1); }
	bn6c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn7a.length; i++) {
	bn7a[i].onmouseover = function() { MM_swapImage('bn7a_on','','/images/bn_on.gif',1); }
	bn7a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn7b.length; i++) {
	bn7b[i].onmouseover = function() { MM_swapImage('bn7b_on','','/images/bn_on.gif',1); }
	bn7b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn7c.length; i++) {
	bn7c[i].onmouseover = function() { MM_swapImage('bn7c_on','','/images/bn_on.gif',1); }
	bn7c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn8a.length; i++) {
	bn8a[i].onmouseover = function() { MM_swapImage('bn8a_on','','/images/bn_on.gif',1); }
	bn8a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn8b.length; i++) {
	bn8b[i].onmouseover = function() { MM_swapImage('bn8b_on','','/images/bn_on.gif',1); }
	bn8b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn8c.length; i++) {
	bn8c[i].onmouseover = function() { MM_swapImage('bn8c_on','','/images/bn_on.gif',1); }
	bn8c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn9a.length; i++) {
	bn9a[i].onmouseover = function() { MM_swapImage('bn9a_on','','/images/bn_on.gif',1); }
	bn9a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn9b.length; i++) {
	bn9b[i].onmouseover = function() { MM_swapImage('bn9b_on','','/images/bn_on.gif',1); }
	bn9b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn9c.length; i++) {
	bn9c[i].onmouseover = function() { MM_swapImage('bn9c_on','','/images/bn_on.gif',1); }
	bn9c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn10a.length; i++) {
	bn10a[i].onmouseover = function() { MM_swapImage('bn10a_on','','/images/bn_on.gif',1); }
	bn10a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn10b.length; i++) {
	bn10b[i].onmouseover = function() { MM_swapImage('bn10b_on','','/images/bn_on.gif',1); }
	bn10b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn10c.length; i++) {
	bn10c[i].onmouseover = function() { MM_swapImage('bn10c_on','','/images/bn_on.gif',1); }
	bn10c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn11a.length; i++) {
	bn11a[i].onmouseover = function() { MM_swapImage('bn11a_on','','/images/bn_on.gif',1); }
	bn11a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn11b.length; i++) {
	bn11b[i].onmouseover = function() { MM_swapImage('bn11b_on','','/images/bn_on.gif',1); }
	bn11b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn11c.length; i++) {
	bn11c[i].onmouseover = function() { MM_swapImage('bn11c_on','','/images/bn_on.gif',1); }
	bn11c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn12a.length; i++) {
	bn12a[i].onmouseover = function() { MM_swapImage('bn12a_on','','/images/bn_on.gif',1); }
	bn12a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn12b.length; i++) {
	bn12b[i].onmouseover = function() { MM_swapImage('bn12b_on','','/images/bn_on.gif',1); }
	bn12b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn12c.length; i++) {
	bn12c[i].onmouseover = function() { MM_swapImage('bn12c_on','','/images/bn_on.gif',1); }
	bn12c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn13a.length; i++) {
	bn13a[i].onmouseover = function() { MM_swapImage('bn13a_on','','/images/bn_on.gif',1); }
	bn13a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn13b.length; i++) {
	bn13b[i].onmouseover = function() { MM_swapImage('bn13b_on','','/images/bn_on.gif',1); }
	bn13b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn13c.length; i++) {
	bn13c[i].onmouseover = function() { MM_swapImage('bn13c_on','','/images/bn_on.gif',1); }
	bn13c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn14a.length; i++) {
	bn14a[i].onmouseover = function() { MM_swapImage('bn14a_on','','/images/bn_on.gif',1); }
	bn14a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn14b.length; i++) {
	bn14b[i].onmouseover = function() { MM_swapImage('bn14b_on','','/images/bn_on.gif',1); }
	bn14b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn14c.length; i++) {
	bn14c[i].onmouseover = function() { MM_swapImage('bn14c_on','','/images/bn_on.gif',1); }
	bn14c[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn15a.length; i++) {
	bn15a[i].onmouseover = function() { MM_swapImage('bn15a_on','','/images/bn_on.gif',1); }
	bn15a[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn15b.length; i++) {
	bn15b[i].onmouseover = function() { MM_swapImage('bn15b_on','','/images/bn_on.gif',1); }
	bn15b[i].onmouseout = function() { MM_swapImgRestore(); }
}

for(i = 0; i < bn15c.length; i++) {
	bn15c[i].onmouseover = function() { MM_swapImage('bn15c_on','','/images/bn_on.gif',1); }
	bn15c[i].onmouseout = function() { MM_swapImgRestore(); }
}

// XMLHttpRequest.js Copyright (C) 2008 Sergey Ilinsky (http://www.ilinsky.com)
//
// This work is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.

// This work is distributed in the hope that it will be useful,
// but without any warranty; without even the implied warranty of
// merchantability or fitness for a particular purpose. See the
// GNU Lesser General Public License for more details.

// You should have received a copy of the GNU Lesser General Public License
// along with this library; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

(function () {

	// Save reference to earlier defined object implementation (if any)
	var oXMLHttpRequest	= window.XMLHttpRequest;

	// Define on browser type
	var bGecko	= !!window.controllers,
		bIE		= window.document.all && !window.opera;

	// Constructor
	function cXMLHttpRequest() {
		this._object	= oXMLHttpRequest ? new oXMLHttpRequest : new window.ActiveXObject("Microsoft.XMLHTTP");
		this._listeners	= [];
	};

	// BUGFIX: Firefox with Firebug installed would break pages if not executed
	if (bGecko && oXMLHttpRequest.wrapped)
		cXMLHttpRequest.wrapped	= oXMLHttpRequest.wrapped;

	// Constants
	cXMLHttpRequest.UNSENT				= 0;
	cXMLHttpRequest.OPENED				= 1;
	cXMLHttpRequest.HEADERS_RECEIVED	= 2;
	cXMLHttpRequest.LOADING				= 3;
	cXMLHttpRequest.DONE				= 4;

	// Public Properties
	cXMLHttpRequest.prototype.readyState	= cXMLHttpRequest.UNSENT;
	cXMLHttpRequest.prototype.responseText	= '';
	cXMLHttpRequest.prototype.responseXML	= null;
	cXMLHttpRequest.prototype.status		= 0;
	cXMLHttpRequest.prototype.statusText	= '';

	// Instance-level Events Handlers
	cXMLHttpRequest.prototype.onreadystatechange	= null;

	// Class-level Events Handlers
	cXMLHttpRequest.onreadystatechange	= null;
	cXMLHttpRequest.onopen				= null;
	cXMLHttpRequest.onsend				= null;
	cXMLHttpRequest.onabort				= null;

	// Public Methods
	cXMLHttpRequest.prototype.open	= function(sMethod, sUrl, bAsync, sUser, sPassword) {
		// Delete headers, required when object is reused
		delete this._headers;

		// When bAsync parameter value is omitted, use true as default
		if (arguments.length < 3)
			bAsync	= true;

		// Save async parameter for fixing Gecko bug with missing readystatechange in synchronous requests
		this._async		= bAsync;

		// Set the onreadystatechange handler
		var oRequest	= this,
			nState		= this.readyState,
			fOnUnload;

		// BUGFIX: IE - memory leak on page unload (inter-page leak)
		if (bIE && bAsync) {
			fOnUnload = function() {
				if (nState != cXMLHttpRequest.DONE) {
					fCleanTransport(oRequest);
					// Safe to abort here since onreadystatechange handler removed
					oRequest.abort();
				}
			};
			window.attachEvent("onunload", fOnUnload);
		}

		// Add method sniffer
		if (cXMLHttpRequest.onopen)
			cXMLHttpRequest.onopen.apply(this, arguments);

		if (arguments.length > 4)
			this._object.open(sMethod, sUrl, bAsync, sUser, sPassword);
		else
		if (arguments.length > 3)
			this._object.open(sMethod, sUrl, bAsync, sUser);
		else
			this._object.open(sMethod, sUrl, bAsync);

		if (!bGecko && !bIE) {
			this.readyState	= cXMLHttpRequest.OPENED;
			fReadyStateChange(this);
		}

		this._object.onreadystatechange	= function() {
			if (bGecko && !bAsync)
				return;

			// Synchronize state
			oRequest.readyState		= oRequest._object.readyState;

			//
			fSynchronizeValues(oRequest);

			// BUGFIX: Firefox fires unnecessary DONE when aborting
			if (oRequest._aborted) {
				// Reset readyState to UNSENT
				oRequest.readyState	= cXMLHttpRequest.UNSENT;

				// Return now
				return;
			}

			if (oRequest.readyState == cXMLHttpRequest.DONE) {
				//
				fCleanTransport(oRequest);
// Uncomment this block if you need a fix for IE cache
/*
				// BUGFIX: IE - cache issue
				if (!oRequest._object.getResponseHeader("Date")) {
					// Save object to cache
					oRequest._cached	= oRequest._object;

					// Instantiate a new transport object
					cXMLHttpRequest.call(oRequest);

					// Re-send request
					if (sUser) {
					 	if (sPassword)
							oRequest._object.open(sMethod, sUrl, bAsync, sUser, sPassword);
						else
							oRequest._object.open(sMethod, sUrl, bAsync, sUser);
					}
					else
						oRequest._object.open(sMethod, sUrl, bAsync);
					oRequest._object.setRequestHeader("If-Modified-Since", oRequest._cached.getResponseHeader("Last-Modified") || new window.Date(0));
					// Copy headers set
					if (oRequest._headers)
						for (var sHeader in oRequest._headers)
							if (typeof oRequest._headers[sHeader] == "string")	// Some frameworks prototype objects with functions
								oRequest._object.setRequestHeader(sHeader, oRequest._headers[sHeader]);

					oRequest._object.onreadystatechange	= function() {
						// Synchronize state
						oRequest.readyState		= oRequest._object.readyState;

						if (oRequest._aborted) {
							//
							oRequest.readyState	= cXMLHttpRequest.UNSENT;

							// Return
							return;
						}

						if (oRequest.readyState == cXMLHttpRequest.DONE) {
							// Clean Object
							fCleanTransport(oRequest);

							// get cached request
							if (oRequest.status == 304)
								oRequest._object	= oRequest._cached;

							//
							delete oRequest._cached;

							//
							fSynchronizeValues(oRequest);

							//
							fReadyStateChange(oRequest);

							// BUGFIX: IE - memory leak in interrupted
							if (bIE && bAsync)
								window.detachEvent("onunload", fOnUnload);
						}
					};
					oRequest._object.send(null);

					// Return now - wait until re-sent request is finished
					return;
				};
*/
				// BUGFIX: IE - memory leak in interrupted
				if (bIE && bAsync)
					window.detachEvent("onunload", fOnUnload);
			}

			// BUGFIX: Some browsers (Internet Explorer, Gecko) fire OPEN readystate twice
			if (nState != oRequest.readyState)
				fReadyStateChange(oRequest);

			nState	= oRequest.readyState;
		};
	};
	cXMLHttpRequest.prototype.send	= function(vData) {
		// Add method sniffer
		if (cXMLHttpRequest.onsend)
			cXMLHttpRequest.onsend.apply(this, arguments);

		// BUGFIX: Safari - fails sending documents created/modified dynamically, so an explicit serialization required
		// BUGFIX: IE - rewrites any custom mime-type to "text/xml" in case an XMLNode is sent
		// BUGFIX: Gecko - fails sending Element (this is up to the implementation either to standard)
		if (vData && vData.nodeType) {
			vData	= window.XMLSerializer ? new window.XMLSerializer().serializeToString(vData) : vData.xml;
			if (!this._headers["Content-Type"])
				this._object.setRequestHeader("Content-Type", "application/xml");
		}

		this._object.send(vData);

		// BUGFIX: Gecko - missing readystatechange calls in synchronous requests
		if (bGecko && !this._async) {
			this.readyState	= cXMLHttpRequest.OPENED;

			// Synchronize state
			fSynchronizeValues(this);

			// Simulate missing states
			while (this.readyState < cXMLHttpRequest.DONE) {
				this.readyState++;
				fReadyStateChange(this);
				// Check if we are aborted
				if (this._aborted)
					return;
			}
		}
	};
	cXMLHttpRequest.prototype.abort	= function() {
		// Add method sniffer
		if (cXMLHttpRequest.onabort)
			cXMLHttpRequest.onabort.apply(this, arguments);

		// BUGFIX: Gecko - unnecessary DONE when aborting
		if (this.readyState > cXMLHttpRequest.UNSENT)
			this._aborted	= true;

		this._object.abort();

		// BUGFIX: IE - memory leak
		fCleanTransport(this);
	};
	cXMLHttpRequest.prototype.getAllResponseHeaders	= function() {
		return this._object.getAllResponseHeaders();
	};
	cXMLHttpRequest.prototype.getResponseHeader	= function(sName) {
		return this._object.getResponseHeader(sName);
	};
	cXMLHttpRequest.prototype.setRequestHeader	= function(sName, sValue) {
		// BUGFIX: IE - cache issue
		if (!this._headers)
			this._headers	= {};
		this._headers[sName]	= sValue;

		return this._object.setRequestHeader(sName, sValue);
	};

	// EventTarget interface implementation
	cXMLHttpRequest.prototype.addEventListener	= function(sName, fHandler, bUseCapture) {
		for (var nIndex = 0, oListener; oListener = this._listeners[nIndex]; nIndex++)
			if (oListener[0] == sName && oListener[1] == fHandler && oListener[2] == bUseCapture)
				return;
		// Add listener
		this._listeners.push([sName, fHandler, bUseCapture]);
	};

	cXMLHttpRequest.prototype.removeEventListener	= function(sName, fHandler, bUseCapture) {
		for (var nIndex = 0, oListener; oListener = this._listeners[nIndex]; nIndex++)
			if (oListener[0] == sName && oListener[1] == fHandler && oListener[2] == bUseCapture)
				break;
		// Remove listener
		if (oListener)
			this._listeners.splice(nIndex, 1);
	};

	cXMLHttpRequest.prototype.dispatchEvent	= function(oEvent) {
		var oEvent	= {
			'type':			oEvent.type,
			'target':		this,
			'currentTarget':this,
			'eventPhase':	2,
			'bubbles':		oEvent.bubbles,
			'cancelable':	oEvent.cancelable,
			'timeStamp':	oEvent.timeStamp,
			'stopPropagation':	function() {},	// There is no flow
			'preventDefault':	function() {},	// There is no default action
			'initEvent':		function() {}	// Original event object should be initialized
		};

		// Execute onreadystatechange
		if (oEvent.type == "readystatechange" && this.onreadystatechange)
			(this.onreadystatechange.handleEvent || this.onreadystatechange).apply(this, [oEvent]);

		// Execute listeners
		for (var nIndex = 0, oListener; oListener = this._listeners[nIndex]; nIndex++)
			if (oListener[0] == oEvent.type && !oListener[2])
				(oListener[1].handleEvent || oListener[1]).apply(this, [oEvent]);
	};

	//
	cXMLHttpRequest.prototype.toString	= function() {
		return '[' + "object" + ' ' + "XMLHttpRequest" + ']';
	};

	cXMLHttpRequest.toString	= function() {
		return '[' + "XMLHttpRequest" + ']';
	};

	// Helper function
	function fReadyStateChange(oRequest) {
		// Sniffing code
		if (cXMLHttpRequest.onreadystatechange)
			cXMLHttpRequest.onreadystatechange.apply(oRequest);

		// Fake event
		oRequest.dispatchEvent({
			'type':			"readystatechange",
			'bubbles':		false,
			'cancelable':	false,
			'timeStamp':	new Date + 0
		});
	};

	function fGetDocument(oRequest) {
		var oDocument	= oRequest.responseXML,
			sResponse	= oRequest.responseText;
		// Try parsing responseText
		if (bIE && sResponse && oDocument && !oDocument.documentElement && oRequest.getResponseHeader("Content-Type").match(/[^\/]+\/[^\+]+\+xml/)) {
			oDocument	= new window.ActiveXObject("Microsoft.XMLDOM");
			oDocument.async				= false;
			oDocument.validateOnParse	= false;
			oDocument.loadXML(sResponse);
		}
		// Check if there is no error in document
		if (oDocument)
			if ((bIE && oDocument.parseError != 0) || !oDocument.documentElement || (oDocument.documentElement && oDocument.documentElement.tagName == "parsererror"))
				return null;
		return oDocument;
	};

	function fSynchronizeValues(oRequest) {
		try {	oRequest.responseText	= oRequest._object.responseText;	} catch (e) {}
		try {	oRequest.responseXML	= fGetDocument(oRequest._object);	} catch (e) {}
		try {	oRequest.status			= oRequest._object.status;			} catch (e) {}
		try {	oRequest.statusText		= oRequest._object.statusText;		} catch (e) {}
	};

	function fCleanTransport(oRequest) {
		// BUGFIX: IE - memory leak (on-page leak)
		oRequest._object.onreadystatechange	= new window.Function;
	};

	// Internet Explorer 5.0 (missing apply)
	if (!window.Function.prototype.apply) {
		window.Function.prototype.apply	= function(oRequest, oArguments) {
			if (!oArguments)
				oArguments	= [];
			oRequest.__func	= this;
			oRequest.__func(oArguments[0], oArguments[1], oArguments[2], oArguments[3], oArguments[4]);
			delete oRequest.__func;
		};
	};

	// Register new object with window
	window.XMLHttpRequest	= cXMLHttpRequest;
})();
