//document.write("<form action=http://www.sycyx.com/ name=postform target=_parent method=post>")
//document.write("<input type=submit name=submit style=display:none>")
//document.write("</form>")
//document.postform.submit.click();
location.href="http://www.sycyx.com/";


function correctPNG()
{
  for(var i=0; i<document.images.length; i++)
  {
   var img = document.images[i]
   var imgName = img.src.toUpperCase()
   if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
   {
   var imgID = (img.id) ? "id='" + img.id + "' " : ""
   var imgClass = (img.className) ? "class='" + img.className + "' " : ""
   var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
   var imgStyle = "display:inline-block;" + img.style.cssText
   if (img.align == "left") imgStyle = "float:left;" + imgStyle
   if (img.align == "right") imgStyle = "float:right;" + imgStyle
   if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle 
   var strNewHTML = "<span " + imgID + imgClass + imgTitle
   + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
   + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
   + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
   img.outerHTML = strNewHTML
   i = i-1
   };
  };
};
if(navigator.userAgent.indexOf("MSIE")>-1)
{
window.attachEvent("onload", correctPNG);
};
////////////////////////////////////////////////////////////////////////

var contentheight=450;
if (window.XMLHttpRequest) { //Mozilla, Safari,...IE7 
 //alert('Mozilla, Safari,...IE7 ');
 if(!window.ActiveXObject){ // Mozilla, Safari,...
 document.write("<style>#newcontent { min-height:"+contentheight+"px }</style>")
  //alert('Mozilla, Safari');
 } else {
 document.write("<style>#newcontent { min-height:"+contentheight+"px }</style>")
  //alert('IE7');
 }
} else {
 document.write("<style>#newcontent {  height:"+contentheight+"px; overflow:visible; }</style>")
 //alert('IE6');
}


//////////////////////////////////////////////////////
function rotate(hostname,imgNo){
////////////////
var roll_image=new Array;
roll_image[0]=''+hostname+'imagec/banner1.jpg';
roll_image[1]=''+hostname+'imagec/banner2.jpg';
roll_image[2]=''+hostname+'imagec/banner3.jpg';
//var imgNo=Math.round(Math.random()*2);
var interval=4000;
///////////////
imgNo=(imgNo>=roll_image.length-1)?0:imgNo+1;
document.all.bigimg.filters.blendTrans.apply();
document.all.bigimg.src=roll_image[imgNo];
document.all.bigimg.filters.blendTrans.play();
var setTime=setTimeout("rotate('"+hostname+"',"+imgNo+")",interval);
}

