<%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="Mediachase.UI.Web.Modules._default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 

<html>
  <head>
	<link rel='shortcut icon' href='<%=Mediachase.UI.Web.Util.CommonHelper.GetAbsolutePath("ibn.ico")%>' type='image/x-icon' />	
    <title>Instant Business Network</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
    <script src="../Scripts/browser.js"></script>
    <script language="JavaScript">
			
			var _pr_str="";
			var _pr_up_str="";
			function BeforePrint()
			{
				//right.focus();
				//right.print();
				var fset1 = document.getElementById("fs1");
				 _pr_up_str=fset1.rows;
				fset1.rows="0,*";
				
				var fset = document.getElementById("fs2");
				 _pr_str=fset.cols;
				fset.cols = "0, *";
			}
			
			function AfterPrint()
			{
				var fset1 = document.getElementById("fs1");
				fset1.rows=_pr_up_str;
				
				var fset = document.getElementById("fs2");
				fset.cols = _pr_str;
			}
					
			if (browseris.ie5up)
			{
				window.onbeforeprint = BeforePrint;
				window.onafterprint = AfterPrint;	
			}
			
			function loadFrame()
			{
				var fl = false;
				if (location.search)
				{
					var srchArray = getSearchData();
					if (srchArray["right"] && (self["right"].location.href != srchArray["right"]))
					{
						self["right"].location.href = srchArray["right"];
						fl = true;
					}
				}
				if(!fl)
				{
					self["right"].location.href = "../Workspace/default.aspx?BTab=Workspace";
				}
				var str = <%=showLeftFrame%>;
				if(str=="1")
					ShowLeft();
				else
					HideLeft();
			}
			
			function getSearchData()
			{
				var results = new Object();
				if (location.search.substr)
				{
					var input = location.search.substr(1);
					if (input)
					{
						var srchArray = input.split("&");
						var tempArray = new Array();
						for (var i = 0; i < srchArray.length; i++)
						{
							tempArray = srchArray[i].split("=");
							results[tempArray[0]] = unescape(tempArray[1]);
						}
					}
				}
				return results;
			}
			
			function HideLeft()
			{
				var fset = document.getElementById("fs2");
				fset.cols = "0,*";
				try{
				window.top.up.document.getElementById("imgMoveFrame").src = "../Layouts/Images/show.gif";
				window.top.right.NowMoveLeft();
				}
				catch(ex){}
			}
			
			function ShowLeft()
			{
				var fset = document.getElementById("fs2");
				var f_Left = document.getElementById("frLeft");
				if(f_Left.src.indexOf("/Modules/leftTemplate.aspx")<0)
					f_Left.src = "../Modules/leftTemplate.aspx";
				if(fset.cols && fset.cols.indexOf("0,")>=0)
					fset.cols = "200, *";
				try{
				window.top.up.document.getElementById("imgMoveFrame").src = "../Layouts/Images/hide.gif";
				window.top.right.NowMoveRight();
				}
				catch(ex){}
			}
		
		</script>
  </head>
  <FRAMESET id="fs1" rows="89,*" frameSpacing="0" frameBorder="0" onload="loadFrame()">
		<FRAME name="up" frameborder="0" SRC="../Modules/upTemplate.aspx" marginheight="0" marginwidth="0" scrolling="no"/>
		<Frameset id="fs2" cols="0,*" frameSpacing="0">
			<FRAME id="frLeft" name="left" style="BORDER-RIGHT: #6486D4 2px solid; CURSOR: w-resize" src="" scrolling="no" marginheight="0"  marginwidth="0" />
			<Frameset id="fs3" Rows="0,*" frameSpacing="0" frameBorder="0">
				<FRAME id="topright" name="topright" SCROLLING="yes" marginheight="0" marginwidth="0" style="BORDER-bottom: #6486D4 2px solid; CURSOR: N-resize"/>
				<FRAME id="right" name="right" SCROLLING="yes" marginheight="0" marginwidth="0" src="../Common/Empty.html"/>
			</Frameset>
		</Frameset>
	</FRAMESET>
</html>
