// breaks page out of framsets
if (window != top) top.location.replace(location.href);

//window.onload
function init() {
	// quit if this function has already been called
	if (arguments.callee.done) return;
	
	// flag this function so we don't do the same thing twice
	arguments.callee.done = true;

//*/
	domEl('p','This site\'s design is only visible in a graphical browser that supports web standards. The content is still accessible to any browser or Internet device.',[['id','test'],['class','upgrade']],document.body,0,1);
	el_test = document.getElementById('test');
//*/

	
	// create the "page loaded" message
	 //var text = document.createTextNode("Page loaded!");
	 //var message = document.getElementById("message");
	 //message.appendChild(text);
};

/* for Mozilla */
if (document.addEventListener) {
	 document.addEventListener("DOMContentLoaded", init, null);
}

/* for Internet Explorer */
/*@cc_on @*/
/*@if (@_win32)
	 document.write("<script defer src=ie_onload.js><"+"/script>");
/*@end @*/

/* for other browsers */
window.onload = init;


//inserts warning statement
var domEl = function(e,c,a,p,x,before) {
if(e||c) {
	if (typeof c=='string') {
	 c = c.length ? [c] : [];
	} else if (typeof c=='object' && !c.length) {
	 c = [c];
	}
	//c=(typeof c=='string'||(typeof c=='object'&&!c.length))?[c]:c;	
	e=(!e&&c.length==1)?document.createTextNode(c[0]):e;	
	var n = (typeof e=='string')?document.createElement(e) : !(e&&e===c[0])?e.cloneNode(false):e.cloneNode(true);	
	if(e.nodeType!=3) {
		c[0]===e?c[0]='':'';
		for(var i=0,j=c.length;i<j;i++) typeof c[i]=='string'?n.appendChild(document.createTextNode(c[i])):n.appendChild(c[i].cloneNode(true));
		if(a) {for(var i=(a.length-1);i>=0;i--) a[i][0]=='class'?n.className=a[i][1]:n.setAttribute(a[i][0],a[i][1]);}
	}
}
	if(!p)return n;
	p=(typeof p=='object'&&!p.length)?[p]:p;
	for(var i=(p.length-1);i>=0;i--) {
		if(x){while(p[i].firstChild)p[i].removeChild(p[i].firstChild);
			if(!e&&!c&&p[i].parentNode)p[i].parentNode.removeChild(p[i]);}
		if(!before){
			if(n) p[i].appendChild(n.cloneNode(true));
		} else {
			//alert(p[i]);
			var pchild = p[i].firstChild;
			if(n) p[i].insertBefore(n.cloneNode(true),pchild);
		}
	}	
}



