﻿/*======================================================================*\
||	Copyright (c) 2006 - 2008 Webhog Inc. All Rights Reserved.	||
||									||
||	Content Management Studio™ | CMS Srv™ v3.1			||
||									||
||	Webhog Inc. o/a  World Wide Web Manitoba			||
||	306-690 St Joseph Street, Winnipeg, Manitoba r2h 3e2		||
||	Telephone: (204) 927.2100 | Toll Free: 1.877.932.4647		||
||									||
||	Names and Trademarks are Owned by the Copyright Holder.		||
\*======================================================================*/


	var	d	= document,
		doc	= null,
		sel	= null,
		range	= null,
		isIE	= (navigator.userAgent.toLowerCase().indexOf("msie") > -1),
		h	= d.getElementsByTagName("head")[0],
		u	= "../cs/wysiwyg/",
		myL	=	[	["CMStudio",	"CSS"],
					["Functions",	"JS"],
					["Create",	"JS"],
					["Load",	"JS"]
				];
	function WaitLoad() {
		try{
			for(ink = 0 ; ink < myL.length; ink++) {
				try{	var	e	= null,
						myDate	=new Date(),
						f = u+myL[ink][0]+"."+myL[ink][1]+"?date=" + myDate.getTime();
					switch(myL[ink][1]) {
						case "JS":
							e	= d.createElement("script");
							e.src	= f;
							break;
						case "CSS":
							e	= d.createElement("link");
							e.href	= f;
							e.rel	= "stylesheet";
							e.type	= "text/css";
							break;
					}
					h.appendChild(e);
				}catch(e) {
				}
			}
		}catch(e) {
			setTimeout("WaitLoad();",10);
		}
	}
	setTimeout("WaitLoad();",0);
