var w = 155;
var h = 230;
var str = '<div id="ConInfo" class="ConInfoMax">'
  str += '<div id="ConInfoHead">'
  str += '    <div id="ConInfoTitle">Contact US</div>'
  str += '    <div id="ConInfoTool"><img src="/Images/tvc/ConMax.gif" alt="Maximize" class="Hide" id="toolmax" onclick="toolSwitch(false);" /><img src="/Images/tvc/ConMi.gif" alt="Minimize" width="10" height="10" id="toolmi" onclick="toolSwitch(true);" /> <img src="/Images/tvc/ConClose.gif" alt="Close" width="10" height="10" onclick="toolclose();" /></div>'
  str += '    <div id="ConInfoMain"><h3>MSN</h3>'
  str += '<img src="/images/Mall/msn.gif" border="0" align="absmiddle"/> <a href="msnim:chat?contact=leo@tvc-tech.com">leo@tvc-tech.com</a><br />'
  str += '<img src="/images/Mall/msn.gif" border="0" align="absmiddle"/> <a href="msnim:chat?contact=tom@tvc-tech.com">tom@tvc-tech.com</a><br />'
  str += '<h3>Skype</h3>'
  str += '<img src="/images/tvc/skype.gif" border="0" align="absmiddle"/> <a href="callto://tvcmall">Leo from TVC</a><br />'
  str += '<img src="/images/tvc/skype.gif" border="0" align="absmiddle"/> <a href="callto://tvc-tom">Tom from TVC</a><br />'
  str += '<h3>Trade Manager</h3>'
  str += '<img src="/images/tvc/alitalk.gif" border="0" align="absmiddle"/> <a href="javascript:clickAlitalk(\'tvctech\');">Leo from TVC</a><br />'
  str += '<img src="/images/tvc/alitalk.gif" border="0" align="absmiddle"/><a href="javascript:clickAlitalk(\'CN200102228\');">Tom from TVC</a></div>'
  str += '  </div>'
  str += '</div>';
//var obj = document.getElementById("divStayTopLeft");
//if (obj)str = obj.innerHTML;
if( typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat'){
document.writeln('<DIV style="z-index:9;right:0;bottom:0;height:'+h+'px;width:'+w+'px;overflow:hidden;POSITION:fixed;_position:absolute; _margin-top:expression(document.documentElement.clientHeight-this.style.pixelHeight+document.documentElement.scrollTop);">');
}
else {
document.writeln('<DIV  style="z-index:9;right:0;bottom:0;height:'+h+'px;width:'+w+'px;overflow:hidden;POSITION:fixed;*position:absolute; *top:expression(eval(document.body.scrollTop)+eval(document.body.clientHeight)-this.style.pixelHeight);">');
}
document.write('<div style="clear:both;margin:auto;overflow:hidden;text-align:left;">'+str+'</div>');
document.writeln('</DIV>');
function toolclose(){
	document.getElementById("ConInfo").className = "Hide";
}
function toolSwitch(value){
	if(value){
		document.getElementById("toolmi").className = "Hide";
		document.getElementById("toolmax").className = "";
		document.getElementById("ConInfo").className = "ConInfoMi";
	}
	else{
		document.getElementById("toolmi").className = "";
		document.getElementById("toolmax").className = "Hide";
		document.getElementById("ConInfo").className = "ConInfoMax";
	}
}
function DoPrint(){
	if(window.print) 
	{
		var BaseInfoLeft = document.getElementById("BaseInfoLeft").innerHTML;
		var ProReview = document.getElementById("ProReview").innerHTML;
		var ProContact = document.getElementById("ProContact").innerHTML;
		//ProReview = ProReview.Replace("<img","<br /><img");
		// the areas to be printed
		var css = '<style type="text/css">.css0{display:none;}' +'body,td,table,div{text-align:left;}p { line-height: 120%;text-align:left;}' +
		'.ptitle { line-height: 120%; font-size: 18px; color: #000000;clear:both;margin:auto;text-align:left;}' +
		'td { font-size: 15px; color: #000000; border-width:1px;background:none;background-color:White;text-align:left;word-wrap : break-word ;word-break:break-all;}' +
		'</style>';
		//set the css ,should be the same as the css in the  print page
		var body ='<table width="640" border="0" cellspacing="0" cellpadding="5" style="table-layout:fixed;"> ' +
		' <tr><td class="ptitle">' + BaseInfoLeft + '</td></tr><tr><td class="ptitle">Features and Specifications</td></tr><tr><td>' + ProReview + '</td></tr><tr><td class="ptitle">Contact us</td></tr><tr><td>'+ ProContact+
		' </td></tr></table>';
		// set the print format
		var winname = window.open('', "_blank", '');
		winname.document.open('text/html', 'replace');
		winname.document.writeln("<html><head><title>Print Product Info</title>"+css+"</head><body>" + body+"</body></html>");
		winname.document.close();
		// ok!
		winname.print();
	}
}