
var docsets = new Array();
docsets.push({id: 24, path: "http://file-downloader-docs.aurigma.com/Docs/FileDownloader/"});
docsets.push({id: 2, path: "http://docs.aurigma.com/Docs/GraphicsMill/"});
docsets.push({id: 30, path: "http://graphics-mill-docs.aurigma.com/Docs/GraphicsMilldotNET/"});
docsets.push({id: 28, path: "http://image-uploader-docs.aurigma.com/Docs/ImageUploader/"});
docsets.push({id: 26, path: "http://photo-editor-docs.aurigma.com/Docs/PhotoEditor/"});


if (window.top.location == window.location){
	var p = new String(window.location);
	var pl = p.toLowerCase();
	var setId=0;
		
	for (var i = 0; i < docsets.length; i++) {
		if (pl.indexOf(docsets[i].path.toLowerCase()) == 0) {
			setId = docsets[i].id;
			break;
		}
	}

	if (setId){
		var f = p.substring(p.lastIndexOf("/") + 1);

		var h = window.location.hash;

		if (h.length > 1) {
			f = f.substring(0, f.lastIndexOf("#"));
			h = "--" + h.substring(1);
		}
		else{
			h = "";
		}
		window.top.location="http://www.aurigma.com/Support/DocViewer/" + setId + "/" + f + h + ".aspx";
	}
}
else{
	window.onload=function(){
		var l=window.location;
		try{
		//	window.top.contents.syncTOC(l.href.substr((l.protocol+"//"+l.host).length).toLowerCase());
		}
		catch(e){

		}
	}
}
