var btnon = 0;
function ctScroll() { 
	this.name = "ctScroll"; 
	this.item = new Array(); this.itemcount = 0; this.itemoffset = 0; 
	this.item_image = new Array(); this.item_imagecount = 0; this.item_imageoffset = 0; 
	this.currentspeed = 0; this.scrollspeed = 50; this.pausedelay = 1000; this.pausemouseover = false; this.stop = 0; this.height = 100; this.heightGap = 0; this.width = 100; this.height_image = 100; this.width_image = 100; this.stopHeight=0; this.count=0; this.flag=true; 
	this.height2 = 50; this.width2 = 50;
	//this.position="absolute"; 
	//this.item_position="absolute"; 
	this.time_id = null; 
	this.item_txt = new Array(); this.item_txtcount = 0; this.item_txtoffset = 0; 
	//this.item_txt_position="absolute";

	this.add = function () { 
		var text = arguments[0]; this.item[this.itemcount] = text; this.itemcount = this.itemcount + 1; }; 
	
	this.add2 = function () { 
		var text = arguments[0]; this.item_txt[this.item_txtcount] = text; this.item_txtcount = this.item_txtcount + 1; };	

	this.addImage = function () { 
		var text = arguments[0]; this.item_image[this.item_imagecount] = text; this.item_imagecount = this.item_imagecount + 1; }; 
		
	this.setText = function () { 
		this.display(); this.currentspeed = this.scrollspeed; 
		obj = document.getElementById(this.name+'item0').style; 
		obj.display='block'; this.count++; 
		this.time_id = setTimeout(this.name+'.scroll()',this.currentspeed); 
	}; 
	
	this.setText2 = function () { 
		this.display2(); this.currentspeed = this.scrollspeed;
		obj_txt = document.getElementById(this.name+'item_txt0').style;
		obj_txt.display='block'; 
	};

	this.setImage = function () { 
		//now = new Date(); ran = now % this.item_imagecount; temp = this.item_image[ran]; this.item_image[ran] = this.item_image[0]; this.item_image[0] = temp; 
		this.displayImage(); 
		obj_image = document.getElementById(this.name+'item_image0').style; obj_image.display='block'; }; 
	
	this.display = function () { 
		document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.itemcount; i++) { 
			document.write('<div id="'+this.name+'item'+i+'"style="left:120px; width:'+this.width+';position:'+this.item_position+'; display:none; ">'); document.write(this.item[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	}; 
	
	this.display2 = function () { 
		document.write('<div id="'+this.name+'_txt" style="height:'+this.height2+';width:'+this.width2+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.item_txtcount; i++) { 
			document.write('<div id="'+this.name+'item_txt'+i+'"style="left:10px; width:'+this.width2+';position:'+this.item_txt_position+'; display:none; ">');
			document.write(this.item_txt[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	};

	this.displayImage = function () { 
		var test = '<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'; 
		for(var i = 0; i < this.item_imagecount; i++) { 
			test += '<div id="'+this.name+'item_image'+i+'"style="left:0px; width:'+this.width_image+'; display:none; text-align:center;">'; test += this.item_image[i]; test += '</div>'; 
		} 
		test += '</div>'; 
		document.write('<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.item_imagecount; i++) { 
			document.write('<div id="'+this.name+'item_image'+i+'"style="left:0px; width:'+this.width_image+'; display:none; text-align:center;">'); document.write(this.item_image[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	}; 
	
	this.scroll = function () { 
		this.currentspeed = this.scrollspeed; 
		if ( !this.stop ) { this.imageChange(); } 
		this.time_id = window.setTimeout(this.name+".scroll()",this.currentspeed); 
	}; 
	
	this.imageChange = function () { 
		for (k = 0; k < this.item_imagecount; k++) { 
			obj_image = document.getElementById(this.name+'item_image'+k).style; 
			if (this.count % this.item_imagecount == k) { obj_image.display = 'block'; } 
			else { obj_image.display = 'none'; } 
		} 
		for (k = 0; k < this.itemcount; k++) { 
			obj = document.getElementById(this.name+'item'+k).style; 
			if (this.count % this.itemcount == k) { obj.display = 'block'; } else { obj.display = 'none'; } 
		} 
		for (k = 0; k < this.item_txtcount; k++) { 
			obj_txt = document.getElementById(this.name+'item_txt'+k).style; 
			if (this.count % this.item_txtcount == k) { obj_txt.display = 'block'; } else { obj_txt.display = 'none'; } 
		}
		this.count++; 
	}; 
	this.onmouseover = function () { 
		if ( this.pausemouseover ) { this.stop = 1; } 
	}; 
	for (k = 0; k < this.item_imagecount; k++) { 
		obj_image = document.getElementById(this.name+'item_image'+k).style; 
		if (this.count % this.item_imagecount == k) { 
			obj_image.display = 'block'; 
		} else { 
			obj_image.display = 'none'; 
		} 
	} 
	this.onmouseout = function () { 
		if ( this.pausemouseover ) { this.stop = 0; } 
	}; 

	this.nextItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		if ( this.item_txtcount <= this.item_txtoffset ) 
			this.item_txtoffset = this.item_txtoffset % this.item_txtcount; 
		
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i+1; obj_image.display="none"; 
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; obj_image.display = "block"; 
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style; 
				obj_image.display = "block"; 
			} 
		} 
		for (i = 0; i < this.itemcount; i++) { 
			obj = document.getElementById(this.name+'item'+i).style; 
			if ( obj.display == "block" ) { 
				this.itemoffset = i+1;obj.display="none"; 
			} 
		} 
		if (this.itemoffset < this.itemcount) { 
			obj = document.getElementById(this.name+'item'+this.itemoffset).style; obj.display = "block"; 
		} else { 
			obj = document.getElementById(this.name+'item0').style; obj.display = "block"; 
		}
		
		for (i = 0; i < this.item_txtcount; i++) { 
			obj_txt = document.getElementById(this.name+'item_txt'+i).style; 
			if ( obj_txt.display == "block" ) { 
				this.item_txtoffset = i+1;obj_txt.display="none"; 
			} 
		} 
		if (this.item_txtoffset < this.item_txtcount) { 
			obj_txt = document.getElementById(this.name+'item_txt'+this.item_txtoffset).style; obj_txt.display = "block"; 
		} else { 
			obj_txt = document.getElementById(this.name+'item_txt0').style; obj_txt.display = "block"; 
		}
		this.count++; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		if(this.time_id != null) window.clearTimeout(this.time_id); 
		this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	} 	

	this.prevItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		if ( this.item_txtcount <= this.item_txtoffset ) 
			this.item_txtoffset = this.item_txtoffset % this.item_txtcount; 
		
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i-1; 
				obj_image.display="none";
				
				if ( this.item_imageoffset < 0 ) this.item_imageoffset = this.item_imagecount-1;
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; obj_image.display = "block"; 
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style; 
				obj_image.display = "block"; 
			} 
		} 
		for (i = 0; i < this.itemcount; i++) { 
			obj = document.getElementById(this.name+'item'+i).style; 
			if ( obj.display == "block" ) { 
				this.itemoffset = i-1;
				obj.display="none"; 

				if ( this.itemoffset < 0 ) this.itemoffset = this.itemcount-1;
			} 
		} 
		if (this.itemoffset < this.itemcount) { 
			obj = document.getElementById(this.name+'item'+this.itemoffset).style; obj.display = "block"; 
		} else { 
			obj = document.getElementById(this.name+'item0').style; obj.display = "block"; 
		}
		
		for (i = 0; i < this.item_txtcount; i++) { 
			obj_txt = document.getElementById(this.name+'item_txt'+i).style; 
			if ( obj_txt.display == "block" ) { 
				this.item_txtoffset = i-1;
				obj_txt.display="none"; 

				if ( this.item_txtoffset < 0 ) this.item_txtoffset = this.item_txtcount-1;
			} 
		} 
		if (this.item_txtoffset < this.item_txtcount) { 
			obj_txt = document.getElementById(this.name+'item_txt'+this.item_txtoffset).style; obj_txt.display = "block"; 
		} else { 
			obj_txt = document.getElementById(this.name+'item_txt0').style; obj_txt.display = "block"; 
		}
		this.count--; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		if(this.time_id != null) window.clearTimeout(this.time_id); 
		this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	} 	
}

function ctScroll2() { 
	this.name = "ctScroll2"; 
	this.item = new Array(); this.itemcount = 0; this.itemoffset = 0; 
	this.item_image = new Array(); this.item_imagecount = 0; this.item_imageoffset = 0; 
	this.currentspeed = 0; this.scrollspeed = 50; this.pausedelay = 1000; this.pausemouseover = false; this.stop = 0; this.height = 100; this.heightGap = 0; this.width = 100; this.height_image = 100; this.width_image = 100; this.stopHeight=0; this.count=0; this.flag=true; 
	//this.position="absolute"; this.item_position="absolute"; 
	this.time_id = null; 
	
	this.add = function () { 
		var text = arguments[0]; this.item[this.itemcount] = text; this.itemcount = this.itemcount + 1; }; 
	
	this.addImage = function () { 
		var text = arguments[0]; this.item_image[this.item_imagecount] = text; this.item_imagecount = this.item_imagecount + 1; }; 
		
	this.setText = function () { 
		this.display(); this.currentspeed = this.scrollspeed; 
		obj = document.getElementById(this.name+'item0').style; 
		obj.display='block'; this.count++; 
		//this.time_id = setTimeout(this.name+'.scroll()',this.currentspeed); 
	}; 

	this.setImage = function () { 
		//now = new Date(); ran = now % this.item_imagecount; temp = this.item_image[ran]; this.item_image[ran] = this.item_image[0]; this.item_image[0] = temp; 
		this.displayImage(); 
		obj_image = document.getElementById(this.name+'item_image0').style; obj_image.display='block'; }; 
	
	this.display = function () { 
		document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.itemcount; i++) { 
			document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+';position:'+this.item_position+'; display:none; ">'); document.write(this.item[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	}; 

	this.displayImage = function () { 
		var test = '<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'; 
		for(var i = 0; i < this.item_imagecount; i++) { 
			test += '<div id="'+this.name+'item_image'+i+'"style="left:0px; width:'+this.width_image+'; display:none; text-align:center;">'; test += this.item_image[i]; test += '</div>'; 
		} 
		test += '</div>'; 
		document.write('<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.item_imagecount; i++) { 
			document.write('<div id="'+this.name+'item_image'+i+'"style="left:0px; width:'+this.width_image+'; display:none; text-align:center;">'); document.write(this.item_image[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	}; 
	
	this.scroll = function () { 
		this.currentspeed = this.scrollspeed; 
		if ( !this.stop ) { this.imageChange(); } 
		//this.time_id = window.setTimeout(this.name+".scroll()",this.currentspeed); 
	}; 
	
	this.imageChange = function () { 
		for (k = 0; k < this.item_imagecount; k++) { 
			obj_image = document.getElementById(this.name+'item_image'+k).style; 
			if (this.count % this.item_imagecount == k) { obj_image.display = 'block'; } 
			else { obj_image.display = 'none'; } 
		} 
		for (k = 0; k < this.itemcount; k++) { 
			obj = document.getElementById(this.name+'item'+k).style; 
			if (this.count % this.itemcount == k) { obj.display = 'block'; } else { obj.display = 'none'; } 
		} 
		this.count++; 
	}; 
	this.onmouseover = function () { 
		if ( this.pausemouseover ) { this.stop = 1; } 
	}; 
	for (k = 0; k < this.item_imagecount; k++) { 
		obj_image = document.getElementById(this.name+'item_image'+k).style; 
		if (this.count % this.item_imagecount == k) { 
			obj_image.display = 'block'; 
		} else { 
			obj_image.display = 'none'; 
		} 
	} 
	this.onmouseout = function () { 
		if ( this.pausemouseover ) { this.stop = 0; } 
	}; 

	this.nextItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i+1; obj_image.display="none"; 
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; obj_image.display = "block"; 
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style; 
				obj_image.display = "block"; 
			} 
		} 
		for (i = 0; i < this.itemcount; i++) { 
			obj = document.getElementById(this.name+'item'+i).style; 
			if ( obj.display == "block" ) { 
				this.itemoffset = i+1;obj.display="none"; 
			} 
		} 
		if (this.itemoffset < this.itemcount) { 
			obj = document.getElementById(this.name+'item'+this.itemoffset).style; obj.display = "block"; 
		} else { 
			obj = document.getElementById(this.name+'item0').style; obj.display = "block"; 
		}
		
		this.count++; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		if(this.time_id != null) window.clearTimeout(this.time_id); 
		//this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	}
	
	this.prevItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		//if ( this.itemoffset < 0 ) 
		//	this.itemoffset = 2; 
		//if ( this.item_imageoffset < 0 ) 
		//	this.item_imageoffset = 2; 
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i-1; 
				obj_image.display="none"; 
				
				if ( this.item_imageoffset < 0 ) this.item_imageoffset = this.item_imagecount-1; 
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; 
				obj_image.display = "block"; 
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style; 
				obj_image.display = "block"; 
			} 
		} 
		for (i = 0; i < this.itemcount; i++) { 
			obj = document.getElementById(this.name+'item'+i).style; 
			if ( obj.display == "block" ) { 
				this.itemoffset = i-1;
				obj.display="none"; 

				if ( this.itemoffset < 0 ) this.itemoffset = this.itemcount-1; 
			} 
		} 
		if (this.itemoffset < this.itemcount) { 
			obj = document.getElementById(this.name+'item'+this.itemoffset).style; 
			obj.display = "block"; 
		} else { 
			obj = document.getElementById(this.name+'item0').style; obj.display = "block"; 
		}
		
		this.count--; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		if(this.time_id != null) window.clearTimeout(this.time_id); 
		//this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	}
}

function ctScroll3() { 
	this.name = "ctScroll3"; 
	this.item = new Array(); this.itemcount = 0; this.itemoffset = 0; 
	this.item_image = new Array(); this.item_imagecount = 0; this.item_imageoffset = 0; 
	this.currentspeed = 0; this.scrollspeed = 50; this.pausedelay = 1000; this.pausemouseover = false; this.stop = 0; this.height = 100; this.heightGap = 0; this.width = 100; this.height_image = 100; this.width_image = 100; this.stopHeight=0; this.count=0; this.flag=true; 
	//this.position="absolute"; this.item_position="absolute"; 
	this.time_id = null; 
	this.item_txt = new Array(); this.item_txtcount = 0; this.item_txtoffset = 0; //this.item_txt_position="absolute";

	this.add = function () { 
		var text = arguments[0]; this.item[this.itemcount] = text; this.itemcount = this.itemcount + 1; }; 
	
	this.add2 = function () { 
		var text = arguments[0]; this.item_txt[this.item_txtcount] = text; this.item_txtcount = this.item_txtcount + 1; };	

	this.addImage = function () { 
		var text = arguments[0]; this.item_image[this.item_imagecount] = text; this.item_imagecount = this.item_imagecount + 1; }; 
		
	this.setText = function () { 
		this.display(); this.currentspeed = this.scrollspeed; 
		obj = document.getElementById(this.name+'item0').style; 
		obj.display='block'; this.count++; 
		//this.time_id = setTimeout(this.name+'.scroll()',this.currentspeed); 
	}; 
	
	this.setText2 = function () { 
		this.display2(); this.currentspeed = this.scrollspeed;
		obj_txt = document.getElementById(this.name+'item_txt0').style;
		obj_txt.display='block'; 
	};

	this.setImage = function () { 
		//now = new Date(); ran = now % this.item_imagecount; temp = this.item_image[ran]; this.item_image[ran] = this.item_image[0]; this.item_image[0] = temp; 
		this.displayImage(); 
		obj_image = document.getElementById(this.name+'item_image0').style; obj_image.display='block'; }; 
	
	this.display = function () { 
		document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.itemcount; i++) { 
			document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+';position:'+this.item_position+'; display:none; ">'); document.write(this.item[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	}; 
	
	this.display2 = function () { 
		document.write('<div id="'+this.name+'_txt" style="height:'+this.height+';width:'+this.width+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.item_txtcount; i++) { 
			document.write('<div id="'+this.name+'item_txt'+i+'"style="left:0px; width:'+this.width+';position:'+this.item_txt_position+'; display:none; ">');
			document.write(this.item_txt[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	};

	this.displayImage = function () { 
		var test = '<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'; 
		for(var i = 0; i < this.item_imagecount; i++) { 
			test += '<div id="'+this.name+'item_image'+i+'"style="left:0px; width:'+this.width_image+'; display:none; text-align:center;">'; test += this.item_image[i]; test += '</div>'; 
		} 
		test += '</div>'; 
		document.write('<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.item_imagecount; i++) { 
			document.write('<div id="'+this.name+'item_image'+i+'"style="left:0px; width:'+this.width_image+'; display:none; text-align:center;">'); document.write(this.item_image[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	}; 
	
	this.scroll = function () { 
		this.currentspeed = this.scrollspeed; 
		if ( !this.stop ) { this.imageChange(); } 
		//this.time_id = window.setTimeout(this.name+".scroll()",this.currentspeed); 
	}; 
	
	this.imageChange = function () { 
		for (k = 0; k < this.item_imagecount; k++) { 
			obj_image = document.getElementById(this.name+'item_image'+k).style; 
			if (this.count % this.item_imagecount == k) { obj_image.display = 'block'; } 
			else { obj_image.display = 'none'; } 
		} 
		for (k = 0; k < this.itemcount; k++) { 
			obj = document.getElementById(this.name+'item'+k).style; 
			if (this.count % this.itemcount == k) { obj.display = 'block'; } else { obj.display = 'none'; } 
		} 
		for (k = 0; k < this.item_txtcount; k++) { 
			obj_txt = document.getElementById(this.name+'item_txt'+k).style; 
			if (this.count % this.item_txtcount == k) { obj_txt.display = 'block'; } else { obj_txt.display = 'none'; } 
		}
		this.count++; 
	}; 
	this.onmouseover = function () { 
		if ( this.pausemouseover ) { this.stop = 1; } 
	}; 
	for (k = 0; k < this.item_imagecount; k++) { 
		obj_image = document.getElementById(this.name+'item_image'+k).style; 
		if (this.count % this.item_imagecount == k) { 
			obj_image.display = 'block'; 
		} else { 
			obj_image.display = 'none'; 
		} 
	} 
	this.onmouseout = function () { 
		if ( this.pausemouseover ) { this.stop = 0; } 
	}; 

	this.nextItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		if ( this.item_txtcount <= this.item_txtoffset ) 
			this.item_txtoffset = this.item_txtoffset % this.item_txtcount; 
		
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i+1; obj_image.display="none"; 
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; obj_image.display = "block"; 
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style; 
				obj_image.display = "block"; 
			} 
		} 
		for (i = 0; i < this.itemcount; i++) { 
			obj = document.getElementById(this.name+'item'+i).style; 
			if ( obj.display == "block" ) { 
				this.itemoffset = i+1;obj.display="none"; 
			} 
		} 
		if (this.itemoffset < this.itemcount) { 
			obj = document.getElementById(this.name+'item'+this.itemoffset).style; obj.display = "block"; 
		} else { 
			obj = document.getElementById(this.name+'item0').style; obj.display = "block"; 
		}
		
		for (i = 0; i < this.item_txtcount; i++) { 
			obj_txt = document.getElementById(this.name+'item_txt'+i).style; 
			if ( obj_txt.display == "block" ) { 
				this.item_txtoffset = i+1;obj_txt.display="none"; 
			} 
		} 
		if (this.item_txtoffset < this.item_txtcount) { 
			obj_txt = document.getElementById(this.name+'item_txt'+this.item_txtoffset).style; obj_txt.display = "block"; 
		} else { 
			obj_txt = document.getElementById(this.name+'item_txt0').style; obj_txt.display = "block"; 
		}
		this.count++; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		//if(this.time_id != null) window.clearTimeout(this.time_id); 
		//this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	} 	

	this.prevItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		if ( this.item_txtcount <= this.item_txtoffset ) 
			this.item_txtoffset = this.item_txtoffset % this.item_txtcount; 
		
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i-1; 
				obj_image.display="none";
				
				if ( this.item_imageoffset < 0 ) this.item_imageoffset = this.item_imagecount-1; 
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; obj_image.display = "block"; 
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style; 
				obj_image.display = "block"; 
			} 
		} 
		for (i = 0; i < this.itemcount; i++) { 
			obj = document.getElementById(this.name+'item'+i).style; 
			if ( obj.display == "block" ) { 
				this.itemoffset = i-1;
				obj.display="none";
				
				if ( this.itemoffset < 0 ) this.itemoffset = this.itemcount-1; 
			} 
		} 
		if (this.itemoffset < this.itemcount) { 
			obj = document.getElementById(this.name+'item'+this.itemoffset).style; obj.display = "block"; 
		} else { 
			obj = document.getElementById(this.name+'item0').style; obj.display = "block"; 
		}
		
		for (i = 0; i < this.item_txtcount; i++) { 
			obj_txt = document.getElementById(this.name+'item_txt'+i).style; 
			if ( obj_txt.display == "block" ) { 
				this.item_txtoffset = i-1;
				obj_txt.display="none";
				
				if ( this.item_txtoffset < 0 ) this.item_txtoffset = this.item_txtcount-1;
			} 
		} 
		if (this.item_txtoffset < this.item_txtcount) { 
			obj_txt = document.getElementById(this.name+'item_txt'+this.item_txtoffset).style; obj_txt.display = "block"; 
		} else { 
			obj_txt = document.getElementById(this.name+'item_txt0').style; obj_txt.display = "block"; 
		}
		this.count--; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		//if(this.time_id != null) window.clearTimeout(this.time_id); 
		//this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	} 	
}

function Main_Navi(cate, idx, idx2)
{
	var url;
    //K-Stamp ¼Ò½Ä
    if(cate=='spks0101') url = '/board/board.jsp?site=&id=spks0101&cate=&mode=view&idx='+idx;  //°øÁö»çÇ×
	else if(cate=='spks0201') url = '/board/board.jsp?site=&id=spks0201&cate=&mode=view&idx='+idx; //¿ìÃëµ¿Çâ
	else if(cate=='spks0301') url = '/board/board.jsp?site=&id=spks0301&cate=&mode=view&idx='+idx; //½Å±Ô¹ßÇàÁ¤º¸
	else if(cate=='spks0401') url = '/board/board.jsp?site=&id=spks0401&cate=&mode=view&idx='+idx; //ÇØ¿Ü¼Ò½Ä

	//¿ìÇ¥Àü½ÃÈ¸
	else if(cate=='spce0101') url = '/board/board.jsp?site=&id=spce0101&cate=&desc=asc&menuID=spce0101&mode=view&idx='+idx; //"±¹³»Àü½ÃÈ¸¾È³»
	else if(cate=='korea_expo') url = '/sp/ce/spce0202.jsp?expoGubun=korea_expo&expo_idx='+idx; //´ëÇÑ¹Î±¹ ¿ìÇ¥Àü½ÃÈ¸(¼Ò°³)
	else if(cate=='spce0203') url = '/sp/ce/spce0204.jsp?prize_idx='+idx2+'&expoGubun=korea_expo&expo_idx='+idx; //´ëÇÑ¹Î±¹ ¿ìÇ¥Àü½ÃÈ¸(¾È³»)
	else if(cate=='spce0205') url = '/sp/ce/spce0206.jsp?movie_idx='+idx2+'&expoGubun=korea_expo&expo_idx='+idx; //´ëÇÑ¹Î±¹ ¿ìÇ¥Àü½ÃÈ¸(µ¿¿µ»ó)
	else if(cate=='fila_korea') url = '/sp/ce/spce0302.jsp?expoGubun=fila_korea&expo_idx='+idx; //ÇÊ¶óÄÚ¸®¾Æ ¿ìÇ¥Àü½ÃÈ¸(¼Ò°³)
	else if(cate=='spce0303') url = '/sp/ce/spce0304.jsp?prize_idx='+idx2+'&expoGubun=fila_korea&expo_idx='+idx; //ÇÊ¶óÄÚ¸®¾Æ ¿ìÇ¥Àü½ÃÈ¸(¾È³»)
	else if(cate=='spce0305') url = '/sp/ce/spce0306.jsp?movie_idx='+idx2+'&expoGubun=fila_korea&expo_idx='+idx; //ÇÊ¶óÄÚ¸®¾Æ ¿ìÇ¥Àü½ÃÈ¸(µ¿¿µ»ó)
	else if(cate=='global_post') url = '/sp/ce/spce0309.jsp?expoGubun=global_post&expo_idx='+idx; //¼¼°è ¿ìÇ¥Àü½ÃÈ¸(¼Ò°³)
	else if(cate=='spce0310') url = '/sp/ce/spce0311.jsp?prize_idx='+idx2+'&expoGubun=global_post&expo_idx='+idx; //¼¼°è ¿ìÇ¥Àü½ÃÈ¸(¾È³»)
	else if(cate=='spce0312') url = '/sp/ce/spce0313.jsp?movie_idx='+idx2+'&expoGubun=global_post&expo_idx='+idx; //¼¼°è ¿ìÇ¥Àü½ÃÈ¸(µ¿¿µ»ó)
	else if(cate=='asia_post') url = '/sp/ce/spce0316.jsp?expoGubun=asia_post&expo_idx='+idx; //¾Æ½Ã¾Æ ¿ìÇ¥Àü½ÃÈ¸(¼Ò°³)
	else if(cate=='spce0317') url = '/sp/ce/spce0318.jsp?prize_idx='+idx2+'&expoGubun=asia_post&expo_idx='+idx; //¾Æ½Ã¾Æ ¿ìÇ¥Àü½ÃÈ¸(¾È³»)
	else if(cate=='spce0319') url = '/sp/ce/spce0320.jsp?movie_idx='+idx2+'&expoGubun=asia_post&expo_idx='+idx; //¾Æ½Ã¾Æ ¿ìÇ¥Àü½ÃÈ¸(µ¿¿µ»ó)
	else if(cate=='special') url = '/sp/ce/spce0502.jsp?expo_cmm_gubun=special&expo_cmm_idx='+idx; //ÃÊ´ë/Æ¯º°Àü½ÃÈ¸
	else if(cate=='general') url = '/sp/ce/spce0602.jsp?idx='+idx; //ÀÏ¹ÝÀü½ÃÈ¸
	else if(cate=='child_expo') url = '/sp/ce/spce0702.jsp?expoGubun=child_expo&expo_idx='+idx; //¾î¸°ÀÌ ¿ìÇ¥Àü½ÃÈ¸(¼Ò°³)
	else if(cate=='spce0703') url = '/sp/ce/spce0704.jsp?prize_idx='+idx2+'&expoGubun=child_expo&expo_idx='+idx; //¾î¸°ÀÌ ¿ìÇ¥Àü½ÃÈ¸(¾È³»)
	else if(cate=='spce0705') url = '/sp/ce/spce0706.jsp?movie_idx='+idx2+'&expoGubun=child_expo&expo_idx='+idx; //¾î¸°ÀÌ ¿ìÇ¥Àü½ÃÈ¸(µ¿¿µ»ó)
	
	//¿ìÇ¥ ±³½Ç
	else if(cate=='spsc0801') url = '/board/board.jsp?site=&id=spsc0801&cate=&mode=view&idx='+idx; //¾î¸°ÀÌ¿ìÃë°­ÁÂ
	else if(cate=='phila_class') url = '/sp/sc/spsc0904.jsp?sch_post_idx='+idx; //ÇÐ±³¿ìÃë¹Ý
	
	//¿­¸° µµ¼­°ü
	else if(cate=='splb0101') url = '/board/board.jsp?site=&id=splb0101&cate=&mode=view&idx='+idx; //¿ìÆí»ç
	else if(cate=='splb0201') url = '/board/board.jsp?site=&id=splb0201&cate=&mode=view&idx='+idx; //ÀüÅë¿ìÃë
	else if(cate=='splb0301') url = '/board/board.jsp?site=&id=splb0301&cate=&mode=view&idx='+idx; //Åë½ÅÀÏºÎÀÎ
	else if(cate=='splb0401') url = '/board/board.jsp?site=&id=splb0401&cate=&mode=view&idx='+idx; //¿±¼­·ù
	else if(cate=='splb0501') url = '/board/board.jsp?site=&id=splb0501&cate=&mode=view&idx='+idx; //Å×¸¶Æ½¿ìÃë
	else if(cate=='splb0601') url = '/board/board.jsp?site=&id=splb0601&cate=&mode=view&idx='+idx; //¿ìÃë¹®Çå
	else if(cate=='splb0701') url = '/board/board.jsp?site=&id=splb0701&cate=&mode=view&idx='+idx; //¿­¸°¿ìÃë
	else if(cate=='splb0801') url = '/board/board.jsp?site=&id=splb0801&cate=&mode=view&idx='+idx; //¿ìÃë»ó½Ä
	
	//¿ìÃë ¸¶´ç
	else if(cate=='sppp0201') url = '/board/board.jsp?site=&id=sppp0201&cate=&mode=view&idx='+idx; //¿ìÃëÆ÷Ä¿½º		
	else if(cate=='sppp0301') url = '/board/board.jsp?site=&id=sppp0301&cate=&mode=view&idx='+idx; //ÁøÇ°¸íÇ°
	else if(cate=='sppp0401') url = '/board/board.jsp?site=&id=sppp0401&cate=&mode=view&idx='+idx; //¿ìÇ¥ÀÇ¼û°ÜÁøÀÌ¾ß±â
	
	//¿ìÇ¥ °æ¸Å
	else if(cate=='spdd0301') url = '/sp/dd/spdd0302.jsp?auctGubun=korea_auct&auct_idx='+idx; //ÇÑ±¹¿ìÇ¥ Áö»ó¿Á¼Ç		
	else if(cate=='spdd0303') url = '/sp/dd/spdd0304.jsp?auctGubun=theme_auct&auct_idx='+idx; //Å×¸¶Æ½ ¿ìÃëÀÚ·á Áö»ó¿Á¼Ç
	
	//ÀÌº¥Æ®
	else if(cate=='spev0101') url = '/sp/ev/spev0102.jsp?strKey=&strKeyword=&quiz_idx='+idx; //¿ìÃëÄûÁî
	else if(cate=='spev0201') url = '/board/board.jsp?site=&id=spev0201&cate=&desc=asc&menuID=spev0201&mode=view&idx='+idx; //´Ù¸¥±×¸²Ã£±â
	else if(cate=='spev0401') url = '/board/board.jsp?site=&id=spev0401&cate=&desc=asc&menuID=spev0401&mode=view&idx='+idx; //±âÅ¸ÀÌº¥Æ®

	document.location.href=url;
}

function Time_Navi(idx, name)
{
	var url;
    //¿ìÇ¥¿Í ÇÔ²² ¶°³ª´Â ½Ã°£¿©Çà
    if(name!='') url = '/board/board.jsp?site=&id=sppp0501&cate=&mode=view&idx='+idx+'#'+name;
	else url = '/board/board.jsp?site=&id=sppp0501&cate=&mode=view&idx='+idx;
	
	document.location.href=url;
}

function Multi_Navi(cate, idx, idx2)
{
	var url;
    //¿ìÇ¥Ãë¹Ìµ¿¿µ»ó
    if(cate=='hpsc_story') url = '/board/board.jsp?site=&id=spsc0501&cate=hpsc_story&menuID=spsc0501&mode=view&idx='+idx;  //¿ìÇ¥ÀÌ¾ß±â
	else if(cate=='hpsc_travel') url = '/board/board.jsp?site=&id=spsc0501&cate=hpsc_travel&menuID=spsc0501&mode=view&idx='+idx; //ÇÊ¶óÄÚ¿Í ½ºÅ×ÇÇÀÇ ¿ìÇ¥¿©Çà
	else if(cate=='hpsc_wlecture') url = '/board/board.jsp?site=&id=spsc0501&cate=hpsc_wlecture&menuID=spsc0501&mode=view&idx='+idx; //¿ìÃë°­ÁÂ
	else if(cate=='spce0205') url = '/sp/ce/spce0206.jsp?movie_idx='+idx2+'&expoGubun=korea_expo&expo_idx='+idx; //´ëÇÑ¹Î±¹ ¿ìÇ¥Àü½ÃÈ¸(µ¿¿µ»ó)
	else if(cate=='spce0305') url = '/sp/ce/spce0306.jsp?movie_idx='+idx2+'&expoGubun=fila_korea&expo_idx='+idx; //ÇÊ¶óÄÚ¸®¾Æ ¿ìÇ¥Àü½ÃÈ¸(µ¿¿µ»ó)
	else if(cate=='spce0312') url = '/sp/ce/spce0313.jsp?movie_idx='+idx2+'&expoGubun=global_post&expo_idx='+idx; //¼¼°è ¿ìÇ¥Àü½ÃÈ¸(µ¿¿µ»ó)
	else if(cate=='spce0319') url = '/sp/ce/spce0320.jsp?movie_idx='+idx2+'&expoGubun=asia_post&expo_idx='+idx; //¾Æ½Ã¾Æ ¿ìÇ¥Àü½ÃÈ¸(µ¿¿µ»ó)
	else if(cate=='spce0705') url = '/sp/ce/spce0706.jsp?movie_idx='+idx2+'&expoGubun=child_expo&expo_idx='+idx; //¾î¸°ÀÌ ¿ìÇ¥Àü½ÃÈ¸(µ¿¿µ»ó)
	
	document.location.href=url;
}

/** ÀÛÀº ÀÌ¹ÌÁö »çÀÌÁî °íÁ¤ **/
function imgSizeSmall(which,maxwidth,maxheight) 
{ 
	var width = eval("document."+which+".width"); //alert(width);
	var height = eval("document."+which+".height"); //alert(height); 
	var temp = 0;  
	var max_width= maxwidth;   // ÀÌ¹ÌÁöÀÇ ÃÖ´ë Å©±â 
	var max_height= maxheight;   // ÀÌ¹ÌÁöÀÇ ÃÖ´ë Å©±â     

	if(width > height)
	{
		if ( width > max_width ) // ÀÌ¹ÌÁö°¡ ºñÀ²¿¡ ¸ÂÃç ¼¼·Î°ªÀ» º¯°æÇÑ´Ù.    
		{      
			height = height/(width / max_width);
			
			if(height>max_height)
			{
				width = max_width/(height / max_height); 
				eval("document."+which+".width = width");      
				eval("document."+which+".height = max_height");
			}
			else 
			{
				eval("document."+which+".width = max_width");      
				eval("document."+which+".height = height"); 
			}
		}
		else
		{
			if(height>max_height)
			{
				width = width/(height / max_height); 
				eval("document."+which+".width = width");      
				eval("document."+which+".height = max_height");
			}
			else
			{
				eval("document."+which+".width = width");      
				eval("document."+which+".height = height");
			}
		}
	}
	else
	{
		if ( height > max_height ) // ÀÌ¹ÌÁö°¡ ºñÀ²¿¡ ¸ÂÃç ¼¼·Î°ªÀ» º¯°æÇÑ´Ù.    
		{      
			width = width/(height / max_height); 
			eval("document."+which+".width = width");      
			eval("document."+which+".height = max_height"); 
		}
	}
} 


function ctScroll4() { 
	this.name = "ctScrol14"; 
	this.item = new Array(); this.itemcount = 0; this.itemoffset = 0; 
	this.item_image = new Array(); this.item_imagecount = 0; this.item_imageoffset = 0; 
	this.currentspeed = 0; this.scrollspeed = 50; this.pausedelay = 1000; this.pausemouseover = false; this.stop = 0; this.height = 100; this.heightGap = 0; this.width = 100; this.height_image = 100; this.width_image = 100; this.stopHeight=0; this.count=0; this.flag=true; 
	this.height2 = 50; this.width2 = 50;
	//this.position="absolute"; this.item_position="absolute"; 
	this.time_id = null; 
	this.item_txt = new Array(); this.item_txtcount = 0; this.item_txtoffset = 0; //this.item_txt_position="absolute";

	this.add = function () { 
		var text = arguments[0]; this.item[this.itemcount] = text; this.itemcount = this.itemcount + 1; }; 
	
	this.add2 = function () { 
		var text = arguments[0]; this.item_txt[this.item_txtcount] = text; this.item_txtcount = this.item_txtcount + 1; };	

	this.addImage = function () { 
		var text = arguments[0]; this.item_image[this.item_imagecount] = text; this.item_imagecount = this.item_imagecount + 1; }; 
		
	this.setText = function () { 
		this.display(); this.currentspeed = this.scrollspeed; 
		obj = document.getElementById(this.name+'item0').style; 
		obj.display='block'; this.count++; 
		this.time_id = setTimeout(this.name+'.scroll()',this.currentspeed); 
	}; 
	
	this.setText2 = function () { 
		this.display2(); this.currentspeed = this.scrollspeed;
		obj_txt = document.getElementById(this.name+'item_txt0').style;
		obj_txt.display='block'; 
	};

	this.setImage = function () { 
		//now = new Date(); ran = now % this.item_imagecount; temp = this.item_image[ran]; this.item_image[ran] = this.item_image[0]; this.item_image[0] = temp; 
		this.displayImage(); 
		obj_image = document.getElementById(this.name+'item_image0').style; 
		obj_image.display='block';
		setTimeout("imgSizeSmall('thumImgKOR0', '145', '111');",100);
	}; 
	
	this.display = function () { 
		document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.itemcount; i++) { 
			document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+';position:'+this.item_position+'; display:none; ">'); document.write(this.item[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	}; 
	
	this.display2 = function () { 
		document.write('<div id="'+this.name+'_txt" style="height:'+this.height2+';width:'+this.width2+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.item_txtcount; i++) { 
			document.write('<div id="'+this.name+'item_txt'+i+'" style="left:0px; width:'+this.width2+';position:'+this.item_txt_position+'; display:none; ">');
			document.write(this.item_txt[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	};

	this.displayImage = function () { 
		var test = '<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'; 
		for(var i = 0; i < this.item_imagecount; i++) { 
			test += '<div id="'+this.name+'item_image'+i+'"style="left:0px; width:'+this.width_image+'; display:none; text-align:center;">'; test += this.item_image[i]; test += '</div>'; 
		} 
		test += '</div>'; 
		document.write('<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.item_imagecount; i++) { 
			document.write('<div id="'+this.name+'item_image'+i+'" style="left:0px; height:'+this.height_image+';width:'+this.width_image+'; display:none; text-align:center;"><table height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign=middle>'); document.write(this.item_image[i]); document.write('</td></tr></table></div>'); 
		} 
		document.write('</div>'); 
	}; 
	
	this.scroll = function () { 
		this.currentspeed = this.scrollspeed; 
		if ( !this.stop ) { 
			this.imageChange(); 
		} 
		this.time_id = window.setTimeout(this.name+".scroll()",this.currentspeed); 
	}; 
	
	this.imageChange = function () { 
		for (k = 0; k < this.item_imagecount; k++) { 
			obj_image = document.getElementById(this.name+'item_image'+k).style; 
			if (this.count % this.item_imagecount == k) { 
				obj_image.display = 'block';
				imgSizeSmall('thumImgKOR'+k, '145', '111');
			} 
			else { obj_image.display = 'none'; } 
		} 
		for (k = 0; k < this.itemcount; k++) { 
			obj = document.getElementById(this.name+'item'+k).style; 
			if (this.count % this.itemcount == k) { obj.display = 'block'; } else { obj.display = 'none'; } 
		} 
		for (k = 0; k < this.item_txtcount; k++) { 
			obj_txt = document.getElementById(this.name+'item_txt'+k).style; 
			if (this.count % this.item_txtcount == k) { obj_txt.display = 'block'; } else { obj_txt.display = 'none'; } 
		}
		this.count++; 
	}; 
	this.onmouseover = function () { 
		if ( this.pausemouseover ) { this.stop = 1; } 
	}; 
	for (k = 0; k < this.item_imagecount; k++) { 
		obj_image = document.getElementById(this.name+'item_image'+k).style; 
		if (this.count % this.item_imagecount == k) { 
			obj_image.display = 'block'; 
			imgSizeSmall('thumImgKOR'+k, '145', '111');
		} else { 
			obj_image.display = 'none'; 
		} 
	} 
	this.onmouseout = function () { 
		if ( this.pausemouseover ) { this.stop = 0; } 
	}; 

	this.nextItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		if ( this.item_txtcount <= this.item_txtoffset ) 
			this.item_txtoffset = this.item_txtoffset % this.item_txtcount; 
		
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i+1; obj_image.display="none"; 
				//imgSizeSmall('thumImgKOR'+this.item_imageoffset, '145', '111');
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; 
				obj_image.display = "block"; 
				imgSizeSmall('thumImgKOR'+this.item_imageoffset, '145', '111');
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style;
				obj_image.display = "block"; 
				imgSizeSmall('thumImgKOR0', '145', '111');
			} 
		} 
		for (i = 0; i < this.itemcount; i++) { 
			obj = document.getElementById(this.name+'item'+i).style; 
			if ( obj.display == "block" ) { 
				this.itemoffset = i+1;obj.display="none"; 
			} 
		} 
		if (this.itemoffset < this.itemcount) { 
			obj = document.getElementById(this.name+'item'+this.itemoffset).style; obj.display = "block"; 
		} else { 
			obj = document.getElementById(this.name+'item0').style; obj.display = "block"; 
		}
		
		for (i = 0; i < this.item_txtcount; i++) { 
			obj_txt = document.getElementById(this.name+'item_txt'+i).style; 
			if ( obj_txt.display == "block" ) { 
				this.item_txtoffset = i+1;obj_txt.display="none"; 
			} 
		} 
		if (this.item_txtoffset < this.item_txtcount) { 
			obj_txt = document.getElementById(this.name+'item_txt'+this.item_txtoffset).style; obj_txt.display = "block"; 
		} else { 
			obj_txt = document.getElementById(this.name+'item_txt0').style; obj_txt.display = "block"; 
		}
		this.count++; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		if(this.time_id != null) window.clearTimeout(this.time_id); 
		this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	} 	

	this.prevItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		if ( this.item_txtcount <= this.item_txtoffset ) 
			this.item_txtoffset = this.item_txtoffset % this.item_txtcount; 
		
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i-1; 
				obj_image.display="none";
				
				if ( this.item_imageoffset < 0 ) this.item_imageoffset = this.item_imagecount-1;
				//imgSizeSmall('thumImgKOR'+this.item_imageoffset, '145', '111');
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; 
				obj_image.display = "block"; 
				imgSizeSmall('thumImgKOR'+this.item_imageoffset, '145', '111');
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style; 
				obj_image.display = "block"; 
				imgSizeSmall('thumImgKOR0', '145', '111');
			} 
		} 
		for (i = 0; i < this.itemcount; i++) { 
			obj = document.getElementById(this.name+'item'+i).style; 
			if ( obj.display == "block" ) { 
				this.itemoffset = i-1;
				obj.display="none"; 

				if ( this.itemoffset < 0 ) this.itemoffset = this.itemcount-1;
			} 
		} 
		if (this.itemoffset < this.itemcount) { 
			obj = document.getElementById(this.name+'item'+this.itemoffset).style; obj.display = "block"; 
		} else { 
			obj = document.getElementById(this.name+'item0').style; obj.display = "block"; 
		}
		
		for (i = 0; i < this.item_txtcount; i++) { 
			obj_txt = document.getElementById(this.name+'item_txt'+i).style; 
			if ( obj_txt.display == "block" ) { 
				this.item_txtoffset = i-1;
				obj_txt.display="none"; 

				if ( this.item_txtoffset < 0 ) this.item_txtoffset = this.item_txtcount-1;
			} 
		} 
		if (this.item_txtoffset < this.item_txtcount) { 
			obj_txt = document.getElementById(this.name+'item_txt'+this.item_txtoffset).style; obj_txt.display = "block"; 
		} else { 
			obj_txt = document.getElementById(this.name+'item_txt0').style; obj_txt.display = "block"; 
		}
		this.count--; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		if(this.time_id != null) window.clearTimeout(this.time_id); 
		this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	} 	
}





function spsg_roll_stamp() { 
	this.name = "stamp"; 
	this.item = new Array(); 
	this.itemcount = 0; 
	this.itemoffset = 0; 
	this.item_image = new Array(); 
	this.item_imagecount = 0; 
	this.item_imageoffset = 0; 
	this.currentspeed = 0; 
	this.scrollspeed = 50; 
	this.pausedelay = 1000; 
	this.pausemouseover = false; 
	this.stop = 0; 
	this.height = 100; 
	this.heightGap = 0; 
	this.width = 100; 
	this.height_image = 100; 
	this.width_image = 100; 
	this.stopHeight=0; 
	this.count=0; 
	this.flag=true; 
	this.height2 = 50; 
	this.width2 = 50;
	//this.position="absolute"; 
	this.item_position="absolute"; 
	this.time_id = null; 
	this.item_txt = new Array(); 
	this.item_txtcount = 0; 
	this.item_txtoffset = 0; 
	//this.item_txt_position="absolute";

	this.addImage = function () { 
		var text = arguments[0]; this.item_image[this.item_imagecount] = text; this.item_imagecount = this.item_imagecount + 1; }; 
		
	this.setImage = function () { 
		//now = new Date(); ran = now % this.item_imagecount; temp = this.item_image[ran]; this.item_image[ran] = this.item_image[0]; this.item_image[0] = temp; 
		this.displayImage(); 
		obj_image = document.getElementById(this.name+'item_image0').style; 
		obj_image.display='block';
	}; 
	
	this.display = function () { 
		document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.itemcount; i++) { 
			document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+';position:'+this.item_position+'; display:none; ">'); document.write(this.item[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	}; 
	
	this.display2 = function () { 
		document.write('<div id="'+this.name+'_txt" style="height:'+this.height2+';width:'+this.width2+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.item_txtcount; i++) { 
			document.write('<div id="'+this.name+'item_txt'+i+'" style="left:0px; width:'+this.width2+';position:'+this.item_txt_position+'; display:none; ">');
			document.write(this.item_txt[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	};

	this.displayImage = function () { 
		var test = '<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'; 
		for(var i = 0; i < this.item_imagecount; i++) { 
			test += '<div id="'+this.name+'item_image'+i+'"style="left:0px; width:'+this.width_image+'; display:none; text-align:center;">'; test += this.item_image[i]; test += '</div>'; 
		} 
		test += '</div>'; 
		document.write('<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.item_imagecount; i++) { 
			document.write('<div id="'+this.name+'item_image'+i+'" style="left:0px; height:'+this.height_image+';width:'+this.width_image+'; display:none; text-align:center;"><table height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign=middle>'); document.write(this.item_image[i]); document.write('</td></tr></table></div>'); 
		} 
		document.write('</div>'); 
	}; 
	
	this.scroll = function () { 
		/*
		this.currentspeed = this.scrollspeed; 
		if ( !this.stop ) { 
			this.imageChange(); 
		} 
		this.time_id = window.setTimeout(this.name+".scroll()",this.currentspeed); 
		*/
	}; 
	
	this.imageChange = function () { 
		for (k = 0; k < this.item_imagecount; k++) { 
			obj_image = document.getElementById(this.name+'item_image'+k).style; 
			if (this.count % this.item_imagecount == k) { 
				obj_image.display = 'block';
			} 
			else { obj_image.display = 'none'; } 
		} 
		for (k = 0; k < this.itemcount; k++) { 
			obj = document.getElementById(this.name+'item'+k).style; 
			if (this.count % this.itemcount == k) { obj.display = 'block'; } else { obj.display = 'none'; } 
		} 
		for (k = 0; k < this.item_txtcount; k++) { 
			obj_txt = document.getElementById(this.name+'item_txt'+k).style; 
			if (this.count % this.item_txtcount == k) { obj_txt.display = 'block'; } else { obj_txt.display = 'none'; } 
		}
		this.count++; 
	}; 
	this.onmouseover = function () { 
		if ( this.pausemouseover ) { this.stop = 1; } 
	}; 
	for (k = 0; k < this.item_imagecount; k++) { 
		obj_image = document.getElementById(this.name+'item_image'+k).style; 
		if (this.count % this.item_imagecount == k) { 
			obj_image.display = 'block'; 
		} else { 
			obj_image.display = 'none'; 
		} 
	} 
	this.onmouseout = function () { 
		if ( this.pausemouseover ) { this.stop = 0; } 
	}; 

	this.nextItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		if ( this.item_txtcount <= this.item_txtoffset ) 
			this.item_txtoffset = this.item_txtoffset % this.item_txtcount; 
		
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i+1; 
				obj_image.display="none"; 
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; 
				obj_image.display = "block"; 
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style;
				obj_image.display = "block"; 
			} 
		} 

		this.count++; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		if(this.time_id != null) window.clearTimeout(this.time_id); 
		this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	} 	

	this.prevItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		if ( this.item_txtcount <= this.item_txtoffset ) 
			this.item_txtoffset = this.item_txtoffset % this.item_txtcount; 
		
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i-1; 
				obj_image.display="none";
				if ( this.item_imageoffset < 0 ) this.item_imageoffset = this.item_imagecount-1;
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; 
				obj_image.display = "block"; 
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style; 
				obj_image.display = "block"; 
			} 
		} 

		this.count--; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		if(this.time_id != null) window.clearTimeout(this.time_id); 
		this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	} 	
}





function spsg_roll_popular() { 
	this.name = "populaer"; 
	this.item = new Array(); 
	this.itemcount = 0; 
	this.itemoffset = 0; 
	this.item_image = new Array(); 
	this.item_imagecount = 0; 
	this.item_imageoffset = 0; 
	this.currentspeed = 0; 
	this.scrollspeed = 50; 
	this.pausedelay = 1000; 
	this.pausemouseover = false; 
	this.stop = 0; 
	this.height = 100; 
	this.heightGap = 0; 
	this.width = 100; 
	this.height_image = 100; 
	this.width_image = 100; 
	this.stopHeight=0; 
	this.count=0; 
	this.flag=true; 
	this.height2 = 50; 
	this.width2 = 50;
	//this.position="absolute"; 
	this.item_position="absolute"; 
	this.time_id = null; 
	this.item_txt = new Array(); 
	this.item_txtcount = 0; 
	this.item_txtoffset = 0; 
	//this.item_txt_position="absolute";

	this.addImage = function () { 
		var text = arguments[0]; this.item_image[this.item_imagecount] = text; this.item_imagecount = this.item_imagecount + 1; }; 
		
	this.setImage = function () { 
		//now = new Date(); ran = now % this.item_imagecount; temp = this.item_image[ran]; this.item_image[ran] = this.item_image[0]; this.item_image[0] = temp; 
		this.displayImage(); 
		obj_image = document.getElementById(this.name+'item_image0').style; 
		obj_image.display='block';
		setTimeout(this.name+'.scroll()',this.currentspeed); 
		
	}; 
	
	this.display = function () { 
		document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.itemcount; i++) { 
			document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+';position:'+this.item_position+'; display:none; ">'); document.write(this.item[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	}; 
	
	this.display2 = function () { 
		document.write('<div id="'+this.name+'_txt" style="height:'+this.height2+';width:'+this.width2+';position:'+this.position+';overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.item_txtcount; i++) { 
			document.write('<div id="'+this.name+'item_txt'+i+'" style="left:0px; width:'+this.width2+';position:'+this.item_txt_position+'; display:none; ">');
			document.write(this.item_txt[i]); document.write('</div>'); 
		} 
		document.write('</div>'); 
	};

	this.displayImage = function () { 
		var test = '<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'; 
		for(var i = 0; i < this.item_imagecount; i++) { 
			test += '<div id="'+this.name+'item_image'+i+'"style="left:0px; width:'+this.width_image+'; display:none; text-align:center;">'; test += this.item_image[i]; test += '</div>'; 
		} 
		test += '</div>'; 
		document.write('<div id="'+this.name+'_image" style="left:0; height:'+this.height_image+';width:'+this.width_image+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">'); 
		for(var i = 0; i < this.item_imagecount; i++) { 
			document.write('<div id="'+this.name+'item_image'+i+'" style="left:0px; height:'+this.height_image+';width:'+this.width_image+'; display:none; text-align:center;"><table height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign=middle>'); document.write(this.item_image[i]); document.write('</td></tr></table></div>'); 
		} 
		document.write('</div>'); 
	}; 
	
	this.scroll = function () { 
		this.currentspeed = this.scrollspeed; 
		if ( !this.stop ) { 
			this.imageChange(); 
		} 
		this.time_id = window.setTimeout(this.name+".scroll()",this.currentspeed); 
	}; 
	
	this.imageChange = function () { 
		for (k = 0; k < this.item_imagecount; k++) { 
			obj_image = document.getElementById(this.name+'item_image'+k).style; 
			if (this.count % this.item_imagecount == k) { 
				obj_image.display = 'block';
				//imgSizeSmall('thumImgKOR'+k, '145', '111');
			} 
			else { obj_image.display = 'none'; } 
		} 
		for (k = 0; k < this.itemcount; k++) { 
			obj = document.getElementById(this.name+'item'+k).style; 
			if (this.count % this.itemcount == k) { obj.display = 'block'; } else { obj.display = 'none'; } 
		} 
		for (k = 0; k < this.item_txtcount; k++) { 
			obj_txt = document.getElementById(this.name+'item_txt'+k).style; 
			if (this.count % this.item_txtcount == k) { obj_txt.display = 'block'; } else { obj_txt.display = 'none'; } 
		}
		this.count++; 
	}; 
	this.onmouseover = function () { 
		if ( this.pausemouseover ) { this.stop = 1; } 
	}; 
	for (k = 0; k < this.item_imagecount; k++) { 
		obj_image = document.getElementById(this.name+'item_image'+k).style; 
		if (this.count % this.item_imagecount == k) { 
			obj_image.display = 'block'; 
			//imgSizeSmall('thumImgKOR'+k, '145', '111');
		} else { 
			obj_image.display = 'none'; 
		} 
	} 
	this.onmouseout = function () { 
		if ( this.pausemouseover ) { this.stop = 0; } 
	}; 

	this.nextItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		if ( this.item_txtcount <= this.item_txtoffset ) 
			this.item_txtoffset = this.item_txtoffset % this.item_txtcount; 
		
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i+1; 
				obj_image.display="none"; 
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; 
				obj_image.display = "block"; 
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style;
				obj_image.display = "block"; 
			} 
		} 

		this.count++; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		if(this.time_id != null) window.clearTimeout(this.time_id); 
		this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	} 	

	this.prevItem = function () { 
		var i; this.stop=1; 
		if ( this.itemcount <= this.itemoffset ) 
			this.itemoffset = this.itemoffset % this.itemcount; 
		if ( this.item_txtcount <= this.item_txtoffset ) 
			this.item_txtoffset = this.item_txtoffset % this.item_txtcount; 
		
		for (i = 0; i < this.item_imagecount; i++) { 
			obj_image = document.getElementById(this.name+'item_image'+i).style; 
			if ( obj_image.display == "block" ) { 
				this.item_imageoffset = i-1; 
				obj_image.display="none";
				if ( this.item_imageoffset < 0 ) this.item_imageoffset = this.item_imagecount-1;
			} 
		} 
		if (this.item_imagecount > 0) { 
			if (this.item_imageoffset < this.item_imagecount) { 
				obj_image = document.getElementById(this.name+'item_image'+this.item_imageoffset).style; 
				obj_image.display = "block"; 
			} else { 
				obj_image = document.getElementById(this.name+'item_image0').style; 
				obj_image.display = "block"; 
			} 
		} 

		this.count--; 
		if(!btnon) window.setTimeout(this.name + ".stop=0;",this.pausedelay); 
		if(this.time_id != null) window.clearTimeout(this.time_id); 
		this.time_id = window.setTimeout(this.name+'.scroll()',this.currentspeed); 
	} 	
}

