function toLoad() {
	// Sortable.create("imgs", {overlap: 'horizontal', constraint:'',
	// dropOnEmpty:true});
	showPreviews();

}

function googleAnalytics() {
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl."
			: "http://www.");
	document
			.write(unescape("%3Cscript src='"
					+ gaJsHost
					+ "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

	try {
		var pageTracker = _gat._getTracker("UA-11284966-1");
		pageTracker._trackPageview();
	} catch (err) {
	}
}
function counter() {
	var loc = "self";
	var top = top.location;
	if (top.indexOf("ch.vu") > 0) {
		loc = "chvu";
	}
	if (top.indexOf("tk") > 0) {
		loc = "tk";
	}
	ajax("lib/php/counter.php?loc=" + loc);
}

function noFrame() {
	if (self != top)
		top.location = self.location;
}

function seth1(h1) {
	document.getElementById("h1").innerHTML = unescape(h1);
}

function display(id,state){
	document.getElementById(id).setAttribute("style","opacity: "+ state);
}

function addMetaTag() {

	var meta = document.createElement("meta");

	var attr = document.createAttribute("name");
	attr.nodeValue = "google-site-verification";
	meta.setAttributeNode(attr);

	var cont = document.createAttribute("content");
	cont.nodeValue = "FSHRKAwNayG9mPAUYafLWRlmuu65hsyPZHVm0fVSMrU";
	meta.setAttributeNode(cont);
	
	var to = parent.document.getElementsByTagName("head");
	to = to[0];
	to.appendChild(meta);
}

function directOpen(id) {
	show(id);
}

function close() {
	// Effect.DropOut('light');
	Effect.toggle('light', 'slide', {
		duration :0.5
	});
	setTimeout(
			'document.getElementById("dark").setAttribute("style", "display: none")',
			500);
}

