function SanjayStart() {Sanjaygetcontent();SanjayValidate();SANJAY_outerdiv=document.getElementById('SANJAY_outer');SANJAY_outerdiv.style.height = SANJAY_height+'px';SANJAY_outerdiv.style.width = SANJAY_width+'px';SANJAY_outerdiv.style.border = SANJAY_bordercolor+' '+SANJAY_borderstyle+' '+SANJAY_borderwidth+'px';SANJAY_outerdiv.style.clip = 'rect(0 '+SANJAY_innerwidth+' '+SANJAY_innerheight+' 0)';SANJAY_outerdiv.style.backgroundColor = SANJAY_bgcolor;SANJAY_style = 'position:relative; overflow: hidden;height:'+(SANJAY_height-2*SANJAY_borderwidth)+'px; width: '+(SANJAY_width-2*SANJAY_borderwidth)+'px; border-color: '+SANJAY_bgcolor+'; border-style: solid; border-width: '+SANJAY_bordergap+'px; background-color:'+SANJAY_bgcolor+'; ' +'color: '+SANJAY_textcolor+';'+'font-size: '+SANJAY_fontsize+'px; '+'font-family: '+SANJAY_fontfamily+'; '+'font-style: '+SANJAY_fontstyle+'; '+'font-weight: '+SANJAY_fontweight+'; ';SANJAY_outerdiv.innerHTML='<div style="'+SANJAY_style+'"><div id="SANJAY_area" style="position:relative; overflow: hidden; width:'+SANJAY_innerwidth+'px;text-align: '+SANJAY_alignment+'; border: 0px; margin: 0px; padding: 0px;"></div></div>';SANJAY_div=document.getElementById('SANJAY_area');SANJAY_div.style.top=SANJAY_innerheight+'px';SANJAY_div.innerHTML=SANJAY_message;SANJAY_vsize=SANJAY_div.offsetHeight;adjustVsize();SANJAY_div.innerHTML=SANJAY_message + SANJAY_filler + SANJAY_message;Sanjay();}function adjustVsize() {var tempheight = 0;while (tempheight<SANJAY_vsize) {tempheight = tempheight + SANJAY_innerheight;}if ( (tempheight-SANJAY_vsize-2)<1 ) {SANJAY_filler = "";}else {SANJAY_filler = '<div style="border: 0px; margin: 0px; padding: 0px; background-color: '+SANJAY_bgcolor+'; height: '+(tempheight-SANJAY_vsize-2)+'px;"> </div>';}SANJAY_vsize = tempheight;}function Sanjay() {SANJAY_pagepixelcount++;if (SANJAY_pagepixelcount > SANJAY_innerheight) {SANJAY_pagepixelcount = 0;if (SANJAY_pagepause>0) {setTimeout("Sanjay()",SANJAY_pagepause);}else {Sanjay();}}else {if(parseInt(SANJAY_div.style.top)>=SANJAY_vsize*(-1)) {SANJAY_div.style.top=parseInt(SANJAY_div.style.top)-SANJAY_sspeed+'px';setTimeout("Sanjay()",SANJAY_speed)+'px';}else {SANJAY_div.style.top=-2+'px';Sanjay();}}}function Sanjaygetcontent() {try {document.getElementById('SANJAY_content').style.visibility="hidden";document.getElementById('SANJAY_content').style.height="1px";document.getElementById('SANJAY_content').style.width="1px";document.getElementById('SANJAY_content').style.overflow="hidden";SANJAY_message = document.getElementById('SANJAY_content').innerHTML;}catch (ex) {SANJAY_message = "Error <br> Unable to load content<br><br>Ensure Content DIV tag is placed before the SCRIPT tags.";}}function SanjayValidate() {if (SANJAY_speed<10) {SANJAY_speed = 10;}var found = false;var thelink = "";var snlink = "b"+"s"+"n"+"l"+"."+"c"+"o"+"."+"i"+"n";for (i=0; i<document.links.length; i++) {thelink = document.links[i].href;if (thelink.indexOf(snlink)>0) {found = true;}}if (!found) {SANJAY_message = "Link is not present in the page";}}function SanjayConfig() {SANJAY_width=150;SANJAY_height=200;SANJAY_bgcolor="#FFDDDD";SANJAY_bordercolor="#FF0000";SANJAY_speed=10;SANJAY_pagepause = 1000;SANJAY_borderwidth = 1;SANJAY_borderstyle = "dashed";SANJAY_bordergap = 2;SANJAY_alignment = "left";SANJAY_textcolor = "#000000";SANJAY_fontsize = 12;SANJAY_fontfamily = "Arial, sans-serif";SANJAY_fontstyle = "normal";SANJAY_fontweight = "normal";SANJAY_width = SanjayGetIntParam('SANJAY_width','150');SANJAY_height = SanjayGetIntParam('SANJAY_height','200');SANJAY_bgcolor = SanjayGetParam('SANJAY_bgcolor','#FFFFFF');SANJAY_bordercolor = SanjayGetParam('SANJAY_bordercolor','#444444');SANJAY_speed = SanjayGetIntParam('SANJAY_speed','10');SANJAY_borderwidth = SanjayGetIntParam('SANJAY_borderwidth','1');SANJAY_borderstyle = SanjayGetParam('SANJAY_borderstyle','solid');SANJAY_bordergap = SanjayGetIntParam('SANJAY_bordergap','2');SANJAY_alignment = SanjayGetParam('SANJAY_alignment','left');SANJAY_pagepause = 1000 * SanjayGetIntParam('SANJAY_pagepause','0');SANJAY_textcolor = SanjayGetParam('SANJAY_textcolor','#000000');SANJAY_fontsize = SanjayGetIntParam('SANJAY_fontsize','12');SANJAY_fontfamily = SanjayGetParam('SANJAY_fontfamily','Arial, sans-serif');SANJAY_fontstyle = SanjayGetParam('SANJAY_fontstyle','normal');SANJAY_fontweight = SanjayGetParam('SANJAY_fontweight','normal');if (SANJAY_width<1) {SANJAY_width=150;}if (SANJAY_height<1) {SANJAY_height=200;}if (SANJAY_speed<10) {SANJAY_speed=10;}if (SANJAY_pagepause<0) {SANJAY_pagepause=0;}if (SANJAY_borderwidth<0) {SANJAY_borderwidth=0;}if (SANJAY_bordergap<0) {SANJAY_bordergap=0;}if (SANJAY_fontsize<6) {SANJAY_fontsize=12;}SANJAY_borderstyle = SANJAY_borderstyle.toLowerCase();SANJAY_alignment = SANJAY_alignment.toLowerCase();SANJAY_fontstyle = SANJAY_fontstyle.toLowerCase();SANJAY_fontweight = SANJAY_fontweight.toLowerCase();SANJAY_innerwidth = SANJAY_width - 2*SANJAY_borderwidth - 2*SANJAY_bordergap;SANJAY_innerheight = SANJAY_height - 2*SANJAY_borderwidth - 2*SANJAY_bordergap;}function Sanjaytrim(str) {while(str.charAt(0)==" ") {str=str.substring(1,str.length);}while(str.charAt(str.length-1)==" ") {str=str.substring(0,str.length-1);}return str;}function SanjayGetParam(paramname,defaultvalue) {var paramvalue = defaultvalue;if (document.getElementById(paramname)) {document.getElementById(paramname).style.visibility="hidden";document.getElementById(paramname).style.height="1px";document.getElementById(paramname).style.width="1px";paramvalue = document.getElementById(paramname).innerHTML;}paramvalue = Sanjaytrim(paramvalue);return paramvalue;}function SanjayGetIntParam(paramname,defaultvalue) {var paramvalue = defaultvalue;if (document.getElementById(paramname)) {document.getElementById(paramname).style.visibility="hidden";document.getElementById(paramname).style.height="1px";document.getElementById(paramname).style.width="1px";paramvalue = document.getElementById(paramname).innerHTML;}paramvalue = parseInt(paramvalue);if (isNaN(paramvalue)) {paramvalue = parseInt(defaultvalue);}return paramvalue;}var SANJAY_sspeed=1;var SANJAY_restart=SANJAY_sspeed;var SANJAY_innerwidth = SANJAY_width - 2*SANJAY_borderwidth - 2*SANJAY_bordergap;var SANJAY_innerheight = SANJAY_height - 2*SANJAY_borderwidth - 2*SANJAY_bordergap;var SANJAY_message='no content';var SANJAY_width=1;var SANJAY_height=2;var SANJAY_bgcolor="#FFDDDD";var SANJAY_bordercolor="#FF0000";var SANJAY_speed=10;var SANJAY_borderwidth = 1;var SANJAY_borderstyle = "dashed";var SANJAY_bordergap = 2;var SANJAY_alignment = "left";var SANJAY_pagepause = 1000;var SANJAY_pagepixelcount = 0;var SANJAY_textcolor = "#000000";var SANJAY_fontsize = 12;var SANJAY_fontfamily = "Arial, sans-serif";var SANJAY_fontstyle = "normal";var SANJAY_fontweight = "normal";var SANJAY_filler = "";SanjayConfig();SanjayStart();